mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-20 15:08:37 +03:00
Initial commit
This commit is contained in:
21
external/CMSIS_5/CMSIS/RTOS/RTX/UserCodeTemplates/main.c
vendored
Normal file
21
external/CMSIS_5/CMSIS/RTOS/RTX/UserCodeTemplates/main.c
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
/*----------------------------------------------------------------------------
|
||||
* CMSIS-RTOS 'main' function template
|
||||
*---------------------------------------------------------------------------*/
|
||||
|
||||
#define osObjectsPublic // define objects in main module
|
||||
#include "osObjects.h" // RTOS object definitions
|
||||
|
||||
|
||||
/*
|
||||
* main: initialize and start the system
|
||||
*/
|
||||
int main (void) {
|
||||
osKernelInitialize (); // initialize CMSIS-RTOS
|
||||
|
||||
// initialize peripherals here
|
||||
|
||||
// create 'thread' functions that start executing,
|
||||
// example: tid_name = osThreadCreate (osThread(name), NULL);
|
||||
|
||||
osKernelStart (); // start thread execution
|
||||
}
|
Reference in New Issue
Block a user