diff --git a/.travis.yml b/.travis.yml index 6514f23..a090ee4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -52,10 +52,12 @@ script: - if [ "$MODE" = "LINUX" ]; then cd build; fi - if [ "$MODE" = "LINUX" ]; then cmake ..; fi - if [ "$MODE" = "LINUX" ]; then make; fi - - if [ "$MODE" = "ARDUINO" ]; then buildExampleSketch knx-demo; fi - - if [ "$MODE" = "ARDUINO" ]; then buildExampleSketch knx-sonoffS20; fi - - if [ "$MODE" = "ARDUINO" ]; then buildExampleSketch knx-bme680; fi - - if [ "$MODE" = "ARDUINO" ]; then buildExampleSketch knx-hdc1008; fi + # - if [ "$MODE" = "ARDUINO" ]; then buildExampleSketch knx-demo; fi + # - if [ "$MODE" = "ARDUINO" ]; then buildExampleSketch knx-sonoffS20; fi + # - if [ "$MODE" = "ARDUINO" ]; then buildExampleSketch knx-bme680; fi + # - if [ "$MODE" = "ARDUINO" ]; then buildExampleSketch knx-hdc1008; fi + - if [ "$MODE" = "ARDUINO" ]; then build_platform zero; fi + notifications: email: diff --git a/src/knx/bits.h b/src/knx/bits.h index 4a01dab..ee9ed64 100644 --- a/src/knx/bits.h +++ b/src/knx/bits.h @@ -5,7 +5,17 @@ #ifdef __linux__ #include + +#define lowByte(val) ((val)&255) +#define highByte(val) (((val) >> ((sizeof(val) - 1) << 3)) & 255) +#define bitRead(val, bitno) (((val) >> (bitno)) & 1) + +// print functions are implemented in the platform files +#define DEC 10 +#define HEX 16 + #elif ARDUINO_ARCH_SAMD +#include #define htons(x) ( (((x)<<8)&0xFF00) | (((x)>>8)&0xFF) ) #define ntohs(x) htons(x) #define htonl(x) ( ((x)<<24 & 0xFF000000UL) | \ @@ -14,17 +24,10 @@ ((x)>>24 & 0x000000FFUL) ) #define ntohl(x) htonl(x) #elif ARDUINO_ARCH_ESP8266 +#include #include #endif -#define lowByte(val) ((val) & 255) -#define highByte(val) (((val) >> ((sizeof(val) - 1) << 3)) & 255) -#define bitRead(val, bitno) (((val) >> (bitno)) & 1) - -// print functions are implemented in the platform files -#define DEC 10 -#define HEX 16 - void print(const char[]); void print(char); void print(unsigned char, int = DEC);