summaryrefslogtreecommitdiff
path: root/build_rules
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2015-03-29 21:37:03 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2016-08-18 23:36:07 +0200
commit7b2d322df819e8a339cdb534e69d8e205765d3b2 (patch)
treec18a85a712285d6f3939113824eb2f2636833992 /build_rules
parent29d8f1b4e89f31e2f3b448c4d40c6c2518629686 (diff)
Added STM32L0 support.
Diffstat (limited to 'build_rules')
-rw-r--r--build_rules8
1 files changed, 8 insertions, 0 deletions
diff --git a/build_rules b/build_rules
index 42878b7..6137608 100644
--- a/build_rules
+++ b/build_rules
@@ -81,6 +81,14 @@ def select_stm32(env, variant):
'g': 'stm32_f4_g.ld',
}[flash]
+ elif family in ('l051', 'l052', 'l053'):
+ select_arm(env, 'cortex-m0plus')
+ env.Append(CPPDEFINES = ['STM32L0'])
+
+ env['LINK_SCRIPT'] = {
+ '8': 'stm32_l0_8.ld',
+ }[flash]
+
else:
print 'Unknown stm32 family: %s' % family
Exit(1)