From 3e165b6f13bfaf66385d857819cacff6e4d6f37c Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期六, 20 六月 2020 22:31:03 +0800 Subject: [PATCH] 时间同步完成,多基站有问题,时间不对 --- Inc/main.h | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Inc/main.h b/Inc/main.h index 03ffb26..07df619 100644 --- a/Inc/main.h +++ b/Inc/main.h @@ -50,13 +50,14 @@ typedef uint32_t u32; typedef uint16_t u16; typedef uint8_t u8; -extern uint16_t slottime,max_slotpos; +extern uint16_t slottime,max_slotpos,current_slotnum; +void SetNextPollTime(u16 time); /* USER CODE END ET */ /* Exported constants --------------------------------------------------------*/ /* USER CODE BEGIN EC */ #define LPTIMER_LSB 30.518 //1 puls=30.518us -#define LPTIMER_1S_COUNT 33095 +#define LPTIMER_1S_COUNT 32767 #define USART_KEEPWAKE_TIME 60 /* USER CODE END EC */ -- Gitblit v1.9.3