forked from things-nyc/arduino-lmic
-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add simple continuous integration check for version macros
- Loading branch information
1 parent
4c23be1
commit 777a061
Showing
2 changed files
with
44 additions
and
5 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,36 @@ | ||
/* | ||
Module: header_test.ino | ||
Function: | ||
Simple hello-world (and compile-test) app | ||
Copyright notice and License: | ||
See LICENSE file accompanying this project. | ||
Author: | ||
Terry Moore, MCCI Corporation April 2018 | ||
*/ | ||
|
||
#include <lmic.h> | ||
|
||
# define STATIC_ASSERT(e) \ | ||
void STATIC_ASSERT__(int MCCIADK_C_ASSERT_x[(e) ? 1: -1]) | ||
|
||
STATIC_ASSERT(ARDUINO_LMIC_VERSION >= ARDUINO_LMIC_VERSION_CALC(2,2,0,0)); | ||
|
||
STATIC_ASSERT(ARDUINO_LMIC_VERSION_CALC(1,2,3,4) == 0x01020304); | ||
|
||
STATIC_ASSERT(ARDUINO_LMIC_VERSION_GET_MAJOR(ARDUINO_LMIC_VERSION_CALC(1,2,3,4)) == 1); | ||
STATIC_ASSERT(ARDUINO_LMIC_VERSION_GET_MINOR(ARDUINO_LMIC_VERSION_CALC(1,2,3,4)) == 2); | ||
STATIC_ASSERT(ARDUINO_LMIC_VERSION_GET_PATCH(ARDUINO_LMIC_VERSION_CALC(1,2,3,4)) == 3); | ||
STATIC_ASSERT(ARDUINO_LMIC_VERSION_GET_LOCAL(ARDUINO_LMIC_VERSION_CALC(1,2,3,4)) == 4); | ||
|
||
void setup() | ||
{ | ||
} | ||
|
||
void loop() | ||
{ | ||
} |