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:16:04 2017 -0500
Parent:
1:001a600870d9
Child:
3:664dfa189c79
Commit message:
Fix the rename to HardwareLPC1768

Changed in this revision

CMakeLists.txt 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
source/HardwareLPC1768.cpp Show annotated file Show diff for this revision Revisions of this file
source/MbedBlinker.cpp Show diff for this revision Revisions of this file
--- a/CMakeLists.txt	Thu Feb 16 12:08:49 2017 -0500
+++ b/CMakeLists.txt	Thu Feb 16 12:16:04 2017 -0500
@@ -1,6 +1,6 @@
 cmake_minimum_required(VERSION 3.5)
 
-project(hardware_interface_lpc1768)
+project(hardware_interface)
 
 include_directories(include)
 
--- a/include/HardwareLPC1768.hpp	Thu Feb 16 12:08:49 2017 -0500
+++ b/include/HardwareLPC1768.hpp	Thu Feb 16 12:16:04 2017 -0500
@@ -1,10 +1,10 @@
 #include "HardwareInterface.hpp"
 #include "mbed.h"
 
-class HardwareInterfaceLPC1768 : public HardwareInterface
+class HardwareLPC1768 : public HardwareInterface
 {
     public:
-        HardwareInterfaceLPC1768(DigitalOut led);
+        HardwareLPC1768(DigitalOut led);
         virtual void blink();
         
     private:
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/source/HardwareLPC1768.cpp	Thu Feb 16 12:16:04 2017 -0500
@@ -0,0 +1,14 @@
+#include "HardwareLPC1768.hpp"
+
+HardwareLPC1768::HardwareLPC1768(DigitalOut led) :
+    led(led)
+{
+}
+
+void HardwareLPC1768::blink()
+{
+    led = 1;
+    wait(0.5);
+    led = 0;
+    wait(0.5);
+}
--- a/source/MbedBlinker.cpp	Thu Feb 16 12:08:49 2017 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#include "HardwareInterfaceLPC1768.hpp"
-
-HardwareInterfaceLPC1768::HardwareInterfaceLPC1768(DigitalOut led) :
-    led(led)
-{
-}
-
-void HardwareInterfaceLPC1768::blink()
-{
-    led = 1;
-    wait(0.5);
-    led = 0;
-    wait(0.5);
-}