summaryrefslogtreecommitdiff
path: root/usb/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'usb/SConscript')
-rw-r--r--usb/SConscript9
1 files changed, 9 insertions, 0 deletions
diff --git a/usb/SConscript b/usb/SConscript
index 81d84d4..d000a82 100644
--- a/usb/SConscript
+++ b/usb/SConscript
@@ -14,6 +14,15 @@ if 'dwc_otg' in periph:
'args': [data['offset']],
})
+if 'stm32_usb' in periph:
+ headers.append('stm32_usb.h')
+ for name, data in periph['stm32_usb'].items():
+ instances.append({
+ 'type': 'STM32_USB_t<STM32_USB_reg_%s_t>' % data['type'],
+ 'name': name,
+ 'args': [data['offset'], data['buf_offset']],
+ })
+
env.Jinja2('usb.h', '../templates/periph_instances.h.j2', headers = headers, instances = instances)
Return()