SikendeRTOS
RTOS for ARM Cortex M3+ SoCs designed and written from scratch
main.c File Reference

Example program using SikendeRTOS features. More...

#include "OS.h"
#include "UART0.h"
#include "Interpreter.h"
#include <stdint.h>
#include "cpu.h"
Include dependency graph for main.c:

Go to the source code of this file.

Functions

void Flash_Green (void)
 Blink Green LED. More...
 
void Flash_Blue (void)
 Blink Blue LED. More...
 
void Flash_Red (void)
 Blink Red LED. More...
 
void Flash_Red2 (void)
 Blink Red LED. More...
 
void WrapInterpreter (void)
 Run interpreter using UART0 (in USB debugger) More...
 
void DummyThread (void)
 Dummy Thread, Prevent OS crash if no threads running. More...
 
int main (void)
 Example usecase of RTOS. More...
 
void HardFault_Handler (void)
 HArdfault Handler Sets LEDS to white to indicate fault, assumes LEDS already initialized. More...
 

Variables

int ThreadsCreated = 0
 
Sema4Type Mutex_REDLED
 

Detailed Description

Example program using SikendeRTOS features.

Date
2/9/2019

Definition in file main.c.

Function Documentation

◆ DummyThread()

void DummyThread ( void  )

Dummy Thread, Prevent OS crash if no threads running.

Definition at line 94 of file main.c.

Here is the caller graph for this function:

◆ Flash_Blue()

void Flash_Blue ( void  )

Blink Blue LED.

Definition at line 38 of file main.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Flash_Green()

void Flash_Green ( void  )

Blink Green LED.

Definition at line 23 of file main.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Flash_Red()

void Flash_Red ( void  )

Blink Red LED.

Definition at line 52 of file main.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Flash_Red2()

void Flash_Red2 ( void  )

Blink Red LED.

Definition at line 67 of file main.c.

Here is the call graph for this function:

◆ HardFault_Handler()

void HardFault_Handler ( void  )

HArdfault Handler Sets LEDS to white to indicate fault, assumes LEDS already initialized.

Definition at line 147 of file main.c.

◆ main()

int main ( void  )

Example usecase of RTOS.

Definition at line 106 of file main.c.

Here is the call graph for this function:

◆ WrapInterpreter()

void WrapInterpreter ( void  )

Run interpreter using UART0 (in USB debugger)

Definition at line 82 of file main.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ Mutex_REDLED

Sema4Type Mutex_REDLED

Definition at line 17 of file main.c.

◆ ThreadsCreated

int ThreadsCreated = 0

Definition at line 14 of file main.c.