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

Committer:
wataloh
Date:
Tue Dec 20 01:51:02 2016 +0000
Revision:
0:20bce0dcc921
kl25z teensy merged

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wataloh 0:20bce0dcc921 1 #ifndef _CHECK_SUM_H_
wataloh 0:20bce0dcc921 2 #define _CHECK_SUM_H_
wataloh 0:20bce0dcc921 3
wataloh 0:20bce0dcc921 4 #include "mbed.h"
wataloh 0:20bce0dcc921 5
wataloh 0:20bce0dcc921 6 class CheckSum
wataloh 0:20bce0dcc921 7 {
wataloh 0:20bce0dcc921 8 static uint32_t *table;
wataloh 0:20bce0dcc921 9 uint32_t checkSum;
wataloh 0:20bce0dcc921 10 void reset();
wataloh 0:20bce0dcc921 11 public:
wataloh 0:20bce0dcc921 12 CheckSum();
wataloh 0:20bce0dcc921 13 typedef union
wataloh 0:20bce0dcc921 14 {
wataloh 0:20bce0dcc921 15 uint8_t uint8array[4];
wataloh 0:20bce0dcc921 16 uint32_t uint32;
wataloh 0:20bce0dcc921 17 } CheckSumCRC32;
wataloh 0:20bce0dcc921 18 void calc(uint8_t *buf, size_t len);
wataloh 0:20bce0dcc921 19 CheckSumCRC32 get();
wataloh 0:20bce0dcc921 20 };
wataloh 0:20bce0dcc921 21 #endif //_CHECK_SUM_H_