2023-04-12 14:56:55 +08:00
|
|
|
add_executable(transmit
|
|
|
|
Transmit.cc
|
|
|
|
../../radio-switch.cc
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|
|
|
|
# Pull in our pico_stdlib which pulls in commonly used features
|
|
|
|
target_link_libraries(transmit pico_stdlib)
|
|
|
|
|
2023-04-14 10:05:31 +08:00
|
|
|
|
|
|
|
|
2023-04-12 14:56:55 +08:00
|
|
|
# enable usb output, disable uart output
|
|
|
|
pico_enable_stdio_usb(transmit 1)
|
|
|
|
pico_enable_stdio_uart(transmit 0)
|
|
|
|
|
2023-04-14 10:05:31 +08:00
|
|
|
|
|
|
|
pico_enable_stdio_uart(transmit ENABLED)
|
|
|
|
|
2023-04-12 14:56:55 +08:00
|
|
|
# create map/bin/hex file etc.
|
|
|
|
pico_add_extra_outputs(transmit)
|