We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 911ad90 commit 0ac8438Copy full SHA for 0ac8438
.arduino-ci.cpp
@@ -0,0 +1,14 @@
1
+#define ARDUINO_CI 1
2
+
3
+// Mock implementation of CRC16 for testing
4
+extern "C" uint16_t _crc16_update(uint16_t crc, uint8_t data) {
5
+ uint8_t i;
6
+ crc ^= data;
7
+ for (i = 0; i < 8; ++i) {
8
+ if (crc & 1)
9
+ crc = (crc >> 1) ^ 0xA001;
10
+ else
11
+ crc = (crc >> 1);
12
+ }
13
+ return crc;
14
+}
.arduino-ci.yml
@@ -7,6 +7,8 @@ compile:
unittest:
platforms:
- - uno
+ - uno
libraries:
- - "OneWire"
+ - "OneWire"
+ mocks:
+ - crc16.h
0 commit comments