From 56539b7f81658d7b1017acbf092b94363a2c20a5 Mon Sep 17 00:00:00 2001 From: WXK <287788329@qq.com> Date: 星期三, 27 三月 2024 11:56:43 +0800 Subject: [PATCH] V1.14 加入宏定义区别杭锦urt800个,跟以后的固件,注意改宏定义后还要改魔术棒。 --- Src/system_stm32l0xx.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Src/system_stm32l0xx.c b/Src/system_stm32l0xx.c index 2a952b4..bcc7bfb 100644 --- a/Src/system_stm32l0xx.c +++ b/Src/system_stm32l0xx.c @@ -69,7 +69,7 @@ */ /** - * @} + * @ } */ /** @addtogroup STM32L0xx_System_Private_Defines @@ -80,8 +80,12 @@ /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ /* #define VECT_TAB_SRAM */ -#define VECT_TAB_OFFSET 0x7800U /*!< Vector Table base offset field. - This value must be a multiple of 0x100. */ +#ifndef _NO_HANGJIN +#define VECT_TAB_OFFSET 0x7800U /*!< Vector Table base offset field.This value must be a multiple of 0x100. */ +#else +#define VECT_TAB_OFFSET 0x5000U +#endif + /******************************************************************************/ /** * @} -- Gitblit v1.9.3