diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2022-09-10 17:07:52 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2022-09-10 17:07:52 +0200 |
commit | 59b94427c591e7ec4603b2d9dd6753b1b0927175 (patch) | |
tree | eee654fdaecafce1663b8fde667453f81766fc2c /adc/SConscript | |
parent | 2ea5b06c6b5f7ef7c29547dc44f279f4709d2eed (diff) |
stm32g4: Add OPAMP.
Diffstat (limited to 'adc/SConscript')
-rw-r--r-- | adc/SConscript | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/adc/SConscript b/adc/SConscript index e008d25..8bcc25d 100644 --- a/adc/SConscript +++ b/adc/SConscript @@ -25,6 +25,15 @@ if 'stm32_adc_common' in periph: 'args': [data['offset']], }) +if 'stm32_opamp' in periph: + headers.append('stm32_opamp.h') + for name, data in periph['stm32_opamp'].items(): + instances.append({ + 'type': 'STM32_OPAMP_t', + 'name': name, + 'args': [data['offset']], + }) + env.Jinja2('adc.h', '../templates/periph_instances.h.j2', headers = headers, instances = instances, aliases = aliases, type_aliases = type_aliases) Return('sources') |