Mercurial > louis > kiibohd-controller
diff Output/pjrcUSB/arm/usb_dev.h @ 326:05a09eda53fb
Inital Remote Wakeup Support
Not working yet...
author | Rowan Decker <Smasher816@gmail.com> |
---|---|
date | Sun, 08 Mar 2015 22:35:55 -0700 |
parents | d5bf41d7f7ef |
children | f7b14e25ca5b |
line wrap: on
line diff
--- a/Output/pjrcUSB/arm/usb_dev.h Sun Mar 08 17:33:29 2015 -0700 +++ b/Output/pjrcUSB/arm/usb_dev.h Sun Mar 08 22:35:55 2015 -0700 @@ -56,6 +56,8 @@ extern volatile uint8_t usb_cdc_line_rtsdtr; extern volatile uint8_t usb_cdc_transmit_flush_timer; +extern volatile uint8_t remote_wakeup_enabled; + // ----- Functions ----- @@ -75,10 +77,10 @@ static inline uint32_t usb_rx_byte_count(uint32_t endpoint) __attribute__((always_inline)); static inline uint32_t usb_rx_byte_count(uint32_t endpoint) { - endpoint--; - if ( endpoint >= NUM_ENDPOINTS ) + endpoint--; + if ( endpoint >= NUM_ENDPOINTS ) return 0; - return usb_rx_byte_count_data[ endpoint ]; + return usb_rx_byte_count_data[ endpoint ]; } void usb_device_reload();