Prepare for hardware handshaking

This commit is contained in:
Carsten Schmiemann 2023-12-31 21:43:31 +01:00
parent ca81e5c242
commit 93f66b01fc

View file

@ -2,6 +2,8 @@
cmake_minimum_required(VERSION 3.13)
option(FLOW_CONTROL "Enable Hardware Flow-control on the UARTs" FALSE)
include(pico-sdk/pico_sdk_init.cmake)
project(pico_uart_bridge)
@ -20,4 +22,12 @@ target_link_libraries(uart_bridge
pico_stdlib
tinyusb_device)
if(FLOW_CONTROL)
target_compile_definitions(uart_bridge PUBLIC FLOW_CONTROL=1)
endif()
if(LINE_CONTROL)
target_compile_definitions(uart_bridge PUBLIC LINE_CONTROL=1)
endif()
pico_add_extra_outputs(uart_bridge)