mirror of https://github.com/ARMmbed/mbed-os.git
simplify default setting
parent
e7f1430d37
commit
80847e958d
|
@ -35,15 +35,11 @@ extern void SetSysClock(void);
|
||||||
#if MBED_CONF_TARGET_LSE_AVAILABLE
|
#if MBED_CONF_TARGET_LSE_AVAILABLE
|
||||||
|
|
||||||
// set defaults for LSE drive load level, with exception for F4_g2 MCU
|
// set defaults for LSE drive load level, with exception for F4_g2 MCU
|
||||||
|
#if MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL
|
||||||
|
# define LSE_DRIVE_LOAD_LEVEL MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL
|
||||||
|
#else
|
||||||
# ifdef RCC_LSE_HIGHDRIVE_MODE
|
# ifdef RCC_LSE_HIGHDRIVE_MODE
|
||||||
# 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
|
# 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
|
|
||||||
# else
|
# else
|
||||||
# define LSE_DRIVE_LOAD_LEVEL RCC_LSEDRIVE_MEDIUMHIGH
|
# define LSE_DRIVE_LOAD_LEVEL RCC_LSEDRIVE_MEDIUMHIGH
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in New Issue