summaryrefslogtreecommitdiff
path: root/usb/SConscript
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2023-05-01 00:50:55 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2023-05-01 00:50:55 +0200
commitd381db5b1f6a7d7897056adb84ea24f18f2dd0b8 (patch)
tree411568025c0aa101bd3241416ce192ae9c2a9ab1 /usb/SConscript
parent3eb114c680a63274948700c653dfc263d182171a (diff)
usb: Update code for stm32_usb and add support for v3.
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()