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);
39
39
// set defaults for LSE drive load level
40
40
#if defined(LSE_CONFIG_AVAILABLE )
41
41
42
- # ifdef MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL
42
+ # if defined( MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL )
43
43
# define LSE_DRIVE_LOAD_LEVEL MBED_CONF_TARGET_LSE_DRIVE_LOAD_LEVEL
44
44
# else
45
- # ifdef RCC_LSE_HIGHDRIVE_MODE
45
+ # if defined( RCC_LSE_HIGHDRIVE_MODE )
46
46
# define LSE_DRIVE_LOAD_LEVEL RCC_LSE_HIGHDRIVE_MODE
47
47
# else
48
48
# define LSE_DRIVE_LOAD_LEVEL RCC_LSEDRIVE_MEDIUMHIGH
@@ -82,7 +82,7 @@ static void LSEDriveConfig(void) {
82
82
83
83
// set LSE drive level. Exception only for F4_g2 series
84
84
HAL_PWR_EnableBkUpAccess ();
85
- #if defined(LSE_CONFIG_AVAILABLE )
85
+ #if defined(__HAL_RCC_LSEDRIVE_CONFIG )
86
86
__HAL_RCC_LSEDRIVE_CONFIG (LSE_DRIVE_LOAD_LEVEL );
87
87
#else
88
88
HAL_RCCEx_SelectLSEMode (LSE_DRIVE_LOAD_LEVEL );
You can’t perform that action at this time.
0 commit comments