myeerste
Revision 3:2e7c3a890019, committed 2015-02-07
- Comitter:
- erastus
- Date:
- Sat Feb 07 13:19:43 2015 +0000
- Parent:
- 2:36d2742dc2bf
- Child:
- 4:6dbe7ec75eca
- Commit message:
- 1
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Feb 06 20:15:15 2015 +0000
+++ b/main.cpp Sat Feb 07 13:19:43 2015 +0000
@@ -5,6 +5,10 @@
#error "This example is targeted for the C027 platform"
#endif
+#include "gpio_api.h"
+
+DigitalOut myled (LED);
+
#define Generator = p36;
//ifdef =
// PortIn p(Port2, 0x0000003F); // p21-p26
@@ -29,8 +33,9 @@
EnableInvertorsI = LoopCounterI = 0;
GenStatusI = PowerStatusI = NoStartI = 0;
Invertor1I = Invertor2I = Invertor3I = Invertor4I = 0;
+ uint32_t gpio_set(PinName pin);
// sms ( "Startup");
- // DigitalOut( P3, 0xff) // set all relays off
+// DigitalOut( LED); // set all relays off
while(1)
{
PowerStatusI = DigitalIn( P2_0); // get main power status
@@ -125,4 +130,4 @@
wait(1000); // wait 1 sec
// myled( LedI);
} // main loop while
-
+}