Updated my_terminal configuration and main application logic

pull/89/head
DonaldMoran 2025-07-06 14:56:43 -04:00
rodzic f90e9c7dd8
commit c0f92a907a
2 zmienionych plików z 1406 dodań i 138 usunięć

Wyświetl plik

@ -2,10 +2,12 @@ add_executable(my_terminal
main.c
)
pico_enable_stdio_usb(my_terminal 1)
target_compile_definitions(my_terminal PRIVATE
DVI_DEFAULT_SERIAL_CONFIG=${DVI_DEFAULT_SERIAL_CONFIG}
DVI_VERTICAL_REPEAT=1
DVI_N_TMDS_BUFFERS=3
DVI_N_TMDS_BUFFERS=4
DVI_MONOCHROME_TMDS=1
)
@ -28,61 +30,3 @@ target_include_directories(my_terminal PRIVATE
)
pico_add_extra_outputs(my_terminal)
# add_executable(my_terminal
# main.c
# )
# target_compile_definitions(my_terminal PRIVATE
# DVI_DEFAULT_SERIAL_CONFIG=${DVI_DEFAULT_SERIAL_CONFIG}
# DVI_VERTICAL_REPEAT=1
# DVI_N_TMDS_BUFFERS=3
# DVI_MONOCHROME_TMDS=1
# )
# target_link_libraries(my_terminal
# pico_stdlib
# hardware_pio
# hardware_interp
# libdvi
# pico_multicore
# pico_util
# hardware_dma
# )
# target_include_directories(my_terminal PRIVATE
# ${CMAKE_CURRENT_LIST_DIR}/../../include
# ${CMAKE_CURRENT_LIST_DIR}/../../libdvi
# )
# pico_add_extra_outputs(my_terminal)
# ## Replace TMDS with 10 bit UART (same baud rate):
# ## add_definitions(-DDVI_SERIAL_DEBUG=1)
# ## add_definitions(-DRUN_FROM_CRYSTAL)
# #
# #add_executable(terminal
# # main.c
# #)
# #
# ## TODO this should work ok with DVI_N_TMDS_BUFFERS=2 (perhaps need to
# ## rearrange some pushes/pops) and also as we are monochrome the buffers are 3x
# ## as big as they need to be
# #target_compile_definitions(terminal PRIVATE
# # DVI_DEFAULT_SERIAL_CONFIG=${DVI_DEFAULT_SERIAL_CONFIG}
# # DVI_VERTICAL_REPEAT=1
# # DVI_N_TMDS_BUFFERS=3
# # DVI_MONOCHROME_TMDS=1
# # )
# #
# #target_link_libraries(terminal
# # pico_stdlib
# # pico_multicore
# # pico_util
# # libdvi
# #)
# #
# ## create map/bin/hex file etc.
# #pico_add_extra_outputs(terminal)