Hi,
How interrupt is working in nrf saac driver? I can see that it is already code is present in the adc_nrf_saac.c
| static int init_saadc(const struct device *dev) | |
| { | |
| nrf_saadc_event_clear(NRF_SAADC, NRF_SAADC_EVENT_END); | |
| nrf_saadc_event_clear(NRF_SAADC, NRF_SAADC_EVENT_CALIBRATEDONE); | |
| nrf_saadc_int_enable(NRF_SAADC, | |
| NRF_SAADC_INT_END | NRF_SAADC_INT_CALIBRATEDONE); | |
| NRFX_IRQ_ENABLE(DT_INST_IRQN(0)); | |
| IRQ_CONNECT(DT_INST_IRQN(0), DT_INST_IRQ(0, priority), | |
| saadc_irq_handler, DEVICE_DT_INST_GET(0), 0); | |
| adc_context_unlock_unconditionally(&m_data.ctx); | |
| return 0; | |
| } |
How the flow of interrupt is working ?
Do we required any coding from application to enable the interrupt ?
here only interrupt is enable for two events that is NRF_SAADC_INT_END and NRF_SAADC_INT_CALIBRATEDONE , Can we generate interrupt on more events ?