diff options
| author | hathach <[email protected]> | 2018-09-04 14:20:30 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-09-04 14:20:51 +0700 |
| commit | 8600c4b6168c652347cab9a6b82aaabcf0e481eb (patch) | |
| tree | 695c9a6cf8887b94c265c9e11daf6eebd6222302 /src/osal/osal.c | |
| parent | e6fdfe8ac722a8b3ba89e47e827e7297195f9a99 (diff) | |
adding mynewt to osal
Diffstat (limited to 'src/osal/osal.c')
| -rw-r--r-- | src/osal/osal.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/osal/osal.c b/src/osal/osal.c index f2078b09c..4507b0b8f 100644 --- a/src/osal/osal.c +++ b/src/osal/osal.c @@ -50,5 +50,12 @@ uint32_t tusb_hal_millis(void) return ( ( ((uint64_t) xTaskGetTickCount()) * 1000) / configTICK_RATE_HZ ); } +#elif CFG_TUSB_OS == OPT_OS_MYNEWT + +uint32_t tusb_hal_millis(void) +{ + return os_time_ticks_to_ms32( os_time_get() ); +} + #endif |
