]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - include/crc.h
cli.c bugfix: Comment only lines are not an error.
[z180-stamp.git] / include / crc.h
index c38bae40824d7aa861b4d0139646db9a2a26eddc..89cde1f0e7b951df023a62bb227c8f363a105c27 100644 (file)
@@ -1,12 +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 */