Skip to content

Commit

Permalink
Merge pull request #9 from tannewt/fix_sdk2
Browse files Browse the repository at this point in the history
Work with pico-sdk 2
  • Loading branch information
BlitzCityDIY authored Oct 8, 2024
2 parents d3945b6 + 47b99f0 commit 6b93a88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/libdvi/dvi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 6b93a88

Please sign in to comment.