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 2:17746a0e459f, committed 2017-02-16
- 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
--- 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);
-}