summaryrefslogtreecommitdiff
path: root/build_rules
diff options
context:
space:
mode:
Diffstat (limited to 'build_rules')
-rw-r--r--build_rules9
1 files changed, 6 insertions, 3 deletions
diff --git a/build_rules b/build_rules
index d2f15c8..095c8fe 100644
--- a/build_rules
+++ b/build_rules
@@ -44,13 +44,16 @@ def select_stm32(env, variant):
pin_count = variant[9]
flash = variant[10]
- if family == 'f051':
+ if family.startswith('f0'):
select_arm(env, 'cortex-m0')
env.Append(CPPDEFINES = ['STM32F0'])
+
+ sram = family[2]
env['LINK_SCRIPT'] = {
- '8': 'stm32_f0_8.ld',
- }[flash]
+ ('4', '6'): 'stm32_f04_6.ld',
+ ('5', '8'): 'stm32_f05_8.ld',
+ }[sram, flash]
elif family == 'f103':
select_arm(env, 'cortex-m3')