From d2d0d0a6d528bd44c73ceeea6fbf1093dc339786 Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 21 Mar 2014 16:32:39 +0700 Subject: clean up some device warnings move led_blinking_task and led_blinking_set_interval to board.c --- tinyusb/device/dcd_lpc_11uxx_13uxx.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tinyusb/device') diff --git a/tinyusb/device/dcd_lpc_11uxx_13uxx.c b/tinyusb/device/dcd_lpc_11uxx_13uxx.c index 51719af6b..8ff68281b 100644 --- a/tinyusb/device/dcd_lpc_11uxx_13uxx.c +++ b/tinyusb/device/dcd_lpc_11uxx_13uxx.c @@ -66,11 +66,19 @@ enum { DCD_11U_13U_MAX_BYTE_PER_TD = (TUSB_CFG_MCU == MCU_LPC11UXX ? 64 : 1023) }; +#ifdef __CC_ARM +#pragma diag_suppress 66 // Suppress Keil warnings #66-D: enumeration value is out of "int" range +#endif + enum { INT_MASK_SOF = BIT_(30), INT_MASK_DEVICE_STATUS = BIT_(31) }; +#ifdef __CC_ARM +#pragma diag_suppress 66 // Suppress Keil warnings #66-D: enumeration value is out of "int" range +#endif + enum { CMDSTAT_DEVICE_ADDR_MASK = BIT_(7 )-1, CMDSTAT_DEVICE_ENABLE_MASK = BIT_(7 ), @@ -399,11 +407,13 @@ static inline uint8_t edpt_addr2phy(uint8_t endpoint_addr) return 2*(endpoint_addr & 0x0F) + ((endpoint_addr & TUSB_DIR_DEV_TO_HOST_MASK) ? 1 : 0); } +#if 0 static inline uint8_t edpt_phy2log(uint8_t physical_endpoint) ATTR_CONST ATTR_ALWAYS_INLINE; static inline uint8_t edpt_phy2log(uint8_t physical_endpoint) { return physical_endpoint/2; } +#endif //--------------------------------------------------------------------+ // BULK/INTERRUPT/ISOCHRONOUS PIPE API -- cgit v1.3.1