Sample all Sanco's 370 lines.

main
giomba 2022-12-08 18:51:28 +01:00
parent a38a0c5b70
commit 5cea36a59e
1 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ void crtc_machines_init(void)
crtc_hsync.offset = pio_add_program(crtc_hsync.pio, &crtc_hsync_program);
crtc_hsync.sm = pio_claim_unused_sm(crtc_hsync.pio, true);
crtc_hsync_program_init(crtc_hsync.pio, crtc_hsync.sm, crtc_hsync.offset);
pio_sm_put_blocking(crtc_hsync.pio, crtc_hsync.sm, 128 - 1);
pio_sm_put_blocking(crtc_hsync.pio, crtc_hsync.sm, 370 - 1);
printf("OK\n");
printf("Setting up new frame interrupt... ");
@ -140,7 +140,7 @@ void crtc_machines_init(void)
irq_set_exclusive_handler(DMA_IRQ_1, dma_handler);
irq_set_enabled(DMA_IRQ_1, true);
dma_channel_configure(dma_channel, &dma_config, &frame[2560], &pio1_hw->rxf[0], 640 * 128 / 32,
dma_channel_configure(dma_channel, &dma_config, &frame[2560], &pio1_hw->rxf[0], 640 * 370 / 32,
true);
dma_ready = true;