Uses the RP2040's Programmable IO to create a PAL colour video signal. It consists of the PIO program, some "driver" and tools code, a test program and a program for creating colour Look-up Tables (LUTs).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
rppico-pio-pal/CMakeLists.txt

48 lines
1.3 KiB

# this is from pico-examples' root directory
cmake_minimum_required(VERSION 3.12)
message($ENV{PICO_SDK_PATH})
# Pull in SDK (must be before project)
#include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)
include(pico_sdk_import.cmake)
message($ENV{PICO_SDK_PATH})
project(pico_pal C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
if (PICO_SDK_VERSION_STRING VERSION_LESS "1.3.0")
message(FATAL_ERROR "Raspberry Pi Pico SDK version 1.3.0 (or later) required. Your version is ${PICO_SDK_VERSION_STRING}")
endif()
# Initialize the SDK
pico_sdk_init()
add_compile_options(-Wall
-Wno-format # int != int32_t as far as the compiler is concerned because gcc has int32_t as long int
-Wno-unused-function # we have some for the docs that aren't called
-Wno-maybe-uninitialized
)
# this is the source specific part merged from hello_pio and hello_dma
add_executable(paltest)
pico_generate_pio_header(paltest ${CMAKE_CURRENT_LIST_DIR}/PAL3.pio)
target_sources(paltest PRIVATE paltest.c analogVideoDriver.c)
pico_enable_stdio_usb(paltest 1)
target_link_libraries(paltest PRIVATE
pico_stdlib
hardware_pio
hardware_dma
)
pico_add_extra_outputs(paltest)
# add url via pico_set_program_url
#example_auto_set_url(paltest)