diff options
| author | hathach <[email protected]> | 2024-10-21 17:45:40 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-10-21 18:18:33 +0700 |
| commit | 8461525d48cb4a97a7b18816f65b548a875ffe50 (patch) | |
| tree | ed958a56ef483492ab332aad6c47f601af03fe5a /hw | |
| parent | f5978876d2a5d8cdc6cfd3bf99f9b820c5a6ac8a (diff) | |
add tusb_time_millis(), able to reset and enable dwc2 port and get SOF active
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/board.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/bsp/board.c b/hw/bsp/board.c index bb339f613..d4fdb7586 100644 --- a/hw/bsp/board.c +++ b/hw/bsp/board.c @@ -134,3 +134,8 @@ int board_getchar(void) { char c; return (sys_read(0, &c, 1) > 0) ? (int) c : (-1); } + + +uint32_t tusb_time_millis(void) { + return board_millis(); +} |
