diff options
| author | hathach <[email protected]> | 2021-05-27 00:13:07 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-05-27 00:16:45 +0700 |
| commit | c7cecf28c8bd409c3032a11180333654c90020d4 (patch) | |
| tree | eb28837d0922f0d384efe3d1e0dabf697f9a1e54 /src/device | |
| parent | 814edec89f5440b5dad43cc405e97af4f8fae175 (diff) | |
clean up
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/usbd.h | 4 | ||||
| -rw-r--r-- | src/device/usbd_pvt.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h index 53519c4de..3857295d7 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -70,8 +70,8 @@ bool tud_mounted(void); bool tud_suspended(void); // Check if device is ready to transfer -TU_ATTR_ALWAYS_INLINE -static inline bool tud_ready(void) +TU_ATTR_ALWAYS_INLINE static inline +bool tud_ready(void) { return tud_mounted() && !tud_suspended(); } diff --git a/src/device/usbd_pvt.h b/src/device/usbd_pvt.h index c42bfd97b..65fdadf51 100644 --- a/src/device/usbd_pvt.h +++ b/src/device/usbd_pvt.h @@ -94,7 +94,7 @@ void usbd_edpt_clear_stall(uint8_t rhport, uint8_t ep_addr); // Check if endpoint is stalled bool usbd_edpt_stalled(uint8_t rhport, uint8_t ep_addr); -static inline +TU_ATTR_ALWAYS_INLINE static inline bool usbd_edpt_ready(uint8_t rhport, uint8_t ep_addr) { return !usbd_edpt_busy(rhport, ep_addr) && !usbd_edpt_stalled(rhport, ep_addr); |
