SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
Loading...
Searching...
No Matches
main.c File Reference

Go to the source code of this file.

Functions

void app_run ()
int main (int argc, char *argv[])

Function Documentation

◆ app_run()

void app_run ( )
extern

Definition at line 240 of file blinky_c-cmsis-rtos2-prio/example.c.

244{
245 /* System Initialization */
246 SystemCoreClockUpdate();
247
248 /* Init LEDs (see to_hw_led):
249 * led 0 = LED_RED -> LowPrio holds mutex
250 * led 1 = LED_GREEN -> MidPrio busy loop
251 * led 2 = LED_BLUE -> HighPrio holds mutex
252 */
253 Led_InitAll(false);
254
256 osThreadNew(app_main, NULL, NULL);
259 }
260
261 while (1);
262}
void Led_InitAll(bool state)
Definition c_wrapper.cpp:27
osKernelState_t osKernelGetState(void)
osThreadId_t osThreadNew(osThreadFunc_t func, void *argument, const osThreadAttr_t *attr)
osStatus_t osKernelStart(void)
osStatus_t osKernelInitialize(void)
@ osKernelReady
Ready.
Definition cmsis_os2.h:169
void app_main(void *argument)

Referenced by main().

Here is the caller graph for this function:

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 12 of file blinky_c-cyabs_rtos/main.c.

13{
14 (void)argc;
15 (void)argv;
16
17 app_run();
18 return 0 ;
19}

References app_run().

Here is the call graph for this function: