File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ extern void SetSysClock(void);
3939// set defaults for LSE drive load level
4040#if defined(LSE_CONFIG_AVAILABLE )
4141
42- # ifdef MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL
42+ # if defined( MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL )
4343# define LSE_DRIVE_LOAD_LEVEL MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL
4444# else
45- # ifdef RCC_LSE_HIGHDRIVE_MODE
45+ # if defined( RCC_LSE_HIGHDRIVE_MODE )
4646# define LSE_DRIVE_LOAD_LEVEL RCC_LSE_HIGHDRIVE_MODE
4747# else
4848# define LSE_DRIVE_LOAD_LEVEL RCC_LSEDRIVE_MEDIUMHIGH
@@ -82,7 +82,7 @@ static void LSEDriveConfig(void) {
8282
8383 // set LSE drive level. Exception only for F4_g2 series
8484 HAL_PWR_EnableBkUpAccess ();
85- #if defined(LSE_CONFIG_AVAILABLE )
85+ #if defined(__HAL_RCC_LSEDRIVE_CONFIG )
8686 __HAL_RCC_LSEDRIVE_CONFIG (LSE_DRIVE_LOAD_LEVEL );
8787 #else
8888 HAL_RCCEx_SelectLSEMode (LSE_DRIVE_LOAD_LEVEL );
You can’t perform that action at this time.
0 commit comments