pico_generate_pio_header must be moved later

This commit is contained in:
Jeff Epler 2025-03-17 12:23:51 -05:00
parent 6c18cee5ec
commit 171199e73b

View file

@ -123,7 +123,6 @@ else()
add_compile_definitions(GPIO_VID_BASE=${VIDEO_PIN})
set(VIDEO_SRC src/video_vga.c)
pico_generate_pio_header(firmware ${CMAKE_CURRENT_LIST_DIR}/src/pio_video.pio)
endif()
@ -179,6 +178,10 @@ if (TARGET tinyusb_device)
${CMAKE_CURRENT_LIST_DIR}
)
if (NOT USE_HSTX)
pico_generate_pio_header(firmware ${CMAKE_CURRENT_LIST_DIR}/src/pio_video.pio)
endif()
pico_enable_stdio_uart(firmware 1)
# Needed for UF2: