diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2015-03-29 22:05:36 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2015-03-29 22:05:36 +0200 |
commit | 16cc0f1414c33772dd6daa6c19d2be9dcaca2e64 (patch) | |
tree | 17b5f263f00a415b873d40188459b83940878a28 /build_rules | |
parent | 49012588461f1a43e9e476f676d946d91c3df9e7 (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 6137608..4f1823b 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']) |