-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from Legrandgroup/release
* Major re-architecture done by Marc and new features addition to the library. * Switching to cmake, moving source codes, creating an AES SPI and a facade pattern to hide libezsp internal structure. * Adding firmware upgrade mode feature as well as offline commissionning. * Full GP support is operational, including MIC validation. * Also adding CI using travils+sonarcloud and coverage checking using gcov. * Changing the compilation process to generate a shared library and publish header files. * Added many command-line options to sample mainEzspTest * Supports custom baudrates on adapter (including 115200 which is now the default)
- Loading branch information
Showing
171 changed files
with
13,166 additions
and
8,113 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
*.o | ||
/.Build.stamp | ||
/.project | ||
/.cproject | ||
CMakeFiles/ | ||
/CMakeCache.txt | ||
cmake_install.cmake | ||
/include/ezsp/config.h | ||
/src/ezsp/Makefile | ||
/src/spi/Makefile | ||
/tests/Makefile | ||
/example/Makefile | ||
/src/spi/libezspspi.so | ||
/src/ezsp/libezsp.so | ||
/example/mainEzspTest | ||
/tests/gptest | ||
/version.h | ||
*.o | ||
*.a | ||
/doc |
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,15 @@ | ||
# Path to sources | ||
#sonar.sources=. | ||
#sonar.exclusions= | ||
#sonar.inclusions= | ||
|
||
# Path to tests | ||
#sonar.tests= | ||
#sonar.test.exclusions= | ||
#sonar.test.inclusions= | ||
|
||
# Source encoding | ||
#sonar.sourceEncoding=UTF-8 | ||
|
||
# Exclusions for copy-paste detection | ||
#sonar.cpd.exclusions= |
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,17 @@ | ||
language: cpp | ||
compiler: gcc | ||
dist: trusty | ||
|
||
addons: | ||
sonarcloud: | ||
organization: "legrandgroup" | ||
|
||
script: | ||
- mkdir -p build | ||
- cd build | ||
- cmake ${CMAKE_OPTIONS} -DUSE_CPPTHREADS=ON -DUSE_AESCUSTOM=ON -DUSE_GCOV=y -DUSE_MOCKSERIAL=ON .. | ||
- build-wrapper-linux-x86-64 --out-dir bw-output/ make | ||
- ./tests/gptest | ||
- ../gcov.sh | ||
- cd .. | ||
- sonar-scanner |
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,28 @@ | ||
cmake_minimum_required(VERSION 3.8) | ||
|
||
# set the project name and version | ||
project(ezsp VERSION 1.0) | ||
|
||
configure_file(version.h.in version.h) | ||
|
||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake) | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
set(CMAKE_CXX_STANDARD_REQUIRED True) | ||
|
||
set(CMAKE_CXX_OUTPUT_EXTENSION_REPLACE ON) | ||
|
||
add_definitions("-fvisibility=hidden") | ||
add_definitions("-fvisibility-inlines-hidden") | ||
|
||
option(USE_GCOV "Use GCOV coverage profiler" OFF) | ||
if(USE_GCOV) | ||
add_definitions(-g -O0 --coverage -fprofile-arcs -ftest-coverage) | ||
link_libraries(--coverage -lgcov -fprofile-arcs) | ||
endif() | ||
|
||
#add_subdirectory(src) | ||
add_subdirectory(src/ezsp) | ||
add_subdirectory(src/spi) | ||
add_subdirectory(example) | ||
add_subdirectory(tests) |
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,11 @@ | ||
option(USE_RARITAN "Use RARITAN environment" ON) | ||
option(USE_CPPTHREADS "Use CPPTHREAD" OFF) | ||
|
||
if(USE_CPPTHREADS) | ||
set(USE_RARITAN OFF) | ||
endif() | ||
|
||
add_executable(mainEzspTest mainEzspTest.cpp) | ||
|
||
target_include_directories(mainEzspTest PRIVATE ${PROJECT_SOURCE_DIR}/include) | ||
target_link_libraries(mainEzspTest PUBLIC ezsp ezspspi) |
Oops, something went wrong.