mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-01-30 14:14:31 +00:00
28 lines
872 B
C
28 lines
872 B
C
/*----------------------------------------------------------------------------
|
|
* CMSIS-RTOS 'main' function template
|
|
*---------------------------------------------------------------------------*/
|
|
|
|
#include "RTE_Components.h"
|
|
#include CMSIS_device_header
|
|
#include "cmsis_os2.h"
|
|
|
|
/*----------------------------------------------------------------------------
|
|
* Application main thread
|
|
*---------------------------------------------------------------------------*/
|
|
__NO_RETURN static void app_main (void *argument) {
|
|
(void)argument;
|
|
// ...
|
|
for (;;) {}
|
|
}
|
|
|
|
int main (void) {
|
|
|
|
// System Initialization
|
|
SystemCoreClockUpdate();
|
|
// ...
|
|
|
|
osKernelInitialize(); // Initialize CMSIS-RTOS
|
|
osThreadNew(app_main, NULL, NULL); // Create application main thread
|
|
osKernelStart(); // Start thread execution
|
|
for (;;) {}
|
|
}
|