drivers: adc: adc_sam0: Fix result ready interrupt
Atmel sam0 adc peripheral have multiple interrupt vectors for same5x devices. This configure interrupt vector by name to ensure that proper interrupt handle will be executed. Fixes #37779 Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
parent
f667b09ade
commit
bca28015e3
5 changed files with 8 additions and 3 deletions
|
@ -609,11 +609,11 @@ do { \
|
|||
&adc_sam0_api); \
|
||||
static void adc_sam0_config_##n(const struct device *dev) \
|
||||
{ \
|
||||
IRQ_CONNECT(DT_INST_IRQN(n), \
|
||||
DT_INST_IRQ(n, priority), \
|
||||
IRQ_CONNECT(DT_INST_IRQ_BY_NAME(n, resrdy, irq), \
|
||||
DT_INST_IRQ_BY_NAME(n, resrdy, priority), \
|
||||
adc_sam0_isr, \
|
||||
DEVICE_DT_INST_GET(n), 0); \
|
||||
irq_enable(DT_INST_IRQN(n)); \
|
||||
irq_enable(DT_INST_IRQ_BY_NAME(n, resrdy, irq)); \
|
||||
ADC_SAM0_CONFIGURE(n); \
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue