diff options
| author | hathach <[email protected]> | 2019-04-18 22:31:35 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-04-18 22:31:35 +0700 |
| commit | 307ba23046ff4c0795009c1426708facb37bdf82 (patch) | |
| tree | 9f0e80d00ee3c44d3937353c860cb84064c20c35 /hw | |
| parent | a30461b078445ab2d11319fade47789ecc866b7d (diff) | |
wrap up hid device refactor
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/board.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/bsp/board.h b/hw/bsp/board.h index 896a14c0c..c78f3708b 100644 --- a/hw/bsp/board.h +++ b/hw/bsp/board.h @@ -95,6 +95,12 @@ static inline void board_led_off(void) board_led_write(false); } +static inline void board_delay(uint32_t ms) +{ + uint32_t start_ms = board_millis(); + while( board_millis() < start_ms + ms) {} +} + static inline int8_t board_uart_getchar(void) { uint8_t c; |
