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:
6:88cc04eb613a
Parent:
5:9d5c7ee80f3b
Child:
14:b205267fa5f6
--- a/spi/AferoCommHndlr.h	Tue Feb 28 02:09:06 2017 +0000
+++ b/spi/AferoCommHndlr.h	Wed Mar 22 23:39:41 2017 +0000
@@ -8,6 +8,7 @@
 #include "ToDoQ.h"
 #include "Preferences.hpp"
 #include "RTC_Handler.h"
+#include "WatchDoggy.hpp"
 
 #define ATTR_ID_SENSE_VAL 1
 #define ATTR_ID_FLOW_CONTROL 4
@@ -20,6 +21,7 @@
     DigitalOut *out;
     Timeout timeout;
     static Necochan *ref;
+    Timeout *deathWish;
 public:
     Necochan();
     static void release();
@@ -34,6 +36,8 @@
     static AferoCommHndlr *create(Timer *timer, mbedSPI *spi);
     void update();
     int32_t sanitizeSensingInterval(uint16_t attributeId, int32_t interval);
+    Timeout *deathWish;
+    static void kick_the_bucket();
 private:
     bool flowControlEnabled; //ATTR_ID_FLOW_CONTROL;
     ToDoQ *todoQ;