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:
21:d03c7bbb9f37
Parent:
16:283828f1f6fe
--- a/spi/AferoCommHndlr.h	Mon Jun 05 07:59:10 2017 +0000
+++ b/spi/AferoCommHndlr.h	Fri Jun 09 01:49:53 2017 +0000
@@ -8,20 +8,18 @@
 #include "ToDoQ.h"
 #include "Preferences.hpp"
 #include "RTC_Handler.h"
-#include "WatchDoggy.hpp"
+#include "WatchDogWrapper.hpp"
 
 #define ATTR_ID_SENSE_VAL 1
 #define ATTR_ID_FLOW_CONTROL 4
 #define ATTR_ID_SENSING_INTERVAL 3
 
-using namespace MaruSolSensorManager;
-
 class AferoCommHndlr
 {
 public:
     void loop();
     static void init();
-    static AferoCommHndlr *create(Timer *timer, mbedSPI *spi);
+    static AferoCommHndlr *create(mbedSPI *spi);
     void update();
     int32_t sanitizeSensingInterval(uint16_t attributeId, int32_t interval);
     Timeout *deathWish;
@@ -43,7 +41,7 @@
     mbedSPI *spi;
     Timer *timer;
     Timeout *setAttrCmpDelay;
-    static void onSetAttrCmpDelay();
+    void onSetAttrCmpDelay();
 };
 
 #endif //_AFERO_COMM_HNDLR_
\ No newline at end of file