summaryrefslogtreecommitdiff
path: root/build_rules
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2019-03-19 12:56:52 +0100
committerVegard Storheil Eriksen <v.eriksen@diinef.com>2019-03-19 13:02:30 +0100
commit6572616a6b4bded686a22377d839cef7506de24d (patch)
treef2cc96b9eddafdc6dd29c9ae4f7feb54dda8fa9d /build_rules
parentf1475a7e6cb3077781199981bc3ee74e4ba29b86 (diff)
Added STM32F042 support.
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')