Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: NerfUS_cmake_add_library_from_mbed NerfUS NerfUSGameCoordinator
Revision 1:001a600870d9, committed 2017-02-16
- 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
--- 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);