feat: basic H7 support (#5228)

Co-authored-by: Malte Langermann <malte@langermann.net>
Co-authored-by: 3djc <3djc@gh.com>
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
Co-authored-by: Richard Li <richard.li@ces.hk>
This commit is contained in:
Raphael Coeffic
2024-07-05 19:28:44 +10:00
committed by GitHub
co-authored by Malte Langermann 3djc raphaelcoeffic Richard Li
parent 2110f1b938
commit 6f8a5313d5
517 changed files with 461229 additions and 395603 deletions
+4 -2
View File
@@ -123,8 +123,10 @@ class ADCInputParser:
def _parse_dirs(self):
ret = []
dirs = self.hw_defs['ADC_DIRECTION'].strip('{} ').split(',')
#eprint(dirs)
dirs = self.hw_defs.get('ADC_DIRECTION') or ''
if dirs:
dirs = dirs.strip('{} ').split(',')
eprint(dirs)
for i in dirs:
ret.append(int(i))
@@ -79,6 +79,15 @@ extern "C" void ADC_IRQHandler()
{% endfor %}
}
#if defined(STM32H7)
extern "C" void ADC3_IRQHandler()
{
{% for adc in adc_inputs.adcs | selectattr('name', '!=', 'SPI') %}
stm32_hal_adc_isr(&_ADC_adc[{{ loop.index0 }}]);
{% endfor %}
}
#endif
{% for adc_gpio, adc_inputs in adc_gpios.items() | sort %}
static const uint32_t _ADC_{{ adc_gpio }}_pins[] = {
{% for input in adc_inputs %}