hstx: Use DMA_IRQ_0 to avoid conflict with SD card reading
This commit is contained in:
parent
691046fe6a
commit
bcb13e295a
1 changed files with 4 additions and 4 deletions
|
|
@ -298,10 +298,10 @@ void video_init(uint32_t *framebuffer) {
|
|||
false
|
||||
);
|
||||
|
||||
dma_hw->ints1 = (1u << self->dma_pixel_channel);
|
||||
dma_hw->inte1 = (1u << self->dma_pixel_channel);
|
||||
irq_set_exclusive_handler(DMA_IRQ_1, dma_irq_handler);
|
||||
irq_set_enabled(DMA_IRQ_1, true);
|
||||
dma_hw->ints0 = (1u << self->dma_pixel_channel);
|
||||
dma_hw->inte0 = (1u << self->dma_pixel_channel);
|
||||
irq_set_exclusive_handler(DMA_IRQ_0, dma_irq_handler);
|
||||
irq_set_enabled(DMA_IRQ_0, true);
|
||||
|
||||
bus_ctrl_hw->priority = BUSCTRL_BUS_PRIORITY_DMA_W_BITS | BUSCTRL_BUS_PRIORITY_DMA_R_BITS;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue