From cb6f4698ce2a52378d26249028ee33094b3db49f Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期二, 12 十一月 2024 09:42:19 +0800 Subject: [PATCH] 未改动版本 --- keil/include/board/board.h | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/dualboots_Gai_youhua_anbang_tag/keil/secondboot/include/board/board.h b/keil/include/board/board.h similarity index 94% rename from dualboots_Gai_youhua_anbang_tag/keil/secondboot/include/board/board.h rename to keil/include/board/board.h index 640d879..0406328 100644 --- a/dualboots_Gai_youhua_anbang_tag/keil/secondboot/include/board/board.h +++ b/keil/include/board/board.h @@ -86,7 +86,7 @@ #define CALIB_CH5 1 #define CALIB_CH2 2 #define CALIB_CH_NUM 3 - +#define SLEEP_TIMER_NUM 500 #define CALIB_CH(x) (x == 9 ? 0 : (x == 5 ? 1 : 2)) enum BOARD_NVM_ITEM_ID_T @@ -193,6 +193,12 @@ */ void board_5V_input_init(GPIO_IRQ_HANDLER_T irq_handler); /** + * @brief Configure button GPIO. + * @param[in] irq_handler accelerate input interrupt process handler + * + */ +void board_acceleration_detection_init(GPIO_IRQ_HANDLER_T irq_handler); +/** * @brief Configure LED GPIO. * */ @@ -236,7 +242,16 @@ * */ void board_restore_from_power_down(void); - +/** + * @brief Change uart1 gps to debug. + * + */ +void uart1_change_from_gps_to_debug(void); +/** + * @brief Change uart1 debug to gps. + * + */ +void uart1_change_from_debug_to_gps(void); #if defined(__cplusplus) } #endif -- Gitblit v1.9.3