From bc9274591fe4b1b21cbe85aa9a4ebf4e8d2723e9 Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 2 Mar 2018 19:00:03 +0700 Subject: clean up compiler --- tinyusb/device/dcd_lpc43xx.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tinyusb/device') diff --git a/tinyusb/device/dcd_lpc43xx.c b/tinyusb/device/dcd_lpc43xx.c index 3b69b4821..f72949868 100644 --- a/tinyusb/device/dcd_lpc43xx.c +++ b/tinyusb/device/dcd_lpc43xx.c @@ -277,26 +277,22 @@ tusb_error_t dcd_init(void) // PIPE HELPER //--------------------------------------------------------------------+ #if 0 -static inline uint8_t edpt_pos2phy(uint8_t pos) ATTR_CONST ATTR_ALWAYS_INLINE; static inline uint8_t edpt_pos2phy(uint8_t pos) { // 0-5 --> OUT, 16-21 IN return (pos < DCD_QHD_MAX/2) ? (2*pos) : (2*(pos-16)+1); } #endif -static inline uint8_t edpt_phy2pos(uint8_t physical_endpoint) ATTR_CONST ATTR_ALWAYS_INLINE; static inline uint8_t edpt_phy2pos(uint8_t physical_endpoint) { return physical_endpoint/2 + ( (physical_endpoint%2) ? 16 : 0); } -static inline uint8_t edpt_addr2phy(uint8_t endpoint_addr) ATTR_CONST ATTR_ALWAYS_INLINE; 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); } -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; @@ -323,7 +319,6 @@ static void qtd_init(dcd_qtd_t* p_qtd, void * data_ptr, uint16_t total_bytes) } // retval 0: invalid -static inline uint8_t qtd_find_free(uint8_t coreid) ATTR_PURE ATTR_ALWAYS_INLINE; static inline uint8_t qtd_find_free(uint8_t coreid) { for(uint8_t i=2; iENDPTCTRL0) + edpt_phy2log(physical_endpoint); -- cgit v1.3.1