暂存,还是不对
This commit is contained in:
parent
7ef214ee14
commit
513fbdfdbf
|
@ -10,7 +10,7 @@
|
||||||
"useLocalOpenOCD": true,
|
"useLocalOpenOCD": true,
|
||||||
"executable": "c:/MounRiver/MounRiver_Studio2/resources/app/resources/win32/components/WCH/OpenOCD/OpenOCD/bin/openocd.exe",
|
"executable": "c:/MounRiver/MounRiver_Studio2/resources/app/resources/win32/components/WCH/OpenOCD/OpenOCD/bin/openocd.exe",
|
||||||
"configOptions": [
|
"configOptions": [
|
||||||
"-f \"c:/MounRiver/MounRiver_Studio2/resources/app/resources/win32/components/WCH/OpenOCD/OpenOCD/bin/wch-riscv.cfg\""
|
"-f \"c:/MounRiver/MounRiver_Studio2/resources/app/resources/win32/components/WCH/OpenOCD/OpenOCD/bin/wch-riscv.cfg\" -c \"chip_id CH584/5\""
|
||||||
],
|
],
|
||||||
"gdbport": 3333,
|
"gdbport": 3333,
|
||||||
"telnetport": 4444,
|
"telnetport": 4444,
|
||||||
|
|
|
@ -51,6 +51,7 @@ void app_task_handler(TeAppEvtType app_evt_type)
|
||||||
switch (app_evt_type)
|
switch (app_evt_type)
|
||||||
{
|
{
|
||||||
case kKeyShort:
|
case kKeyShort:
|
||||||
|
tmos_set_event(vavle_task_id, VAVLE_DECT_SWITCH_START_EVT);
|
||||||
logDebug("button short press");
|
logDebug("button short press");
|
||||||
key_press_cnt++;
|
key_press_cnt++;
|
||||||
logDebug("key_press_cnt = %d", key_press_cnt);
|
logDebug("key_press_cnt = %d", key_press_cnt);
|
||||||
|
|
|
@ -295,7 +295,6 @@ void KEY_ProcessLoop(void)
|
||||||
|
|
||||||
key_wakeup_flag = 0;
|
key_wakeup_flag = 0;
|
||||||
tmos_set_event(key_task_id, KEY_SCAN_EVT);
|
tmos_set_event(key_task_id, KEY_SCAN_EVT);
|
||||||
tmos_set_event(vavle_task_id, VAVLE_DECT_SWITCH_START_EVT);
|
|
||||||
logDebug("KEY_ProcessLoop");
|
logDebug("KEY_ProcessLoop");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -555,12 +555,12 @@ static uint16_t VAVLE_Task_ProcessEvent(uint8_t task_id, uint16_t events)
|
||||||
VavleDect_Switch();
|
VavleDect_Switch();
|
||||||
valve_switch_dect_flag = 1;
|
valve_switch_dect_flag = 1;
|
||||||
|
|
||||||
// logDebug("LED显示状态");
|
logDebug("LED显示状态");
|
||||||
// // tmos_set_event(led_task_id, LED_SHOW_START_EVT);
|
// tmos_set_event(led_task_id, LED_SHOW_START_EVT);
|
||||||
// BSP_BlockSleep();
|
BSP_BlockSleep();
|
||||||
// BSP_RequestBoost();
|
BSP_RequestBoost();
|
||||||
// DelayMs(1);
|
DelayMs(1);
|
||||||
// ShowLed();
|
ShowLed();
|
||||||
|
|
||||||
return (events ^ VAVLE_DECT_SWITCH_END_EVT);
|
return (events ^ VAVLE_DECT_SWITCH_END_EVT);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue