void Led_Task(void const * argument){
for(;;){
HAL_GPIO_WritePin(GPIOC,GPIO_PIN_1,GPIO_PIN_RESET);
osDelay(500);
HAL_GPIO_WritePin(GPIOC,GPIO_PIN_1,GPIO_PIN_SET);
osDelay(500);
}
}
void Usart_Task(void const * argument){
for(;;){
printf("UsartTask is Runing!\r\n");
osDelay(1000);
}
}
void KeyTask(void const * argument){
uint8_t key = 0;
for(;;){
key = KEY_Scan(0);
switch(key){
case KEY_UP_PRES:
memset(u8TaskListBuff, 0, 400);
vTaskList((char*)u8TaskListBuff);
printf("Name State Priority Stack Num\r\n");
printf("******************************************************\r\n");
printf("%s",u8TaskListBuff);
printf("******************************************************\r\n");
key = 0;
break;
case KEY_DOWN_PRES:
key = 0;
break;
}
osDelay(10);
}
}