summaryrefslogtreecommitdiff
path: root/build_rules
diff options
context:
space:
mode:
Diffstat (limited to 'build_rules')
-rw-r--r--build_rules8
1 files changed, 8 insertions, 0 deletions
diff --git a/build_rules b/build_rules
index 6137608..81547eb 100644
--- a/build_rules
+++ b/build_rules
@@ -72,6 +72,14 @@ def select_stm32(env, variant):
'c': 'stm32_f373_c.ld',
}[flash]
+ elif family in ('f401'):
+ select_arm(env, 'cortex-m4f')
+ env.Append(CPPDEFINES = ['STM32F4'])
+
+ env['LINK_SCRIPT'] = {
+ 'e': 'stm32_f401_e.ld',
+ }[flash]
+
elif family in ('f405', 'f407'):
select_arm(env, 'cortex-m4f')
env.Append(CPPDEFINES = ['STM32F4'])