From 7ef214ee14b90b9d15ddc89efbff0d7df19dc525 Mon Sep 17 00:00:00 2001 From: stark1898y <1658608470@qq.com> Date: Sat, 22 Feb 2025 18:05:33 +0800 Subject: [PATCH] =?UTF-8?q?1=E6=B3=A2=E7=89=B9=E7=8E=87=E6=8B=89=E9=AB=98?= =?UTF-8?q?=E5=88=B02.5Mbps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 3 +++ APP/peripheral_main.c | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 3501524..d93d7be 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -21,5 +21,8 @@ "hal.h": "c", "bsp_iwdg.h": "c", "bsp_valve_dect.h": "c" +======= + "bsp_iwdg.h": "c" +>>>>>>> ff9c225 (波特率拉高到2.5Mbps) } } diff --git a/APP/peripheral_main.c b/APP/peripheral_main.c index 71c63e6..93ac32f 100644 --- a/APP/peripheral_main.c +++ b/APP/peripheral_main.c @@ -213,9 +213,17 @@ int main(void) BSP_KEY_Init(app_task_handler); - DelayMs(10); + // IWDG_Init(1500); + DelayMs(1000 * 3); + BSP_ADC_Init(); + BSP_VAVLE_Init(); + + HAL_Init(); + GAPRole_PeripheralInit(); + Peripheral_Init(); + BSP_BlockSleep(); BSP_RequestBoost(); #if 0