@@ -82,26 +82,30 @@ void hw_endpoint_reset_transfer(struct hw_endpoint *ep);
82
82
83
83
void _hw_endpoint_buffer_control_update32 (struct hw_endpoint * ep , uint32_t and_mask , uint32_t or_mask );
84
84
85
- TU_ATTR_ALWAYS_INLINE static inline uint32_t _hw_endpoint_buffer_control_get_value32 (struct hw_endpoint * ep ) {
86
- return * ep -> buffer_control ;
85
+ TU_ATTR_ALWAYS_INLINE static inline uint32_t _hw_endpoint_buffer_control_get_value32 (struct hw_endpoint * ep )
86
+ {
87
+ return * ep -> buffer_control ;
87
88
}
88
89
89
- TU_ATTR_ALWAYS_INLINE static inline void _hw_endpoint_buffer_control_set_value32 (struct hw_endpoint * ep , uint32_t value ) {
90
- return _hw_endpoint_buffer_control_update32 (ep , 0 , value );
90
+ TU_ATTR_ALWAYS_INLINE static inline void _hw_endpoint_buffer_control_set_value32 (struct hw_endpoint * ep , uint32_t value )
91
+ {
92
+ return _hw_endpoint_buffer_control_update32 (ep , 0 , value );
91
93
}
92
94
93
- TU_ATTR_ALWAYS_INLINE static inline void _hw_endpoint_buffer_control_set_mask32 (struct hw_endpoint * ep , uint32_t value ) {
94
- return _hw_endpoint_buffer_control_update32 (ep , ~value , value );
95
+ TU_ATTR_ALWAYS_INLINE static inline void _hw_endpoint_buffer_control_set_mask32 (struct hw_endpoint * ep , uint32_t value )
96
+ {
97
+ return _hw_endpoint_buffer_control_update32 (ep , ~value , value );
95
98
}
96
99
97
- TU_ATTR_ALWAYS_INLINE static inline void _hw_endpoint_buffer_control_clear_mask32 (struct hw_endpoint * ep , uint32_t value ) {
98
- return _hw_endpoint_buffer_control_update32 (ep , ~value , 0 );
100
+ TU_ATTR_ALWAYS_INLINE static inline void _hw_endpoint_buffer_control_clear_mask32 (struct hw_endpoint * ep , uint32_t value )
101
+ {
102
+ return _hw_endpoint_buffer_control_update32 (ep , ~value , 0 );
99
103
}
100
104
101
- static inline uintptr_t hw_data_offset (uint8_t * buf )
105
+ static inline uintptr_t hw_data_offset (uint8_t * buf )
102
106
{
103
- // Remove usb base from buffer pointer
104
- return (uintptr_t )buf ^ (uintptr_t )usb_dpram ;
107
+ // Remove usb base from buffer pointer
108
+ return (uintptr_t ) buf ^ (uintptr_t ) usb_dpram ;
105
109
}
106
110
107
111
extern const char * ep_dir_string [];
0 commit comments