pico-sdk
pico-sdk copied to clipboard
Add adc_irq_set_enabled_with_callback or similar
The ADC module could use a function to set up an interrupt handler for the ADC FIFO interrupt, in a similar fashion to what the GPIO module does. Also: there is a function adc_irq_set_enabled
, but it only sets the interrupt enable flag in the ADC module. Should it call irq_set_enabled
as well?
[...] Also: there is a function
adc_irq_set_enabled
, but it only sets the interrupt enable flag in the ADC module. Should it callirq_set_enabled
as well?
I would say no, it shouldn't. ADC and IRQ are two separate things. And enabling the IRQ for a given core should be up to you.