补充
static OS_STK startup_task_stk[STARTUP_TASK_STK_SIZE];
static OS_STK task1_stk[STARTUP_TASK_STK_SIZE];
static OS_STK task2_stk[STARTUP_TASK_STK_SIZE];
static OS_STK task3_stk[STARTUP_TASK_STK_SIZE];
static OS_STK task4_stk[STARTUP_TASK_STK_SIZE];
static OS_STK task5_stk[STARTUP_TASK_STK_SIZE];
static OS_STK task6_stk[STARTUP_TASK_STK_SIZE];
static void task1(void *p_arg);
static void task2(void *p_arg);
static void task3(void *p_arg);
static void task4(void *p_arg);
static void task5(void *p_arg);
static void task6(void *p_arg);
static void startup_task(void *p_arg)
{
systick_init(); /* Initialize the SysTick. */
#if (OS_TASK_STAT_EN > 0)
OSStatInit(); /* Determine CPU capacity. */
#endif
/* TODO: create application tasks here */
// RTC_Configuration();
// RTC_Set(14,6,10,1,15,0);
OSTaskCreate((void (*)(void *))task1, (void *)0,
&task1_stk[STARTUP_TASK_STK_SIZE - 1],6);
OSTaskCreate((void (*)(void *))task2, (void *)0,
&task2_stk[STARTUP_TASK_STK_SIZE - 1], 7);
OSTaskCreate((void (*)(void *))task3, (void *)0,
&task3_stk[STARTUP_TASK_STK_SIZE - 1], 8);
OSTaskCreate((void (*)(void *))task4, (void *)0,
&task4_stk[STARTUP_TASK_STK_SIZE - 1], 9);
OSTaskCreate((void (*)(void *))task5, (void *)0,
&task5_stk[STARTUP_TASK_STK_SIZE - 1], 10);
// OSTaskCreate((void (*)(void *))task6, (void *)0,
// &task6_stk[STARTUP_TASK_STK_SIZE - 1], 11);
OSTaskDel(OS_PRIO_SELF);
}