summaryrefslogtreecommitdiff
path: root/build_rules
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2015-03-29 22:05:36 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2015-03-29 22:05:36 +0200
commit16cc0f1414c33772dd6daa6c19d2be9dcaca2e64 (patch)
tree17b5f263f00a415b873d40188459b83940878a28 /build_rules
parent49012588461f1a43e9e476f676d946d91c3df9e7 (diff)
Added STM32F0 support.
Diffstat (limited to 'build_rules')
-rw-r--r--build_rules10
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'])