Improve TI-RTOS timing support

This commit is contained in:
Sergio R. Caprile committed 2022-10-24 11:48:54 -03:00
1 parent 637af1d392
commit c8c540b453
4 files changed
+8

No files matched your search

+2
View File
@@ -102,6 +102,8 @@ uint64_t mg_millis(void) {
return xTaskGetTickCount() * portTICK_PERIOD_MS;
#elif MG_ARCH == MG_ARCH_AZURERTOS
return tx_time_get() * (1000 /* MS per SEC */ / TX_TIMER_TICKS_PER_SECOND);
#elif MG_ARCH == MG_ARCH_TIRTOS
return (uint64_t) Clock_getTicks();
#elif MG_ARCH == MG_ARCH_ZEPHYR
return (uint64_t) k_uptime_get();
#elif MG_ARCH == MG_ARCH_UNIX && defined(__APPLE__)