diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2015-03-29 22:05:36 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <v.eriksen@diinef.com> | 2019-03-19 13:02:30 +0100 |
commit | f1475a7e6cb3077781199981bc3ee74e4ba29b86 (patch) | |
tree | 487401a124891b975926eb2cd30325fe481838ee /build_rules | |
parent | d81982edb1c4abf9a38da742f81bb648ce6882c5 (diff) |
Added STM32F0 support.
Diffstat (limited to 'build_rules')
-rw-r--r-- | build_rules | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/build_rules b/build_rules index 81547eb..d2f15c8 100644 --- a/build_rules +++ b/build_rules @@ -44,7 +44,15 @@ def select_stm32(env, variant): pin_count = variant[9] flash = variant[10] - if family == 'f103': + if family == 'f051': + select_arm(env, 'cortex-m0') + env.Append(CPPDEFINES = ['STM32F0']) + + env['LINK_SCRIPT'] = { + '8': 'stm32_f0_8.ld', + }[flash] + + elif family == 'f103': select_arm(env, 'cortex-m3') env.Append(CPPDEFINES = ['STM32F1']) |