summaryrefslogtreecommitdiff
path: root/include/crc.h
diff options
context:
space:
mode:
authorLeo C2015-06-11 17:43:28 +0200
committerLeo C2015-06-11 17:43:28 +0200
commit1157e75889d3d6d23d1e2514f401cd5b354bd149 (patch)
treeedad2bcaddaec49a18a1b4bac2b813ce9e5a36bf /include/crc.h
parent8506d791786eea8ee55db5418a8f646bb2dd3a6d (diff)
parent057817cb1dc71416bc798b5cd592acfcea87efaa (diff)
downloadz180-stamp-1157e75889d3d6d23d1e2514f401cd5b354bd149.zip
Merge branch 'master' into cmdline_edit
Diffstat (limited to 'include/crc.h')
-rw-r--r--include/crc.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/crc.h b/include/crc.h
index 927b5ff..89cde1f 100644
--- a/include/crc.h
+++ b/include/crc.h
@@ -1,14 +1,21 @@
+/*
+ * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
#ifndef CRC_H
#define CRC_H
#ifdef __AVR__
#include <util/crc16.h>
static inline
-uint16_t crc16(uint16_t crc, uint8_t data)
+uint16_t crc16(uint16_t crc, uint8_t data)
{
return _crc_ccitt_update(crc, data);
}
#else /* !__AVR__ */
+ /* TODO */
#endif /* __AVR__ */
#endif /* CRC_H */