Skip to content

Commit

Permalink
Drive DRQ and IRQ harder to get shared lines or older boards to behav…
Browse files Browse the repository at this point in the history
…e better
  • Loading branch information
polpo committed Jan 15, 2024
1 parent 9128a40 commit 8fed642
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions sw/isa_dma.pio
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ static inline void dma_write_program_init(PIO pio, uint sm, uint offset) {
// Config DMA pins
sm_config_set_set_pins(&c, DRQ_PIN, 1);
pio_gpio_init(pio, DRQ_PIN);
gpio_set_drive_strength(DRQ_PIN, GPIO_DRIVE_STRENGTH_12MA);
pio_sm_set_consecutive_pindirs(pio, sm, DRQ_PIN, 1, true);
sm_config_set_jmp_pin(&c, TC_PIN);
pio_sm_set_consecutive_pindirs(pio, sm, TC_PIN, 1, false);
Expand Down
1 change: 1 addition & 0 deletions sw/picogus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ int main()

gpio_init(IRQ_PIN);
gpio_set_dir(IRQ_PIN, GPIO_OUT);
gpio_set_drive_strength(IRQ_PIN, GPIO_DRIVE_STRENGTH_12MA);

#ifdef SOUND_MPU
puts("Initing MIDI UART...");
Expand Down
2 changes: 1 addition & 1 deletion sw/rp2040-psram
Submodule rp2040-psram updated 1 files
+3 −3 psram_spi.c

0 comments on commit 8fed642

Please sign in to comment.