Add NUCLEO_STM32L496ZG Keil And IAR Project

Signed-off-by: squallbest <squall@live0415.com>
This commit is contained in:
squallbest
2019-10-16 05:59:31 +08:00
parent 9cac7fa9bb
commit 881435a2a9
26 changed files with 7404 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#include "mcu_init.h"
#include "cmsis_os.h"
#define APPLICATION_TASK_STK_SIZE 1024
extern void application_entry(void *arg);
osThreadDef(application_entry, osPriorityNormal, 1, APPLICATION_TASK_STK_SIZE);
__weak void application_entry(void *arg)
{
while (1) {
printf("This is a demo task,please use your task entry!\r\n");
tos_task_delay(1000);
}
}
int main(void)
{
board_init();
printf("Welcome to TencentOS tiny NUCLEO_STM32L496ZG IAR Project\r\n");
osKernelInitialize();
osThreadCreate(osThread(application_entry), NULL);
osKernelStart();
}