Martin Deng / Mbed 2 deprecated SystemManagement

Dependencies:   CANBuffer mbed SystemManagement mbed-rtos

Dependents:   SystemManagement

Committer:
martydd3
Date:
Fri Oct 10 20:24:22 2014 +0000
Revision:
6:6a04210a3f4f
Added Watchdog timer, put DC_DC converter and FanPump code into their own classes.; To do: Look into how to call class member functions in a thread. Current thread functions are not members of classes.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
martydd3 6:6a04210a3f4f 1 #ifndef _FILE_DC_DC_H
martydd3 6:6a04210a3f4f 2 #define _FILE_DC_DC_H
martydd3 6:6a04210a3f4f 3
martydd3 6:6a04210a3f4f 4 #include "CANBuffer.h"
martydd3 6:6a04210a3f4f 5 #include "FanPump.h"
martydd3 6:6a04210a3f4f 6 #include "rtos.h"
martydd3 6:6a04210a3f4f 7
martydd3 6:6a04210a3f4f 8 const int TX_DC_DC_ID = ((4 << 8) | 5);
martydd3 6:6a04210a3f4f 9 const int RX_DC_DC_ID = ((4 << 8) | 14);
martydd3 6:6a04210a3f4f 10
martydd3 6:6a04210a3f4f 11 class DC{
martydd3 6:6a04210a3f4f 12 public:
martydd3 6:6a04210a3f4f 13 DC(FanPump *fanPump, CANBuffer *can); //constructor takes function to shut down certain processes when off
martydd3 6:6a04210a3f4f 14 bool is_on();
martydd3 6:6a04210a3f4f 15 void set(bool status);
martydd3 6:6a04210a3f4f 16 void start_update();
martydd3 6:6a04210a3f4f 17 };
martydd3 6:6a04210a3f4f 18
martydd3 6:6a04210a3f4f 19 #endif