File tree Expand file tree Collapse file tree 6 files changed +1298
-1
lines changed
Expand file tree Collapse file tree 6 files changed +1298
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ option(TFT "Enable TFT display" OFF)
1111option (ILI9341 "Enable TFT ILI9341 display" OFF )
1212option (HDMI "Enable HDMI display" OFF )
1313option (TV "Enable TV composite output" OFF )
14+ option (SOFTTV "Enable TV soft composite output" OFF )
15+
1416
1517set (CMAKE_C_STANDARD 11)
1618set (CMAKE_CXX_STANDARD 17)
@@ -34,6 +36,7 @@ add_subdirectory(drivers/vga-nextgen)
3436add_subdirectory (drivers/hdmi)
3537add_subdirectory (drivers/st7789)
3638add_subdirectory (drivers/tv)
39+ add_subdirectory (drivers/tv-software)
3740
3841add_subdirectory (drivers/graphics)
3942
@@ -77,6 +80,10 @@ ELSEIF(TV)
7780 target_compile_definitions (${PROJECT_NAME} PRIVATE TV)
7881 target_link_libraries (${PROJECT_NAME} PRIVATE tv)
7982 SET (BUILD_NAME "${BUILD_NAME} -TV" )
83+ ELSEIF (SOFTTV)
84+ target_compile_definitions (${PROJECT_NAME} PRIVATE SOFTTV)
85+ target_link_libraries (${PROJECT_NAME} PRIVATE tv-software)
86+ SET (BUILD_NAME "${BUILD_NAME} -TV-SOFT" )
8087ELSE ()
8188 target_compile_definitions (${PROJECT_NAME} PRIVATE VGA)
8289 target_link_libraries (${PROJECT_NAME} PRIVATE vga-nextgen)
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ extern "C" {
1919#ifdef TV
2020#include "tv.h"
2121#endif
22+ #ifdef SOFTTV
23+ #include "tv-software.h"
24+ #endif
25+
2226
2327#include "font6x8.h"
2428#include "font8x8.h"
Original file line number Diff line number Diff line change 1+ add_library (tv-software INTERFACE )
2+
3+ target_sources (tv-software INTERFACE ${CMAKE_CURRENT_LIST_DIR} /tv-software.c)
4+
5+ target_link_libraries (tv-software INTERFACE hardware_pio hardware_clocks hardware_dma)
6+
7+ target_include_directories (tv-software INTERFACE
8+ ${CMAKE_CURRENT_LIST_DIR}
9+ )
10+
You can’t perform that action at this time.
0 commit comments