连接间隔调大了点,20~30uA
This commit is contained in:
parent
20943bd22e
commit
ccaaa8a28c
|
@ -40,23 +40,23 @@
|
||||||
#define SBP_PHY_UPDATE_DELAY 2400
|
#define SBP_PHY_UPDATE_DELAY 2400
|
||||||
|
|
||||||
// What is the advertising interval when device is discoverable (units of 625us, 80=50ms)
|
// What is the advertising interval when device is discoverable (units of 625us, 80=50ms)
|
||||||
#define DEFAULT_ADVERTISING_INTERVAL (160 * 10)
|
#define DEFAULT_ADVERTISING_INTERVAL (160 * 1)
|
||||||
|
|
||||||
// Limited discoverable mode advertises for 30.72s, and then stops
|
// Limited discoverable mode advertises for 30.72s, and then stops
|
||||||
// General discoverable mode advertises indefinitely
|
// General discoverable mode advertises indefinitely
|
||||||
#define DEFAULT_DISCOVERABLE_MODE GAP_ADTYPE_FLAGS_GENERAL
|
#define DEFAULT_DISCOVERABLE_MODE GAP_ADTYPE_FLAGS_GENERAL
|
||||||
|
|
||||||
// Minimum connection interval (units of 1.25ms, 6=7.5ms)
|
// Minimum connection interval (units of 1.25ms, 6=7.5ms)
|
||||||
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL (100)
|
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL (80 * 5)
|
||||||
|
|
||||||
// Maximum connection interval (units of 1.25ms, 100=125ms)
|
// Maximum connection interval (units of 1.25ms, 100=125ms)
|
||||||
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL 400
|
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL (80 * 10)
|
||||||
|
|
||||||
// Slave latency to use parameter update
|
// Slave latency to use parameter update
|
||||||
#define DEFAULT_DESIRED_SLAVE_LATENCY 5
|
#define DEFAULT_DESIRED_SLAVE_LATENCY 3
|
||||||
|
|
||||||
// Supervision timeout value (units of 10ms, 100=1s)
|
// Supervision timeout value (units of 10ms, 100=1s)
|
||||||
#define DEFAULT_DESIRED_CONN_TIMEOUT 200
|
#define DEFAULT_DESIRED_CONN_TIMEOUT (100 * 5)
|
||||||
|
|
||||||
// Company Identifier: WCH
|
// Company Identifier: WCH
|
||||||
#define WCH_COMPANY_ID 0x07D7
|
#define WCH_COMPANY_ID 0x07D7
|
||||||
|
|
|
@ -84,17 +84,15 @@ __attribute__((noinline)) void Main_Circulation()
|
||||||
EMV_CHARGE_EN;
|
EMV_CHARGE_EN;
|
||||||
PRINT("EMV_CHARGE_EN\n");
|
PRINT("EMV_CHARGE_EN\n");
|
||||||
|
|
||||||
// DelayMs(500);
|
DelayMs(500);
|
||||||
|
|
||||||
// EMV_CHARGE_OFF_DEINIT;
|
EMV_CHARGE_OFF_DEINIT;
|
||||||
// PRINT("EMV_CHARGE_OFF_DEINIT 1s\n");
|
PRINT("EMV_CHARGE_OFF_DEINIT 500 ms\n");
|
||||||
|
|
||||||
DelayMs(1000);
|
|
||||||
|
|
||||||
// EMV_CTRL
|
// EMV_CTRL
|
||||||
EMV_ON;
|
EMV_ON;
|
||||||
PRINT("EMV_ON\n");
|
PRINT("EMV_ON\n");
|
||||||
DelayMs(1000);
|
DelayMs(100);
|
||||||
|
|
||||||
BOOST_OFF_DEINIT;
|
BOOST_OFF_DEINIT;
|
||||||
BEEP_OFF_DEINIT;
|
BEEP_OFF_DEINIT;
|
||||||
|
|
Loading…
Reference in New Issue