diff options
Diffstat (limited to 'build_rules')
-rw-r--r-- | build_rules | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build_rules b/build_rules index fc7fd75..ddc9647 100644 --- a/build_rules +++ b/build_rules @@ -109,12 +109,21 @@ def select_stm32(env, variant): print 'Unknown stm32 family: %s' % family Exit(1) +def select_nrf(env, variant): + if variant == 'nrf52840': + select_arm(env, 'cortex-m4f') + env.Append(CPPDEFINES = ['NRF52840']) + env['LINK_SCRIPT'] = 'nrf52840.ld' + def SelectMCU(env, mcu, variant_dir = None): mcu = mcu.lower() if mcu.startswith('stm32'): select_stm32(env, mcu) + elif mcu.startswith('nrf'): + select_nrf(env, mcu) + else: print 'Unknown MCU: %s' % mcu Exit(1) |