diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2022-09-10 20:23:18 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2022-09-10 20:23:18 +0200 |
commit | 37a375c6b7dd83d2ac23069481c566bd9f9a7fd3 (patch) | |
tree | 07e050b8aa63627e920f13f4cfe3000b46250917 /uart/SConscript | |
parent | d60be6f83a4519afc0875f28f0959c51edb4fbeb (diff) |
litex: Add UART.
Diffstat (limited to 'uart/SConscript')
-rw-r--r-- | uart/SConscript | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/uart/SConscript b/uart/SConscript index dcf6d3e..c37f4aa 100644 --- a/uart/SConscript +++ b/uart/SConscript @@ -16,6 +16,15 @@ if 'stm32_uart' in periph: 'args': [data['offset']], }) +if 'litex_uart' in periph: + headers.append('litex_uart.h') + for name, data in periph['litex_uart'].items(): + instances.append({ + 'type': 'LiteX_UART_t', + 'name': name, + 'args': [data['offset']], + }) + env.Jinja2('uart.h', '../templates/periph_instances.h.j2', headers = headers, instances = instances, aliases = aliases) Return('sources') |