wrap up hid device refactor

This commit is contained in:
hathach
2019-04-18 22:31:35 +07:00
parent a30461b078
commit 307ba23046
11 changed files with 206 additions and 214 deletions
+6
View File
@@ -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;