add BearPi L5 support

add BearPi L5 support
This commit is contained in:
supowang
2021-03-15 14:32:11 +08:00
parent 0c2af37b96
commit 13d5ea043a
53 changed files with 15374 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#include "mcu_init.h"
#include "cmsis_os.h"
#define APPLICATION_TASK_STK_SIZE 4096
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\r\n");
osKernelInitialize(); // TencentOS Tiny kernel initialize
osThreadCreate(osThread(application_entry), NULL); // Create TencentOS Tiny task
osKernelStart(); // Start TencentOS Tiny
}