A LoRa APRS node with KISS interface based on a Raspberry Pi Pico
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.
|
|
|
cmake_minimum_required(VERSION 3.12)
|
|
|
|
|
|
|
|
# Pull in SDK (must be before project)
|
|
|
|
|
|
|
|
# project(LoRa_pico_lib)
|
|
|
|
|
|
|
|
add_library(LoRa_pico_lib LoRa-RP2040.cpp LoRa-RP2040.h)
|
|
|
|
add_library(LoRa_print Print.h Print.cpp)
|
|
|
|
add_library(KISS kiss.h kiss.cpp)
|
|
|
|
|
|
|
|
target_link_libraries(LoRa_pico_lib pico_stdlib hardware_spi hardware_interp LoRa_print)
|
|
|
|
|
|
|
|
# enable usb output, disable uart output
|
|
|
|
pico_enable_stdio_usb(LoRa_pico_lib 1)
|
|
|
|
pico_enable_stdio_uart(LoRa_pico_lib 0)
|
|
|
|
|
|
|
|
add_executable(main
|
|
|
|
main.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(CMAKE_C_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
|
|
|
|
target_include_directories(main PUBLIC ./)
|
|
|
|
|
|
|
|
target_link_directories(main PUBLIC ./)
|
|
|
|
|
|
|
|
target_link_libraries(main pico_stdlib LoRa_pico_lib LoRa_print KISS)
|
|
|
|
|
|
|
|
# enable usb output, disable uart output
|
|
|
|
pico_enable_stdio_usb(main 1)
|
|
|
|
pico_enable_stdio_uart(main 0)
|
|
|
|
|
|
|
|
# create map/bin/hex/uf2 file in addition to ELF.
|
|
|
|
pico_add_extra_outputs(main)
|
|
|
|
|