Sample all Sanco's 370 lines.
This commit is contained in:
parent
a38a0c5b70
commit
5cea36a59e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user