-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add RadioLib 7.1.0 source code [skip ci]
- Loading branch information
Showing
133 changed files
with
46,678 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# exclude binary patch files from language detection | ||
src/modules/SX126x/patches/*.h linguist-detectable=false | ||
src/modules/LR11x0/firmware/*.h linguist-detectable=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Arduino Library Development file | ||
.development | ||
|
||
# Atom | ||
*.tags | ||
*.tags1 | ||
|
||
# VS Code | ||
.vscode | ||
|
||
# Jetbrain IDEs | ||
.idea | ||
|
||
# Debug decoder | ||
extras/decoder/log.txt | ||
extras/decoder/out.txt | ||
|
||
# Spectrum scan | ||
extras/SX126x_Spectrum_Scan/out/* | ||
|
||
# PlatformIO | ||
.pio* | ||
|
||
# cmake | ||
build/ | ||
|
||
# Compote build output | ||
dist |
51 changes: 51 additions & 0 deletions
51
software/firmware/source/libraries/RadioLib/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
cmake_minimum_required(VERSION 3.13) | ||
|
||
if(ESP_PLATFORM) | ||
# Build RadioLib as an ESP-IDF component | ||
# required because ESP-IDF runs cmake in script mode | ||
# and needs idf_component_register() | ||
file(GLOB_RECURSE RADIOLIB_ESP_SOURCES | ||
"src/*.*" | ||
) | ||
|
||
idf_component_register( | ||
SRCS ${RADIOLIB_ESP_SOURCES} | ||
INCLUDE_DIRS . src | ||
) | ||
|
||
return() | ||
endif() | ||
|
||
if(CMAKE_SCRIPT_MODE_FILE) | ||
message(FATAL_ERROR "Attempted to build RadioLib in script mode") | ||
endif() | ||
|
||
project(radiolib) | ||
|
||
file(GLOB_RECURSE RADIOLIB_SOURCES | ||
"src/*.cpp" | ||
) | ||
|
||
add_library(RadioLib ${RADIOLIB_SOURCES}) | ||
|
||
target_include_directories(RadioLib | ||
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src> | ||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>) | ||
|
||
# use c++20 standard | ||
set_property(TARGET RadioLib PROPERTY CXX_STANDARD 20) | ||
|
||
# enable most warnings | ||
target_compile_options(RadioLib PRIVATE -Wall -Wextra) | ||
|
||
include(GNUInstallDirs) | ||
|
||
install(TARGETS RadioLib | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
) | ||
|
||
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/src/ | ||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/RadioLib | ||
FILES_MATCHING PATTERN "*.h" | ||
) |
3 changes: 3 additions & 0 deletions
3
software/firmware/source/libraries/RadioLib/CODE_OF_CONDUCT.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Code of Conduct | ||
|
||
Don't be an a*shole. |
Oops, something went wrong.