|
SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
SuperTinyKernel RTOS via CMSIS RTOS2 wrapper example program. More...
Go to the source code of this file.
Classes | |
| struct | phases_t |
Functions | |
| void | Switch_On (unsigned char led) |
| void | Switch_Off (unsigned char led) |
| void | signal_func (osThreadId_t tid) |
| void | phaseA (void *argument) |
| void | phaseB (void *argument) |
| void | phaseC (void *argument) |
| void | phaseD (void *argument) |
| void | clock (void *argument) |
| void | app_main (void *argument) |
| void | app_run () |
Variables | |
| osThreadId_t | tid_phaseA |
| osThreadId_t | tid_phaseB |
| osThreadId_t | tid_phaseC |
| osThreadId_t | tid_phaseD |
| osThreadId_t | tid_clock |
| struct phases_t | g_phases |
SuperTinyKernel RTOS via CMSIS RTOS2 wrapper example program.
Definition in file blinky_c-cmsis-rtos2/example.c.
| void app_main | ( | void * | argument | ) |
Definition at line 148 of file blinky_c-cmsis-rtos2/example.c.
References clock(), osDelay(), osThreadFlagsSet(), osThreadNew(), osWaitForever, phaseA(), phaseB(), phaseC(), phaseD(), tid_clock, tid_phaseA, tid_phaseB, tid_phaseC, and tid_phaseD.
| void app_run | ( | ) |
Definition at line 162 of file blinky_c-cmsis-rtos2/example.c.
References app_main(), Led_InitAll(), osKernelGetState(), osKernelInitialize(), osKernelReady, osKernelStart(), and osThreadNew().
| void clock | ( | void * | argument | ) |
Definition at line 138 of file blinky_c-cmsis-rtos2/example.c.
References osDelay(), osFlagsWaitAny, osThreadFlagsWait(), and osWaitForever.
Referenced by app_main().
| void phaseA | ( | void * | argument | ) |
Definition at line 82 of file blinky_c-cmsis-rtos2/example.c.
References g_phases, osFlagsWaitAny, osThreadFlagsWait(), osWaitForever, signal_func(), Switch_Off(), Switch_On(), and tid_phaseB.
Referenced by __attribute__(), app_main(), app_main(), and app_main().
| void phaseB | ( | void * | argument | ) |
Definition at line 96 of file blinky_c-cmsis-rtos2/example.c.
References g_phases, osFlagsWaitAny, osThreadFlagsWait(), osWaitForever, signal_func(), Switch_Off(), Switch_On(), and tid_phaseC.
Referenced by __attribute__(), app_main(), app_main(), and app_main().
| void phaseC | ( | void * | argument | ) |
Definition at line 110 of file blinky_c-cmsis-rtos2/example.c.
References g_phases, osFlagsWaitAny, osThreadFlagsWait(), osWaitForever, signal_func(), Switch_Off(), Switch_On(), and tid_phaseD.
Referenced by __attribute__(), app_main(), app_main(), and app_main().
| void phaseD | ( | void * | argument | ) |
Definition at line 124 of file blinky_c-cmsis-rtos2/example.c.
References g_phases, osFlagsWaitAny, osThreadFlagsWait(), osWaitForever, signal_func(), Switch_Off(), Switch_On(), and tid_phaseA.
Referenced by __attribute__(), app_main(), app_main(), and app_main().
| void signal_func | ( | osThreadId_t | tid | ) |
Definition at line 70 of file blinky_c-cmsis-rtos2/example.c.
References osDelay(), osThreadFlagsSet(), and tid_clock.
Referenced by phaseA(), phaseA(), phaseA(), phaseB(), phaseB(), phaseB(), phaseC(), phaseC(), phaseC(), phaseD(), phaseD(), and phaseD().
| void Switch_Off | ( | unsigned char | led | ) |
Definition at line 61 of file blinky_c-cmsis-rtos2/example.c.
References Led_Set().
Referenced by phaseA(), phaseA(), phaseA(), phaseB(), phaseB(), phaseB(), phaseC(), phaseC(), phaseC(), phaseD(), phaseD(), and phaseD().
| void Switch_On | ( | unsigned char | led | ) |
Definition at line 53 of file blinky_c-cmsis-rtos2/example.c.
References Led_Set().
Referenced by phaseA(), phaseA(), phaseA(), phaseB(), phaseB(), phaseB(), phaseC(), phaseC(), phaseC(), phaseD(), phaseD(), and phaseD().
| struct phases_t g_phases |
Referenced by phaseA(), phaseA(), phaseA(), phaseB(), phaseB(), phaseB(), phaseC(), phaseC(), phaseC(), phaseD(), phaseD(), and phaseD().
| osThreadId_t tid_clock |
Definition at line 40 of file blinky_c-cmsis-rtos2/example.c.
Referenced by app_main(), app_main(), app_main(), signal_func(), and signal_func().
| osThreadId_t tid_phaseA |
Definition at line 36 of file blinky_c-cmsis-rtos2/example.c.
Referenced by app_main(), app_main(), app_main(), and phaseD().
| osThreadId_t tid_phaseB |
Definition at line 37 of file blinky_c-cmsis-rtos2/example.c.
Referenced by app_main(), app_main(), app_main(), and phaseA().
| osThreadId_t tid_phaseC |
Definition at line 38 of file blinky_c-cmsis-rtos2/example.c.
Referenced by app_main(), app_main(), app_main(), and phaseB().
| osThreadId_t tid_phaseD |
Definition at line 39 of file blinky_c-cmsis-rtos2/example.c.
Referenced by app_main(), app_main(), app_main(), and phaseC().