Work with pico-sdk 2

This is used in the philhower Arduino core version 4+.

Fixes #8
pull/83/head
Scott Shawcroft 2024-10-08 13:02:32 -07:00
rodzic d3945b6339
commit 47b99f0772
Nie znaleziono w bazie danych klucza dla tego podpisu
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -1,5 +1,5 @@
name=PicoDVI - Adafruit Fork
version=1.1.0
version=1.2.0
author=Luke Wren (Wren6991)
maintainer=Adafruit <info@adafruit.com>
sentence=Arduino library for RP2040 DVI output, based on PicoDVI

Wyświetl plik

@ -191,7 +191,11 @@ static void __dvi_func(dvi_dma_irq_handler)(struct dvi_inst *inst) {
// Make sure all three channels have definitely loaded their last block
// (should be within a few cycles of one another)
for (int i = 0; i < N_TMDS_LANES; ++i) {
#if PICO_SDK_VERSION_MAJOR == 2
while (dma_debug_hw->ch[inst->dma_cfg[i].chan_data].dbg_tcr != inst->timing->h_active_pixels / DVI_SYMBOLS_PER_WORD)
#else
while (dma_debug_hw->ch[inst->dma_cfg[i].chan_data].tcr != inst->timing->h_active_pixels / DVI_SYMBOLS_PER_WORD)
#endif
tight_loop_contents();
}