mirror of
https://github.com/thelsing/knx.git
synced 2024-12-18 19:08:18 +01:00
.
This commit is contained in:
parent
ce190a44e4
commit
ac24e1206a
10
.travis.yml
10
.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:
|
||||
|
@ -5,7 +5,17 @@
|
||||
|
||||
#ifdef __linux__
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#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 <Arduino.h>
|
||||
#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 <Arduino.h>
|
||||
#include <user_interface.h>
|
||||
#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);
|
||||
|
Loading…
Reference in New Issue
Block a user