File tree 3 files changed +5
-8
lines changed
examples/host/device_info/src
3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ void init_freertos_task(void);
81
81
//--------------------------------------------------------------------
82
82
// Main
83
83
//--------------------------------------------------------------------
84
- void init_tinyusb (void ) {
84
+ static void init_tinyusb (void ) {
85
85
// init host stack on configured roothub port
86
86
tusb_rhport_init_t host_init = {
87
87
.role = TUSB_ROLE_HOST ,
Original file line number Diff line number Diff line change @@ -155,8 +155,7 @@ bool tuh_inited(void);
155
155
void tuh_task_ext (uint32_t timeout_ms , bool in_isr );
156
156
157
157
// Task function should be called in main/rtos loop
158
- TU_ATTR_ALWAYS_INLINE static inline
159
- void tuh_task (void ) {
158
+ TU_ATTR_ALWAYS_INLINE static inline void tuh_task (void ) {
160
159
tuh_task_ext (UINT32_MAX , false);
161
160
}
162
161
@@ -197,16 +196,14 @@ bool tuh_mounted(uint8_t daddr);
197
196
bool tuh_connected (uint8_t daddr );
198
197
199
198
// Check if device is suspended
200
- TU_ATTR_ALWAYS_INLINE static inline
201
- bool tuh_suspended (uint8_t daddr ) {
199
+ TU_ATTR_ALWAYS_INLINE static inline bool tuh_suspended (uint8_t daddr ) {
202
200
// TODO implement suspend & resume on host
203
201
(void ) daddr ;
204
202
return false;
205
203
}
206
204
207
205
// Check if device is ready to communicate with
208
- TU_ATTR_ALWAYS_INLINE static inline
209
- bool tuh_ready (uint8_t daddr ) {
206
+ TU_ATTR_ALWAYS_INLINE static inline bool tuh_ready (uint8_t daddr ) {
210
207
return tuh_mounted (daddr ) && !tuh_suspended (daddr );
211
208
}
212
209
Original file line number Diff line number Diff line change 60
60
"name" : " metro_m4_express" ,
61
61
"uid" : " 9995AD485337433231202020FF100A34" ,
62
62
"tests" : {
63
- "device" : true , "host" : false , "dual" : false ,
63
+ "device" : true , "host" : false , "dual" : true ,
64
64
"dev_attached" : [{"vid_pid" : " 1a86_55d4" , "serial" : " 52D2002130" }]
65
65
},
66
66
"flasher" : {
You can’t perform that action at this time.
0 commit comments