From 2e872c0c712d5ea0cb9eccb84291fba9c39265a8 Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期二, 30 五月 2023 12:47:30 +0800 Subject: [PATCH] 1 --- Src/main.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Src/main.c b/Src/main.c index 833bb29..8073697 100644 --- a/Src/main.c +++ b/Src/main.c @@ -31,7 +31,7 @@ #define NSH1 0x0001 #define GP 0x0002 -#define DEBUG_MODE +//#define DEBUG_MODE /* USER CODE END Includes */ /* Private typedef -----------------------------------------------------------*/ @@ -315,7 +315,7 @@ hardware_pici= STMFLASH_ReadHalfWord(FLASH_HARDWARE_VERSION_MAP+2); hardware_type= STMFLASH_ReadHalfWord(FLASH_HARDWARE_VERSION_MAP+4); //deca_sleep(1000); - g_com_map[VERSION] = (2<<8)|11; + g_com_map[VERSION] = (2<<8)|15; // g_com_map[DEV_ID]=0x7; #ifdef DEBUG_MODE @@ -448,6 +448,7 @@ MX_ADC_Init(); //MX_TIM2_Init(); /* USER CODE BEGIN 2 */ + printf("启动时间:%d\r\n",HAL_GetTick()); LED_LG_ON; Program_Init(); Accelerometer_Init(); @@ -545,7 +546,7 @@ /** Configure LSE Drive Capability */ HAL_PWR_EnableBkUpAccess(); - __HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_LOW); + __HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_HIGH); /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ -- Gitblit v1.9.3