Your problem is here:the first parameter should be 0 or 1 for DMA_IRQ0 vs DMA_IRQ1, but the symbol DMA_IRQ_0 has the value 11 (and the function doesn't do any range checking, so you will end up poking some random register!).
You could use (LCD_DMA_IRQ - DMA_IRQ_0) to avoid hard-wiring the IRQ.
Code:
dma_irqn_set_channel_enabled(LCD_DMA_IRQ, lcd_dma_chan_rx, true); // PIO
You could use (LCD_DMA_IRQ - DMA_IRQ_0) to avoid hard-wiring the IRQ.
Statistics: Posted by arg001 — Fri Dec 06, 2024 12:33 pm