Mercurial > louis > kiibohd-controller
comparison Output/pjrcUSB/arm/usb_dev.h @ 308:ab4515606277
Fix whitespace
Use a consistent standard - Tabs in front for indenting, spaces after for anything else. This way everything stays nice and lined up while also letting users change there prefered indent level. Most of the new files from Haata where already in this format.
author | Rowan Decker <Smasher816@gmail.com> |
---|---|
date | Sun, 08 Mar 2015 18:40:01 -0700 |
parents | d5bf41d7f7ef |
children | f7b14e25ca5b |
comparison
equal
deleted
inserted
replaced
305:4617ef5e06f1 | 308:ab4515606277 |
---|---|
73 usb_packet_t *usb_rx( uint32_t endpoint ); | 73 usb_packet_t *usb_rx( uint32_t endpoint ); |
74 | 74 |
75 static inline uint32_t usb_rx_byte_count(uint32_t endpoint) __attribute__((always_inline)); | 75 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) | 76 static inline uint32_t usb_rx_byte_count(uint32_t endpoint) |
77 { | 77 { |
78 endpoint--; | 78 endpoint--; |
79 if ( endpoint >= NUM_ENDPOINTS ) | 79 if ( endpoint >= NUM_ENDPOINTS ) |
80 return 0; | 80 return 0; |
81 return usb_rx_byte_count_data[ endpoint ]; | 81 return usb_rx_byte_count_data[ endpoint ]; |
82 } | 82 } |
83 | 83 |
84 void usb_device_reload(); | 84 void usb_device_reload(); |
85 | 85 |
86 extern void usb_serial_flush_callback(); | 86 extern void usb_serial_flush_callback(); |