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);
}
}
uint8_t u8TaskListBuff[400];
void KeyTask(void const * argument){
uint8_t key = 0;
for(;;){
key = KEY_Scan(0);
switch(key){
case KEY_UP_PRES:
memset(u8TaskListBuff, 0, 400);
vTaskGetRunTimeStats((char*)u8TaskListBuff);
printf("Name Abs Time Time\r\n");
printf("******************************************************\r\n");
printf("%s",u8TaskListBuff);
printf("******************************************************\r\n");
key = 0;
break;
case KEY_DOWN_PRES:
key = 0;
break;
}
osDelay(10);
}
}