From e9caeaabfbe536180cfd5a40e3a8521b7bd11cf5 Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期二, 28 二月 2023 10:44:15 +0800 Subject: [PATCH] 加入uwb升级,上位机发送指令能重启进入boot。 --- Inc/main.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/Inc/main.h b/Inc/main.h index 65f9f37..140c044 100644 --- a/Inc/main.h +++ b/Inc/main.h @@ -52,13 +52,15 @@ typedef uint8_t u8; extern uint16_t slottime,max_slotpos,current_slotnum; void SetNextPollTime(u16 time); +void MX_ADC_Init(void); +void MX_ADC_DeInit(void); /* USER CODE END ET */ /* Exported constants --------------------------------------------------------*/ /* USER CODE BEGIN EC */ #define LPTIMER_LSB 30.518 //1 puls=30.518us #define LPTIMER_1S_COUNT 32767 -#define USART_KEEPWAKE_TIME 10 +#define USART_KEEPWAKE_TIME 2 #define KEY_KEEPRESET_TIME 5 /* USER CODE END EC */ -- Gitblit v1.9.3