Skip to content

Commit

Permalink
PicoSystem: Use shared DMA handler to avoid MicroPython conflict.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Jul 5, 2024
1 parent c08ed01 commit 0ebba92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/hardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ namespace picosystem {
dma_channel_set_irq0_enabled(dma_channel, true);
irq_set_enabled(pio_get_dreq(screen_pio, screen_sm, true), true);

irq_set_exclusive_handler(DMA_IRQ_0, dma_complete);
irq_add_shared_handler(DMA_IRQ_0, dma_complete, PICO_SHARED_IRQ_HANDLER_HIGHEST_ORDER_PRIORITY);
irq_set_enabled(DMA_IRQ_0, true);

// initialise audio pwm pin
Expand Down

0 comments on commit 0ebba92

Please sign in to comment.