Skip to content

Commit

Permalink
Fixed -Os build with GCC 4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Reimer committed Feb 26, 2015
1 parent 9e3a871 commit 69ed54a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hardware.c
Expand Up @@ -168,7 +168,7 @@ bool checkUserCode(u32 usrAddr) {
void jumpToUser(u32 usrAddr) {
typedef void (*funcPtr)(void);

u32 jumpAddr = *(vu32 *)(usrAddr + 0x04); /* reset ptr in vector table */
vu32 jumpAddr = *(vu32 *)(usrAddr + 0x04); /* reset ptr in vector table */
funcPtr usrMain = (funcPtr) jumpAddr;

/* tear down all the dfu related setup */
Expand Down
4 changes: 2 additions & 2 deletions usb.c
Expand Up @@ -267,8 +267,8 @@ void usbReset(void) {
_SetEPType(ENDP0, EP_CONTROL);
_SetEPTxStatus(ENDP0, EP_TX_STALL);

_SetEPRxAddr(ENDP0, ENDP0_RXADDR);
_SetEPTxAddr(ENDP0, ENDP0_TXADDR);
SetEPRxAddr(ENDP0, ENDP0_RXADDR);
SetEPTxAddr(ENDP0, ENDP0_TXADDR);

Clear_Status_Out(ENDP0);

Expand Down

0 comments on commit 69ed54a

Please sign in to comment.