直通12V驱动不了
This commit is contained in:
parent
5c0ba6ef42
commit
20943bd22e
|
@ -40,7 +40,7 @@
|
|||
#define SBP_PHY_UPDATE_DELAY 2400
|
||||
|
||||
// What is the advertising interval when device is discoverable (units of 625us, 80=50ms)
|
||||
#define DEFAULT_ADVERTISING_INTERVAL (160 * 1)
|
||||
#define DEFAULT_ADVERTISING_INTERVAL (160 * 10)
|
||||
|
||||
// Limited discoverable mode advertises for 30.72s, and then stops
|
||||
// General discoverable mode advertises indefinitely
|
||||
|
|
|
@ -84,22 +84,17 @@ __attribute__((noinline)) void Main_Circulation()
|
|||
EMV_CHARGE_EN;
|
||||
PRINT("EMV_CHARGE_EN\n");
|
||||
|
||||
DelayMs(500);
|
||||
// DelayMs(500);
|
||||
|
||||
EMV_CHARGE_OFF_DEINIT;
|
||||
PRINT("EMV_CHARGE_OFF_DEINIT 1s\n");
|
||||
// EMV_CHARGE_OFF_DEINIT;
|
||||
// PRINT("EMV_CHARGE_OFF_DEINIT 1s\n");
|
||||
|
||||
// 12V_EN
|
||||
GPIOB_ResetBits(GPIO_Pin_14);
|
||||
GPIOB_ModeCfg(GPIO_Pin_14, GPIO_ModeOut_PP_5mA);
|
||||
PRINT("12V_EN OFF\n");
|
||||
|
||||
DelayMs(3000);
|
||||
DelayMs(1000);
|
||||
|
||||
// EMV_CTRL
|
||||
EMV_ON;
|
||||
PRINT("EMV_ON\n");
|
||||
DelayMs(100);
|
||||
DelayMs(1000);
|
||||
|
||||
BOOST_OFF_DEINIT;
|
||||
BEEP_OFF_DEINIT;
|
||||
|
|
Loading…
Reference in New Issue