Skip to content

Commit

Permalink
fix adafruit#103 - gcc warnings
Browse files Browse the repository at this point in the history
thanks @JackCasual
  • Loading branch information
mmoskal committed Jan 20, 2022
1 parent dd415d5 commit b393cb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/cmsis/CMSIS/Include/core_cmFunc.h
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_PSP(void)
*/
__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_PSP(uint32_t topOfProcStack)
{
__ASM volatile ("MSR psp, %0\n" : : "r" (topOfProcStack) : "sp");
__ASM volatile ("MSR psp, %0\n" : : "r" (topOfProcStack) : );
}


Expand All @@ -453,7 +453,7 @@ __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_MSP(void)
*/
__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_MSP(uint32_t topOfMainStack)
{
__ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) : "sp");
__ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) : );
}


Expand Down
2 changes: 1 addition & 1 deletion src/cdc_enumerate.c
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ uint32_t USB_WriteCore(const void *pData, uint32_t length, uint8_t ep_num, bool
//* \brief Send zero length packet through the control endpoint
//*----------------------------------------------------------------------------
void AT91F_USB_SendZlp(void) {
uint8_t c;
uint8_t c = 0;
USB_Write(&c, 0, 0);
}

Expand Down

0 comments on commit b393cb1

Please sign in to comment.