SDK: add project of mqtt

This commit is contained in:
thomas_li
2020-02-10 10:11:00 +08:00
parent bf904dcf4a
commit 97cb277bd8
13 changed files with 4865 additions and 73 deletions

View File

@@ -1,7 +1,8 @@
#include "mcu_init.h"
#include "cmsis_os.h"
#define APPLICATION_TASK_STK_SIZE 1024
#define APPLICATION_TASK_STK_SIZE 4096
extern void application_entry(void *arg);
osThreadDef(application_entry, osPriorityNormal, 1, APPLICATION_TASK_STK_SIZE);
@@ -16,8 +17,9 @@ __weak void application_entry(void *arg)
int main(void)
{
board_init();
printf("Welcome to TencentOS tiny NUCLEO_STM32L496ZG IAR Project\r\n");
osKernelInitialize();
osThreadCreate(osThread(application_entry), NULL);
osKernelStart();
printf("Welcome to TencentOS tiny\r\n");
osKernelInitialize(); // TOS Tiny kernel initialize
osThreadCreate(osThread(application_entry), NULL); // Create TOS Tiny task
osKernelStart(); // Start TOS Tiny
}