t

Dependencies:   DM_FATFileSystem DM_HttpServer DM_USBHost EthernetInterface USBDevice mbed-rpc mbed-rtos

Fork of DMSupport by Embedded Artists

Revision:
2:887c6b45e7fa
Parent:
0:6b68dac0d986
Child:
3:2fa7755f2cef
--- a/DMBoard.h	Fri Nov 21 11:46:48 2014 +0000
+++ b/DMBoard.h	Tue Dec 02 15:21:18 2014 +0000
@@ -19,6 +19,7 @@
 
 #include "mbed.h"
 #include "dm_board_config.h"
+#include "RtosLog.h"
 
 #if defined(DM_BOARD_USE_MCI_FS)
   #include "MCIFileSystem.h"
@@ -52,8 +53,11 @@
  */
 class DMBoard {
 public:
-    enum Constants {
-        NumLEDs       =  4,
+    enum Leds {
+        Led1,
+        Led2,
+        Led3,
+        Led4,
     };
   
     enum BoardError {
@@ -79,7 +83,7 @@
      */
     BoardError init();
   
-    void setLED(int led, bool on);
+    void setLED(Leds led, bool on);
     void buzzer(float value);
     bool buttonPressed();
     
@@ -91,6 +95,7 @@
 
     friend class Display;
 #endif
+    RtosLog* logger() { return &_logger; }
 
 private:
 
@@ -113,6 +118,8 @@
     DigitalOut _led3;
     DigitalOut _led4;
 
+    RtosLog _logger;
+
     explicit DMBoard();
     // hide copy constructor
     DMBoard(const DMBoard&);