From 2177dac722f1fb8f5bcc409900f3e5aa5065c1bf Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期五, 10 六月 2022 08:39:04 +0800 Subject: [PATCH] 开始写部分程序 --- Inc/main.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/Inc/main.h b/Inc/main.h index 65f9f37..119ab4c 100644 --- a/Inc/main.h +++ b/Inc/main.h @@ -52,6 +52,13 @@ typedef uint8_t u8; extern uint16_t slottime,max_slotpos,current_slotnum; void SetNextPollTime(u16 time); +typedef enum +{ + DMODE_SLEEP, + DMODE_WAITCONFIG, + DMODE_SEARCHSYNC, + DMODE_RANGING, +}E_DMode; /* USER CODE END ET */ /* Exported constants --------------------------------------------------------*/ -- Gitblit v1.9.3