Commit 138d857d authored by 时昊's avatar 时昊

feat:增加按键功能

parent bd899f06
......@@ -24,6 +24,9 @@ void Sys_5ms_Tasks(void)
void Sys_10ms_Tasks(void)
{
Key_Service();
Key_Clear_Time();
Key_TimeOut_Service();
Fuel_R_Cal(10u);
}
......@@ -35,26 +38,13 @@ void Sys_20ms_Tasks(void)
void Sys_50ms_Tasks(void)
{
g_u8Cursor_Posittion = Menu_Get_Current_Cursor_Information();
}
uint32_t g_u32LEDFlag = 0UL;
//uint8_t ljsuartsend[2] = { 0x55, 0x66};
void Sys_100ms_Tasks(void)
{
if (g_u32LEDFlag)
{
g_u32LEDFlag = 0UL;
//RTE_GPIO_Set_Level(RTE_GPIO_ANALOG_PORT0_PIN15, 0x01U);
}
else
{
g_u32LEDFlag = 1UL;
//RTE_GPIO_Set_Level(RTE_GPIO_ANALOG_PORT0_PIN15, 0x00U);
}
Fuel_Cal_Sevice(100u);
RTE_GPIO_Set_Level(Blacklight_PWM, 1);
//UART_Ch2_Send_Multiple_Byte(ljsuartsend, 2);
}
static uint16_t task_2ms = 0u;
void Sys_Exact_50us_Tasks(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment