summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-03-21 00:11:18 +0700
committerhathach <[email protected]>2025-03-21 00:11:18 +0700
commite54753814befa26742fa8a9805f5b7beac32a963 (patch)
treeae29037437465a71fbfdfa5205735dd805777068 /src
parentc2924c51fc9bf0074663cafabf4399ca9d673750 (diff)
enable hil dual for metro m4 with max3421
Diffstat (limited to 'src')
-rw-r--r--src/host/usbh.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/host/usbh.h b/src/host/usbh.h
index 52b4f478c..36bb7c9b2 100644
--- a/src/host/usbh.h
+++ b/src/host/usbh.h
@@ -155,8 +155,7 @@ bool tuh_inited(void);
void tuh_task_ext(uint32_t timeout_ms, bool in_isr);
// Task function should be called in main/rtos loop
-TU_ATTR_ALWAYS_INLINE static inline
-void tuh_task(void) {
+TU_ATTR_ALWAYS_INLINE static inline void tuh_task(void) {
tuh_task_ext(UINT32_MAX, false);
}
@@ -197,16 +196,14 @@ bool tuh_mounted(uint8_t daddr);
bool tuh_connected(uint8_t daddr);
// Check if device is suspended
-TU_ATTR_ALWAYS_INLINE static inline
-bool tuh_suspended(uint8_t daddr) {
+TU_ATTR_ALWAYS_INLINE static inline bool tuh_suspended(uint8_t daddr) {
// TODO implement suspend & resume on host
(void) daddr;
return false;
}
// Check if device is ready to communicate with
-TU_ATTR_ALWAYS_INLINE static inline
-bool tuh_ready(uint8_t daddr) {
+TU_ATTR_ALWAYS_INLINE static inline bool tuh_ready(uint8_t daddr) {
return tuh_mounted(daddr) && !tuh_suspended(daddr);
}