summaryrefslogtreecommitdiff
path: root/display/SConscript
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2022-04-16 20:47:24 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2022-04-16 21:02:38 +0200
commit2edb8ae305449c9fbf3d934198164fec1320d324 (patch)
tree51d4ff83aee3863c16e4bf6fa1cdaf34aba73472 /display/SConscript
parent4ba824dab86433bb5295878f2380a9bd9536d67e (diff)
display: stm32: Add LTDC support.
Diffstat (limited to 'display/SConscript')
-rw-r--r--display/SConscript19
1 files changed, 19 insertions, 0 deletions
diff --git a/display/SConscript b/display/SConscript
new file mode 100644
index 0000000..6d60228
--- /dev/null
+++ b/display/SConscript
@@ -0,0 +1,19 @@
+Import('env')
+
+headers = []
+instances = []
+
+periph = env['PLATFORM_SPEC'].get('periph', {})
+
+if 'stm32_ltdc' in periph:
+ headers.append('stm32_ltdc.h')
+ for name, data in periph['stm32_ltdc'].items():
+ instances.append({
+ 'type': 'STM32_LTDC_t',
+ 'name': name,
+ 'args': [data['offset']],
+ })
+
+env.Jinja2('display.h', '../templates/periph_instances.h.j2', headers = headers, instances = instances)
+
+Return()