I think pio_set_irq0_source_mask_enabled() takes a bit mask and values like pis_sm0_rx_fifo_not_empty are bit locations and not the shifted bit values themselves. Should probably make the call like this?
Code:
pio_set_irq0_source_mask_enabled(pio0, (1 << pis_sm0_rx_fifo_not_empty) | (1<<pis_sm1_rx_fifo_not_empty) | (1 << pis_sm2_rx_fifo_not_empty),true);
Statistics: Posted by adam_green — Tue Dec 05, 2023 3:48 am