From 16cc0f1414c33772dd6daa6c19d2be9dcaca2e64 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 29 Mar 2015 22:05:36 +0200 Subject: Added STM32F0 support. --- build_rules | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'build_rules') 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']) -- cgit v1.2.3