Skip to content

Commit 80847e9

Browse files
committed
simplify default setting
1 parent e7f1430 commit 80847e9

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

targets/TARGET_STM/mbed_overrides.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,11 @@ extern void SetSysClock(void);
3535
#if MBED_CONF_TARGET_LSE_AVAILABLE
3636

3737
// set defaults for LSE drive load level, with exception for F4_g2 MCU
38-
#ifdef RCC_LSE_HIGHDRIVE_MODE
39-
# if MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL
40-
# define LSE_DRIVE_LOAD_LEVEL MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL
41-
# else
42-
# define LSE_DRIVE_LOAD_LEVEL RCC_LSE_HIGHDRIVE_MODE
43-
# endif
38+
#if MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL
39+
# define LSE_DRIVE_LOAD_LEVEL MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL
4440
#else
45-
# if MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL
46-
# define LSE_DRIVE_LOAD_LEVEL MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL
41+
# ifdef RCC_LSE_HIGHDRIVE_MODE
42+
# define LSE_DRIVE_LOAD_LEVEL RCC_LSE_HIGHDRIVE_MODE
4743
# else
4844
# define LSE_DRIVE_LOAD_LEVEL RCC_LSEDRIVE_MEDIUMHIGH
4945
# endif

0 commit comments

Comments
 (0)