diff options
author | Dave Hylands <dhylands@gmail.com> | 2015-08-03 15:07:20 -0700 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-08-07 08:52:42 +0100 |
commit | 8f59bacb92cb705d79f08f29f4d64c0a774ab78f (patch) | |
tree | d58104222746d8f1a61ebb7297a9501cbf0dcdfd /stmhal/system_stm32.c | |
parent | be66a9ecf60eac18e08eda7bddf4b3481459c9f2 (diff) | |
download | micropython-8f59bacb92cb705d79f08f29f4d64c0a774ab78f.tar.gz micropython-8f59bacb92cb705d79f08f29f4d64c0a774ab78f.zip |
stamhal: Add definitions for MCU_SERIES_F4 and MCU_SERIES_F7
Diffstat (limited to 'stmhal/system_stm32.c')
-rw-r--r-- | stmhal/system_stm32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/system_stm32.c b/stmhal/system_stm32.c index 7758aae305..3e7e1bc689 100644 --- a/stmhal/system_stm32.c +++ b/stmhal/system_stm32.c @@ -283,7 +283,7 @@ void SystemClock_Config(void) __fatal_error("HAL_RCC_OscConfig"); } -#if defined(STM32F7) +#if defined(MCU_SERIES_F7) /* Activate the OverDrive to reach the 200 MHz Frequency */ if (HAL_PWREx_EnableOverDrive() != HAL_OK) { @@ -308,7 +308,7 @@ void SystemClock_Config(void) __fatal_error("HAL_RCC_ClockConfig"); } -#if defined(STM32F7) +#if defined(MCU_SERIES_F7) // The DFU bootloader changes the clocksource register from its default power // on reset value, so we set it back here, so the clocksources are the same // whether we were started from DFU or from a power on reset. |