diff options
author | Perry Hung <iperry@gmail.com> | 2011-05-12 04:48:10 -0400 |
---|---|---|
committer | Perry Hung <iperry@gmail.com> | 2011-05-12 05:00:47 -0400 |
commit | 949cc878979384c21f49017cf4affdcaa28e689b (patch) | |
tree | 01f05282f025b23c330963463e698325992e2bb0 /libmaple/usb/usb_lib | |
parent | 93bcde9c12582ca441a2aefb6148286e3adfe899 (diff) | |
download | librambutan-949cc878979384c21f49017cf4affdcaa28e689b.tar.gz librambutan-949cc878979384c21f49017cf4affdcaa28e689b.zip |
libmaple: Fix warnings in libmaple source files
-Add -Wall, -Werror to libmaple/*
-Fix warnings
Diffstat (limited to 'libmaple/usb/usb_lib')
-rw-r--r-- | libmaple/usb/usb_lib/usb_regs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmaple/usb/usb_lib/usb_regs.h b/libmaple/usb/usb_lib/usb_regs.h index a888f72..b63cc5f 100644 --- a/libmaple/usb/usb_lib/usb_regs.h +++ b/libmaple/usb/usb_lib/usb_regs.h @@ -357,9 +357,9 @@ enum EP_BUF_NUM * Return : None. *******************************************************************************/ #define _ToggleDTOG_RX(bEpNum) (_SetENDPOINT(bEpNum, \ - EP_DTOG_RX | _GetENDPOINT(bEpNum) & EPREG_MASK)) + EP_DTOG_RX | (_GetENDPOINT(bEpNum) & EPREG_MASK))) #define _ToggleDTOG_TX(bEpNum) (_SetENDPOINT(bEpNum, \ - EP_DTOG_TX | _GetENDPOINT(bEpNum) & EPREG_MASK)) + EP_DTOG_TX | (_GetENDPOINT(bEpNum) & EPREG_MASK))) /******************************************************************************* * Macro Name : ClearDTOG_RX / ClearDTOG_TX. @@ -381,7 +381,7 @@ enum EP_BUF_NUM * Return : None. *******************************************************************************/ #define _SetEPAddress(bEpNum,bAddr) _SetENDPOINT(bEpNum,\ - _GetENDPOINT(bEpNum) & EPREG_MASK | bAddr) + (_GetENDPOINT(bEpNum) & EPREG_MASK) | bAddr) /******************************************************************************* * Macro Name : GetEPAddress. |