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:
Thu Jan 19 09:17:16 2017 +0000
Revision:
1:b2a9a6f2c30e
Parent:
0:20bce0dcc921
Child:
2:dfe671e31221
simplified

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wataloh 0:20bce0dcc921 1 #ifndef _TODO_QUEUE_H_
wataloh 0:20bce0dcc921 2 #define _TODO_QUEUE_H_
wataloh 0:20bce0dcc921 3
wataloh 0:20bce0dcc921 4 #include "mbed.h"
wataloh 0:20bce0dcc921 5 #include "debugIO.h"
wataloh 1:b2a9a6f2c30e 6 #include "CommonTemplateRoutines.hpp"
wataloh 0:20bce0dcc921 7
wataloh 0:20bce0dcc921 8 #define TODO_QUEUE_SIZE 10
wataloh 0:20bce0dcc921 9
wataloh 0:20bce0dcc921 10 namespace MaruSolSensorManager
wataloh 0:20bce0dcc921 11 {
wataloh 0:20bce0dcc921 12 class ToDo;
wataloh 1:b2a9a6f2c30e 13
wataloh 0:20bce0dcc921 14 class ToDoQ
wataloh 0:20bce0dcc921 15 {
wataloh 0:20bce0dcc921 16 public:
wataloh 0:20bce0dcc921 17 typedef void (*onGetTodo)(ToDo*);
wataloh 0:20bce0dcc921 18 static ToDoQ* create(onGetTodo);
wataloh 0:20bce0dcc921 19 void loop();
wataloh 0:20bce0dcc921 20 static void queuePut(ToDo*);
wataloh 0:20bce0dcc921 21 private:
wataloh 0:20bce0dcc921 22 ToDo *q[TODO_QUEUE_SIZE];
wataloh 0:20bce0dcc921 23 onGetTodo _onGetTodo;
wataloh 1:b2a9a6f2c30e 24 DECL_GET_INSTANCE(ToDoQ);
wataloh 1:b2a9a6f2c30e 25 DECL_SELF(ToDoQ);
wataloh 1:b2a9a6f2c30e 26 void setOnToDo(onGetTodo);
wataloh 0:20bce0dcc921 27 void _queuePut(ToDo*);
wataloh 1:b2a9a6f2c30e 28 ToDoQ();
wataloh 0:20bce0dcc921 29 };
wataloh 1:b2a9a6f2c30e 30
wataloh 0:20bce0dcc921 31 class ToDo
wataloh 0:20bce0dcc921 32 {
wataloh 0:20bce0dcc921 33 public:
wataloh 0:20bce0dcc921 34 virtual void toJSON(char *buf) = 0;
wataloh 0:20bce0dcc921 35 virtual void getBytes(uint8_t *buf) = 0;
wataloh 0:20bce0dcc921 36 };
wataloh 1:b2a9a6f2c30e 37 }
wataloh 0:20bce0dcc921 38 #endif //_TODO_QUEUE_H_