Mercurial > louis > kiibohd-controller
comparison 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 |
comparison
equal
deleted
inserted
replaced
306:f158dfa0fa85 | 326:05a09eda53fb |
---|---|
54 | 54 |
55 extern volatile uint8_t usb_cdc_line_coding[7]; | 55 extern volatile uint8_t usb_cdc_line_coding[7]; |
56 extern volatile uint8_t usb_cdc_line_rtsdtr; | 56 extern volatile uint8_t usb_cdc_line_rtsdtr; |
57 extern volatile uint8_t usb_cdc_transmit_flush_timer; | 57 extern volatile uint8_t usb_cdc_transmit_flush_timer; |
58 | 58 |
59 extern volatile uint8_t remote_wakeup_enabled; | |
60 | |
59 | 61 |
60 | 62 |
61 // ----- Functions ----- | 63 // ----- Functions ----- |
62 | 64 |
63 uint8_t usb_configured(); // is the USB port configured | 65 uint8_t usb_configured(); // is the USB port configured |
73 usb_packet_t *usb_rx( uint32_t endpoint ); | 75 usb_packet_t *usb_rx( uint32_t endpoint ); |
74 | 76 |
75 static inline uint32_t usb_rx_byte_count(uint32_t endpoint) __attribute__((always_inline)); | 77 static inline uint32_t usb_rx_byte_count(uint32_t endpoint) __attribute__((always_inline)); |
76 static inline uint32_t usb_rx_byte_count(uint32_t endpoint) | 78 static inline uint32_t usb_rx_byte_count(uint32_t endpoint) |
77 { | 79 { |
78 endpoint--; | 80 endpoint--; |
79 if ( endpoint >= NUM_ENDPOINTS ) | 81 if ( endpoint >= NUM_ENDPOINTS ) |
80 return 0; | 82 return 0; |
81 return usb_rx_byte_count_data[ endpoint ]; | 83 return usb_rx_byte_count_data[ endpoint ]; |
82 } | 84 } |
83 | 85 |
84 void usb_device_reload(); | 86 void usb_device_reload(); |
85 | 87 |
86 extern void usb_serial_flush_callback(); | 88 extern void usb_serial_flush_callback(); |