Skip to content

Commit a4396dd

Browse files
committed
hal:gd32e103: get board type from kconfig.
get gd32e103 board type from kconfig item `CONFIG_BOARD_GD32E103V_EVAL` and `CONFIG_BOARD_GD32E103R_START` Signed-off-by: YuLong Yao <[email protected]>
1 parent 748565c commit a4396dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gd32e10x/cmsis/gd/gd32e10x/include/gd32e10x.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ OF SUCH DAMAGE.
5050

5151
/* define value of high speed crystal oscillator (HXTAL) in Hz */
5252
#if !defined HXTAL_VALUE
53-
#ifdef GD32E103V_EVAL
53+
#ifdef CONFIG_BOARD_GD32E103V_EVAL
5454
#define HXTAL_VALUE ((uint32_t)8000000) /*!< value of the external oscillator in Hz */
5555
#define HXTAL_VALUE_8M HXTAL_VALUE
56-
#elif defined(GD32E103R_START)
56+
#elif defined(CONFIG_BOARD_GD32E103R_START)
5757
#define HXTAL_VALUE ((uint32_t)25000000) /*!< value of the external oscillator in Hz */
5858
#define HXTAL_VALUE_25M HXTAL_VALUE
5959
#else

0 commit comments

Comments
 (0)