|
91 | 91 | #define fxUnlockMutex(MUTEX) LeaveCriticalSection(MUTEX) |
92 | 92 | #define fxSleepCondition(CONDITION,MUTEX) SleepConditionVariableCS(CONDITION,MUTEX,INFINITE) |
93 | 93 | #define fxWakeCondition(CONDITION) WakeConditionVariable(CONDITION) |
94 | | -#elif _ZEPHYR |
| 94 | +#elif __ZEPHYR__ |
95 | 95 |
|
96 | 96 | typedef uint32_t txCondition; |
97 | 97 | typedef void *txMutex; |
@@ -394,7 +394,7 @@ void _262_agent_broadcast(txMachine* the) |
394 | 394 | gxAgentCluster.dataValue = xsToInteger(xsArg(1)); |
395 | 395 | #if mxWindows |
396 | 396 | WakeAllConditionVariable(&(gxAgentCluster.dataCondition)); |
397 | | -#elif PICO_BUILD || _ZEPHYR |
| 397 | +#elif PICO_BUILD || __ZEPHYR__ |
398 | 398 | #else |
399 | 399 | pthread_cond_broadcast(&(gxAgentCluster.dataCondition)); |
400 | 400 | #endif |
@@ -481,7 +481,7 @@ void _262_agent_sleep(txMachine* the) |
481 | 481 | xsIntegerValue delay = xsToInteger(xsArg(0)); |
482 | 482 | #ifdef mxUseFreeRTOSTasks |
483 | 483 | vTaskDelay(pdMS_TO_TICKS(delay)); |
484 | | -#elif PICO_BUILD || _ZEPHYR |
| 484 | +#elif PICO_BUILD || __ZEPHYR__ |
485 | 485 | modDelayMilliseconds(delay); |
486 | 486 | #elif mxWindows |
487 | 487 | Sleep(delay); |
@@ -514,7 +514,7 @@ void _262_agent_start(txMachine* the) |
514 | 514 | xTaskCreate(_262_agent_start_aux, "agent", kStack, agent, 8, &(agent->thread)); |
515 | 515 | #elif mxWindows |
516 | 516 | agent->thread = (HANDLE)_beginthreadex(NULL, 0, _262_agent_start_aux, agent, 0, NULL); |
517 | | -#elif PICO_BUILD || _ZEPHYR |
| 517 | +#elif PICO_BUILD || __ZEPHYR__ |
518 | 518 | _262_agent_start_aux(agent); |
519 | 519 | #else |
520 | 520 | pthread_create(&(agent->thread), NULL, &_262_agent_start_aux, agent); |
@@ -601,7 +601,7 @@ void _262_agent_stop(txMachine* the) |
601 | 601 | #if mxWindows |
602 | 602 | WaitForSingleObject(agent->thread, INFINITE); |
603 | 603 | CloseHandle(agent->thread); |
604 | | - #elif PICO_BUILD || _ZEPHYR |
| 604 | + #elif PICO_BUILD || __ZEPHYR__ |
605 | 605 | #else |
606 | 606 | pthread_join(agent->thread, NULL); |
607 | 607 | #endif |
@@ -663,7 +663,7 @@ void _262_evalScript(txMachine* the) |
663 | 663 | mxPullSlot(mxResult); |
664 | 664 | } |
665 | 665 |
|
666 | | -#if _ZEPHYR |
| 666 | +#if __ZEPHYR__ |
667 | 667 |
|
668 | 668 | void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *esf) |
669 | 669 | { |
|
0 commit comments