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
util/BitOrder.cpp@0:20bce0dcc921, 2016-12-20 (annotated)
- Committer:
- wataloh
- Date:
- Tue Dec 20 01:51:02 2016 +0000
- Revision:
- 0:20bce0dcc921
kl25z teensy merged
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wataloh | 0:20bce0dcc921 | 1 | #include "BitOrder.h" |
wataloh | 0:20bce0dcc921 | 2 | |
wataloh | 0:20bce0dcc921 | 3 | static const uint8_t uint8_treverse_lookup[] = { 0, 8, 4, 12, 2, 10, 6, 14,1, 9, 5, 13,3, 11, 7, 15 }; |
wataloh | 0:20bce0dcc921 | 4 | |
wataloh | 0:20bce0dcc921 | 5 | uint8_t BitOrder::flip(uint8_t in) |
wataloh | 0:20bce0dcc921 | 6 | { |
wataloh | 0:20bce0dcc921 | 7 | return (((uint8_treverse_lookup[(in & 0x0F)]) << 4) + uint8_treverse_lookup[((in & 0xF0) >> 4)]); |
wataloh | 0:20bce0dcc921 | 8 | } |
wataloh | 0:20bce0dcc921 | 9 | |
wataloh | 0:20bce0dcc921 | 10 |