Syntax
// This is a single line comment.
// and run until the end of the current line.Code example
//-----------------------------------------------
// CMSIS-RTOS 'main' function template
//-----------------------------------------------
#include "cmsis_os2.h"
// main: initialize and start the system
int main (void) {
osKernelInitialize (); // initialize RTOS
LED_Initialize(); // initialize LEDs
// create 'thread' functions that start executing
// Example:
// tid_name=osThreadCreate (osThread(name), NULL);
osKernelStart (); // start thread execution
}