Add MG_ARCH_TREADX

This commit is contained in:
Sergey Lyubka committed 2025-06-16 11:09:41 +01:00
1 parent bfca233160
commit 3a0fe5288c
12 files changed
+133 -92

No files matched your search

+1 -1
View File
@@ -147,7 +147,7 @@ uint64_t mg_millis(void) {
#elif MG_ARCH == MG_ARCH_ESP8266 || MG_ARCH == MG_ARCH_ESP32 || \
MG_ARCH == MG_ARCH_FREERTOS
return xTaskGetTickCount() * portTICK_PERIOD_MS;
#elif MG_ARCH == MG_ARCH_AZURERTOS
#elif MG_ARCH == MG_ARCH_THREADX
return tx_time_get() * (1000 /* MS per SEC */ / TX_TIMER_TICKS_PER_SECOND);
#elif MG_ARCH == MG_ARCH_TIRTOS
return (uint64_t) Clock_getTicks();