3min 通知闪灯5ms,连接间隔加大0.5s,连接超时3s,低压2050mV
This commit is contained in:
parent
b6d9e11220
commit
8bfc62d9e7
|
@ -52,7 +52,8 @@ void BSP_NoNeeedReplyCMd(void)
|
|||
}
|
||||
|
||||
// How often to perform periodic event
|
||||
#define SBP_PERIODIC_EVT_PERIOD (1600 * 60) // (160 = 100ms)
|
||||
// TODO:这里长点功耗低
|
||||
#define SBP_PERIODIC_EVT_PERIOD (1600 * 60 * 3) // (160 = 100ms)
|
||||
|
||||
// How often to perform read rssi event
|
||||
#define SBP_READ_RSSI_EVT_PERIOD (1600 * 3) // (160 = 100ms)
|
||||
|
@ -74,13 +75,13 @@ void BSP_NoNeeedReplyCMd(void)
|
|||
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL (80 * 4) // (80 = 100ms)
|
||||
|
||||
// Maximum connection interval (units of 1.25ms, 100=125ms)
|
||||
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL (80 * 5)
|
||||
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL (80 * 6)
|
||||
|
||||
// Slave latency to use parameter update
|
||||
#define DEFAULT_DESIRED_SLAVE_LATENCY 0
|
||||
|
||||
// Supervision timeout value (units of 10ms, 100=1s)
|
||||
#define DEFAULT_DESIRED_CONN_TIMEOUT (100 * 2)
|
||||
#define DEFAULT_DESIRED_CONN_TIMEOUT (100 * 3)
|
||||
|
||||
// Company Identifier: WCH
|
||||
#define WCH_COMPANY_ID 0x07D7
|
||||
|
|
|
@ -284,7 +284,7 @@ int main(void)
|
|||
BSP_FLASH_Init();
|
||||
|
||||
BSP_KEY_Init(app_task_handler);
|
||||
BSP_BEEP_LED_EMV_Init();
|
||||
|
||||
GXHTC3C_Init();
|
||||
BSP_ADC_Init();
|
||||
|
||||
|
@ -313,6 +313,8 @@ int main(void)
|
|||
LED_ALL_OFF_DEINIT;
|
||||
BEEP_OFF_DEINIT;
|
||||
|
||||
BSP_BEEP_LED_EMV_Init();
|
||||
|
||||
IWDG_Init(IWDG_TIMEOUT_MS);
|
||||
|
||||
// logDebug("BSP_Get_Tick1 %d", BSP_Get_Tick());
|
||||
|
|
|
@ -44,12 +44,11 @@ extern tmosTaskID vavle_task_id;
|
|||
#define CHARGE_TIME_MS (2000)
|
||||
|
||||
// 2.2V
|
||||
#define LOW_VABAT_ALARM_VALUE 23
|
||||
// #define LOW_VABAT_ALARM_VALUE 23
|
||||
|
||||
#define LOW_VABAT_CLOSE_VALUE 2000
|
||||
// #define LOW_VABAT_CLOSE_VALUE 2000
|
||||
|
||||
#define LOW_VABAT_ALARM_MV 2050
|
||||
#define LOW_VABAT_CLOSE_MV 2000
|
||||
#define LOW_VABAT_CLOSE_MV 2050
|
||||
|
||||
|
||||
#define HIGN_TEMP_CLOSE_C 60
|
||||
|
|
|
@ -65,7 +65,8 @@ static tmosEvents LED_Task_ProcessEvent(tmosTaskID taskID, tmosEvents event)
|
|||
ShowLed();
|
||||
tmos_stop_task(led_task_id, LED_SHOW_END_EVT);
|
||||
// tmos_start_task(led_task_id, LED_SHOW_ONCE_EVT, MS1_TO_SYSTEM_TIME(10));
|
||||
tmos_start_task(led_task_id, LED_SHOW_END_EVT, MS1_TO_SYSTEM_TIME(10));
|
||||
// TODO:这里短点功耗低
|
||||
tmos_start_task(led_task_id, LED_SHOW_END_EVT, MS1_TO_SYSTEM_TIME(5));
|
||||
return (event ^ LED_SHOW_START_EVT);
|
||||
}
|
||||
if (event & LED_SHOW_ONCE_EVT)
|
||||
|
|
Loading…
Reference in New Issue