diff options
Diffstat (limited to 'timer')
-rw-r--r-- | timer/SConscript | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/timer/SConscript b/timer/SConscript index 7f5afbc..1490575 100644 --- a/timer/SConscript +++ b/timer/SConscript @@ -10,8 +10,10 @@ periph = env['PLATFORM_SPEC'].get('periph', {}) if 'stm32_timer' in periph: headers.append('stm32_timer.h') for name, data in periph['stm32_timer'].items(): + # ~everyone so far has v1 timers, don't require it until we need it + real_type = data.get('type', 'v1') instances.append({ - 'type': 'STM32_TIMER_t<STM32_TIMER_reg_%s_t>' % data['type'], + 'type': 'STM32_TIMER_t<STM32_TIMER_reg_%s_t>' % real_type, 'name': name, 'args': [data['offset']], }) |