NerfUS / HardwareInterface

Dependents:   NerfUS_cmake_add_library_from_mbed NerfUS NerfUSGameCoordinator

Files at this revision

API Documentation at this revision

Comitter:
Maxime Dupuis
Date:
Thu Feb 16 12:08:49 2017 -0500
Parent:
0:e67c78f2b4f4
Child:
2:17746a0e459f
Commit message:
Rename from BlinkerInterface to HardwareInterface

Changed in this revision

include/BlinkerInterface.hpp Show diff for this revision Revisions of this file
include/HardwareInterface.hpp Show annotated file Show diff for this revision Revisions of this file
include/HardwareLPC1768.hpp Show annotated file Show diff for this revision Revisions of this file
include/MbedBlinker.hpp Show diff for this revision Revisions of this file
source/MbedBlinker.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/include/BlinkerInterface.hpp	Thu Feb 16 11:42:32 2017 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-class BlinkerInterface
-{
-    virtual void blink() = 0;
-};
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/HardwareInterface.hpp	Thu Feb 16 12:08:49 2017 -0500
@@ -0,0 +1,4 @@
+class HardwareInterface
+{
+    virtual void blink() = 0;
+};
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/HardwareLPC1768.hpp	Thu Feb 16 12:08:49 2017 -0500
@@ -0,0 +1,12 @@
+#include "HardwareInterface.hpp"
+#include "mbed.h"
+
+class HardwareInterfaceLPC1768 : public HardwareInterface
+{
+    public:
+        HardwareInterfaceLPC1768(DigitalOut led);
+        virtual void blink();
+        
+    private:
+        DigitalOut led;
+};
--- a/include/MbedBlinker.hpp	Thu Feb 16 11:42:32 2017 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-#include "BlinkerInterface.hpp"
-#include "mbed.h"
-
-class MbedBlinker : public BlinkerInterface
-{
-    public:
-        MbedBlinker(DigitalOut led);
-        virtual void blink();
-        
-    private:
-        DigitalOut led;
-};
\ No newline at end of file
--- a/source/MbedBlinker.cpp	Thu Feb 16 11:42:32 2017 -0500
+++ b/source/MbedBlinker.cpp	Thu Feb 16 12:08:49 2017 -0500
@@ -1,11 +1,11 @@
-#include "MbedBlinker.hpp"
+#include "HardwareInterfaceLPC1768.hpp"
 
-MbedBlinker::MbedBlinker(DigitalOut led) :
+HardwareInterfaceLPC1768::HardwareInterfaceLPC1768(DigitalOut led) :
     led(led)
 {
 }
 
-void MbedBlinker::blink()
+void HardwareInterfaceLPC1768::blink()
 {
     led = 1;
     wait(0.5);