simplify default setting

pull/13797/head
JojoS62 2020-10-22 11:27:42 +02:00
parent e7f1430d37
commit 80847e958d
1 changed files with 4 additions and 8 deletions

View File

@ -35,15 +35,11 @@ extern void SetSysClock(void);
#if MBED_CONF_TARGET_LSE_AVAILABLE
// set defaults for LSE drive load level, with exception for F4_g2 MCU
#ifdef RCC_LSE_HIGHDRIVE_MODE
# if MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL
#if MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL
# define LSE_DRIVE_LOAD_LEVEL MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL
# else
# define LSE_DRIVE_LOAD_LEVEL RCC_LSE_HIGHDRIVE_MODE
# endif
#else
# if MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL
# define LSE_DRIVE_LOAD_LEVEL MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL
# ifdef RCC_LSE_HIGHDRIVE_MODE
# define LSE_DRIVE_LOAD_LEVEL RCC_LSE_HIGHDRIVE_MODE
# else
# define LSE_DRIVE_LOAD_LEVEL RCC_LSEDRIVE_MEDIUMHIGH
# endif