pwm period is now 200us instead of the default 20ms veml6040 config is now AF_BIT | TRIG_BIT

Dependencies:   mbed MMA8451Q USBDevice WakeUp vt100

Fork of afero_node_suntory_2017_06_15 by Orefatoi

Revision:
0:20bce0dcc921
diff -r 000000000000 -r 20bce0dcc921 util/CheckSum.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/CheckSum.h	Tue Dec 20 01:51:02 2016 +0000
@@ -0,0 +1,21 @@
+#ifndef _CHECK_SUM_H_
+#define _CHECK_SUM_H_
+
+#include "mbed.h"
+
+class CheckSum
+{
+    static uint32_t *table;
+    uint32_t checkSum;
+    void reset();
+public:
+    CheckSum();
+    typedef union
+    {
+        uint8_t  uint8array[4];
+        uint32_t uint32;
+    } CheckSumCRC32;
+    void calc(uint8_t *buf, size_t len);
+    CheckSumCRC32 get();
+};    
+#endif //_CHECK_SUM_H_
\ No newline at end of file