Skip to content

Commit 77e0a22

Browse files
committed
0.1.3 CRC
1 parent efc8668 commit 77e0a22

File tree

7 files changed

+28
-18
lines changed

7 files changed

+28
-18
lines changed

libraries/CRC/.arduino-ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ compile:
22
# Choosing to run compilation tests on 2 different Arduino platforms
33
platforms:
44
- uno
5-
- leonardo
6-
- due
7-
- zero
5+
# - due
6+
# - zero
7+
# - leonardo
8+
- m4
9+
- esp32
10+
# - esp8266
11+
# - mega2560
812
libraries:
913
- "printHelpers"

libraries/CRC/.github/workflows/arduino_test_runner.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ name: Arduino CI
44
on: [push, pull_request]
55

66
jobs:
7-
arduino_ci:
7+
runTest:
88
runs-on: ubuntu-latest
99

1010
steps:
1111
- uses: actions/checkout@v2
12-
- uses: Arduino-CI/action@master
13-
# Arduino-CI/[email protected]
12+
- uses: ruby/setup-ruby@v1
13+
with:
14+
ruby-version: 2.6
15+
- run: |
16+
gem install arduino_ci
17+
arduino_ci.rb

libraries/CRC/CRC.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// FILE: CRC.h
44
// AUTHOR: Rob Tillaart
5-
// VERSION: 0.1.1
5+
// VERSION: 0.1.3
66
// PURPOSE: Arduino library fir CRC8, CRC16, CRC16-CCITT, CRC32
77
// URL: https://github.com/RobTillaart/CRC
88
//
@@ -11,7 +11,7 @@
1111
#include "Arduino.h"
1212

1313

14-
#define CRC_LIB_VERSION (F("0.1.1"))
14+
#define CRC_LIB_VERSION (F("0.1.3"))
1515

1616

1717
////////////////////////////////////////////////////////////////

libraries/CRC/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

22
[![Arduino CI](https://github.com/RobTillaart/CRC/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
3+
[![Arduino-lint](https://github.com/RobTillaart/CRC/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/CRC/actions/workflows/arduino-lint.yml)
4+
[![JSON check](https://github.com/RobTillaart/CRC/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/CRC/actions/workflows/jsoncheck.yml)
35
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/CRC/blob/master/LICENSE)
46
[![GitHub release](https://img.shields.io/github/release/RobTillaart/CRC.svg?maxAge=3600)](https://github.com/RobTillaart/CRC/releases)
57

@@ -33,18 +35,18 @@ and many other websites.
3335
## Interface CRC classes
3436

3537
These interfaces are very similar for CRC8, CRC16, CRC32 and CRC64 class.
36-
The only difference is the datatype for polynome, start- and endmask, and the returned CRC.
38+
The only difference is the data type for polynome, start- and end-mask, and the returned CRC.
3739

3840
Use **\#include "CRC8.h"**
3941

4042
- **CRC8()** Constructor
4143
- **void reset()** set all internals to constructor defaults.
4244
- **void restart()** reset internal CRC and count only; reuse values for other e.g polynome, XOR masks and reverse flags.
4345
- **void setPolynome(polynome)** set polynome, note reset sets a default polynome.
44-
- **void setStartXOR(start)** set startmask, default 0.
45-
- **void setEndXOR(end)** set endmask, default 0.
46-
- **void setReverseIn(bool reverseIn)** reverse the bitpattern of input data (MSB vs LSB).
47-
- **void setReverseOut(bool reverseOut)** reverse the bitpattern of CRC (MSB vs LSB).
46+
- **void setStartXOR(start)** set start-mask, default 0.
47+
- **void setEndXOR(end)** set end-mask, default 0.
48+
- **void setReverseIn(bool reverseIn)** reverse the bit pattern of input data (MSB vs LSB).
49+
- **void setReverseOut(bool reverseOut)** reverse the bit pattern of CRC (MSB vs LSB).
4850
- **void add(value)** add a single value to CRC calculation.
4951
- **void add(array, uint32_t length)** add an array of values to the CRC. In case of a warning/error use casting to (uint8_t \*).
5052
- **uint8_t getCRC()** returns CRC calculated so far. This allows to check the CRC of a really large stream at intermediate moments, e.g. to link multiple packets.
@@ -77,7 +79,7 @@ Use **\#include "CRC.h"**
7779
7880
Most functions have a default polynome, same start and end masks, and default there is no reversing.
7981
However these parameters allow one to tweak the CRC in all aspects known.
80-
In all the examples encountered the reverseflags were set both to false or both to true.
82+
In all the examples encountered the reverse flags were set both to false or both to true.
8183
For flexibility both parameters are kept available.
8284
8385
- **uint8_t crc8(array, length, polynome = 0xD5, start = 0, end = 0, reverseIn = false, reverseOut = false)** idem with default polynome

libraries/CRC/keywords.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Syntax Coloring Map For CRC
1+
# Syntax Colouring Map For CRC
22

3-
# Datatypes (KEYWORD1)
3+
# Data types (KEYWORD1)
44
CRC8 KEYWORD1
55
CRC16 KEYWORD1
66
CRC32 KEYWORD1

libraries/CRC/library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type": "git",
1616
"url": "https://github.com/RobTillaart/CRC"
1717
},
18-
"version": "0.1.2",
18+
"version": "0.1.3",
1919
"license": "MIT",
2020
"frameworks": "arduino",
2121
"platforms": "*"

libraries/CRC/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=CRC
2-
version=0.1.2
2+
version=0.1.3
33
author=Rob Tillaart <[email protected]>
44
maintainer=Rob Tillaart <[email protected]>
55
sentence=Library for CRC for Arduino

0 commit comments

Comments
 (0)