|
SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
Priority Inheritance demonstration via CMSIS RTOS2. More...
Go to the source code of this file.
Macros | |
| #define | FIX_COOPERATIVE_BEHAVIOR (0) |
Functions | |
| static LedId | to_hw_led (unsigned char led) |
| static void | led_on (unsigned char led) |
| static void | led_off (unsigned char led) |
| void | LowPrioThread (void *argument) |
| void | MidPrioThread (void *argument) |
| void | HighPrioThread (void *argument) |
| void | app_main (void *argument) |
| void | app_run () |
Variables | |
| static osMutexId_t | mutex_id |
| static const osMutexAttr_t | mutex_attr |
| static osThreadId_t | tid_high |
| static osThreadId_t | tid_mid |
| static osThreadId_t | tid_low |
Priority Inheritance demonstration via CMSIS RTOS2.
Definition in file blinky_c-cmsis-rtos2-prio/example.c.
| #define FIX_COOPERATIVE_BEHAVIOR (0) |
Definition at line 61 of file blinky_c-cmsis-rtos2-prio/example.c.
| void app_main | ( | void * | argument | ) |
Definition at line 209 of file blinky_c-cmsis-rtos2-prio/example.c.
References HighPrioThread(), LowPrioThread(), MidPrioThread(), mutex_attr, mutex_id, osDelay(), osMutexNew(), osPriorityAboveNormal, osPriorityBelowNormal, osPriorityNormal, osThreadNew(), osWaitForever, tid_high, tid_low, and tid_mid.
Referenced by app_init(), app_run(), and tx_application_define().
| void app_run | ( | ) |
Definition at line 240 of file blinky_c-cmsis-rtos2-prio/example.c.
References app_main(), Led_InitAll(), osKernelGetState(), osKernelInitialize(), osKernelReady, osKernelStart(), and osThreadNew().
| void HighPrioThread | ( | void * | argument | ) |
Definition at line 179 of file blinky_c-cmsis-rtos2-prio/example.c.
References led_off(), led_on(), mutex_id, osDelay(), osMutexAcquire(), osMutexRelease(), and osWaitForever.
Referenced by app_main().
|
static |
Definition at line 102 of file blinky_c-cmsis-rtos2-prio/example.c.
References Led_Set(), and to_hw_led().
Referenced by HighPrioThread(), LowPrioThread(), and MidPrioThread().
|
static |
Definition at line 97 of file blinky_c-cmsis-rtos2-prio/example.c.
References Led_Set(), and to_hw_led().
Referenced by HighPrioThread(), LowPrioThread(), and MidPrioThread().
| void LowPrioThread | ( | void * | argument | ) |
Definition at line 114 of file blinky_c-cmsis-rtos2-prio/example.c.
References led_off(), led_on(), mutex_id, osDelay(), osMutexAcquire(), osMutexRelease(), and osWaitForever.
Referenced by app_main().
| void MidPrioThread | ( | void * | argument | ) |
Definition at line 142 of file blinky_c-cmsis-rtos2-prio/example.c.
References led_off(), led_on(), osDelay(), and osThreadYield().
Referenced by app_main().
|
static |
Definition at line 88 of file blinky_c-cmsis-rtos2-prio/example.c.
References LED_BLUE, LED_GREEN, LED_ORANGE, and LED_RED.
Referenced by led_off(), and led_on().
|
static |
Definition at line 73 of file blinky_c-cmsis-rtos2-prio/example.c.
Referenced by app_main().
|
static |
Definition at line 71 of file blinky_c-cmsis-rtos2-prio/example.c.
Referenced by app_main(), HighPrioThread(), LowPrioThread(), osMutexAcquire(), osMutexDelete(), osMutexGetName(), osMutexGetOwner(), and osMutexRelease().
|
static |
Definition at line 81 of file blinky_c-cmsis-rtos2-prio/example.c.
Referenced by app_main().
|
static |
Definition at line 83 of file blinky_c-cmsis-rtos2-prio/example.c.
Referenced by app_main().
|
static |
Definition at line 82 of file blinky_c-cmsis-rtos2-prio/example.c.
Referenced by app_main().