Skip to content
Snippets Groups Projects
Unverified Commit 5d36c903 authored by Peter Harper's avatar Peter Harper Committed by GitHub
Browse files

Make it easier to configure default baud rate (#1648)

To make stdio logging quicker it's probably a good idea to set the default
uart speed 921600, but it's only configurable by adding this define to
your project. Make it configurable from the cmake command line.
parent 5118b4aa
Branches
Tags 1.0.0
No related merge requests found
pico_simple_hardware_target(uart)
pico_mirrored_target_link_libraries(hardware_uart INTERFACE hardware_resets hardware_clocks)
\ No newline at end of file
pico_mirrored_target_link_libraries(hardware_uart INTERFACE hardware_resets hardware_clocks)
# PICO_CONFIG: PICO_DEFAULT_UART_BAUD_RATE, Define the default UART baudrate, max=921600, default=115200, group=hardware_uart
if (PICO_DEFAULT_UART_BAUD_RATE)
target_compile_definitions(hardware_uart INTERFACE
PICO_DEFAULT_UART_BAUD_RATE=${PICO_DEFAULT_UART_BAUD_RATE})
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment