summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/modpyb.c
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2015-08-03 15:07:20 -0700
committerDamien George <damien.p.george@gmail.com>2015-08-07 08:52:42 +0100
commit8f59bacb92cb705d79f08f29f4d64c0a774ab78f (patch)
treed58104222746d8f1a61ebb7297a9501cbf0dcdfd /stmhal/modpyb.c
parentbe66a9ecf60eac18e08eda7bddf4b3481459c9f2 (diff)
downloadmicropython-8f59bacb92cb705d79f08f29f4d64c0a774ab78f.tar.gz
micropython-8f59bacb92cb705d79f08f29f4d64c0a774ab78f.zip
stamhal: Add definitions for MCU_SERIES_F4 and MCU_SERIES_F7
Diffstat (limited to 'stmhal/modpyb.c')
-rw-r--r--stmhal/modpyb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/modpyb.c b/stmhal/modpyb.c
index 14dc4c4c40..226284b678 100644
--- a/stmhal/modpyb.c
+++ b/stmhal/modpyb.c
@@ -74,7 +74,7 @@ STATIC NORETURN mp_obj_t pyb_bootloader(void) {
HAL_RCC_DeInit();
HAL_DeInit();
-#if defined(STM32F7)
+#if defined(MCU_SERIES_F7)
// arm-none-eabi-gcc 4.9.0 does not correctly inline this
// MSP function, so we write it out explicitly here.
//__set_MSP(*((uint32_t*) 0x1FF00000));
@@ -462,7 +462,7 @@ MP_DEFINE_CONST_FUN_OBJ_0(pyb_stop_obj, pyb_stop);
/// \function standby()
STATIC mp_obj_t pyb_standby(void) {
-#if defined(STM32F7)
+#if defined(MCU_SERIES_F7)
printf("pyb.standby not supported yet\n");
#else
// We need to clear the PWR wake-up-flag before entering standby, since