直通12V驱动不了

This commit is contained in:
stark1898y 2024-12-09 13:55:27 +08:00
parent 5c0ba6ef42
commit 20943bd22e
2 changed files with 6 additions and 11 deletions

View File

@ -40,7 +40,7 @@
#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 * 1) #define DEFAULT_ADVERTISING_INTERVAL (160 * 10)
// 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

View File

@ -84,22 +84,17 @@ __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 1s\n");
// 12V_EN DelayMs(1000);
GPIOB_ResetBits(GPIO_Pin_14);
GPIOB_ModeCfg(GPIO_Pin_14, GPIO_ModeOut_PP_5mA);
PRINT("12V_EN OFF\n");
DelayMs(3000);
// EMV_CTRL // EMV_CTRL
EMV_ON; EMV_ON;
PRINT("EMV_ON\n"); PRINT("EMV_ON\n");
DelayMs(100); DelayMs(1000);
BOOST_OFF_DEINIT; BOOST_OFF_DEINIT;
BEEP_OFF_DEINIT; BEEP_OFF_DEINIT;