Update to use new DMA PIO

This commit is contained in:
Ian Scott committed 2024-03-25 23:47:37 -06:00
1 parent a6ae9e6685
commit 1fc702dc30
3 files changed
+9 -8

No files matched your search

+3 -2
View File
@@ -19,6 +19,7 @@ extern "C" void OPL_Pico_Mix_callback(audio_buffer_t *);
irq_handler_t SBDSP_DMA_isr_pt;
dma_inst_t dma_config;
#define DMA_PIO_SM 2
#define DSP_VERSION_MAJOR 2
#define DSP_VERSION_MINOR 1
@@ -264,7 +265,7 @@ void sbdsp_init() {
puts("Initing ISA DMA PIO...");
SBDSP_DMA_isr_pt = sbdsp_dma_isr;
dma_config = DMA_init(pio0, SBDSP_DMA_isr_pt);
dma_config = DMA_init(pio0, DMA_PIO_SM, SBDSP_DMA_isr_pt);
opl_buffer = (audio_buffer_t *) malloc(sizeof(audio_buffer_t));
opl_buffer->buffer = (mem_buffer_t *) malloc(sizeof(mem_buffer_t));
@@ -534,4 +535,4 @@ void sbdsp_write(uint8_t address, uint8_t value) {
//printf("SB WRITE: %x => %x \n\r",value,address);
break;
}
}
}