mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
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.
This commit is contained in:
parent
5118b4aae8
commit
5d36c90331
1 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,9 @@
|
|||
pico_simple_hardware_target(uart)
|
||||
|
||||
pico_mirrored_target_link_libraries(hardware_uart INTERFACE hardware_resets hardware_clocks)
|
||||
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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue