summaryrefslogtreecommitdiff
path: root/testing/examples/PIC32/BlinkingLeds.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/examples/PIC32/BlinkingLeds.c')
-rw-r--r--testing/examples/PIC32/BlinkingLeds.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/testing/examples/PIC32/BlinkingLeds.c b/testing/examples/PIC32/BlinkingLeds.c
index d1647c45..027f59ac 100644
--- a/testing/examples/PIC32/BlinkingLeds.c
+++ b/testing/examples/PIC32/BlinkingLeds.c
@@ -1,23 +1,23 @@
-#include <plib.h>
-int main(void)
-{
- int i;
- mPORTDClearBits(BIT_0);
- mPORTDSetPinsDigitalOut(BIT_0);
- mPORTDClearBits(BIT_1);
- mPORTDSetPinsDigitalOut(BIT_1);
- mPORTDClearBits(BIT_2);
- mPORTDSetPinsDigitalOut(BIT_2);
-
- while(1)
- {
- for(i = 0; i < 500000; i++)
- mPORTDToggleBits(BIT_0);
- for(i = 0; i < 500000; i++)
- mPORTDToggleBits(BIT_1);
- for(i = 0; i < 500000; i++)
- mPORTDToggleBits(BIT_2);
- }
-
- return 0;
-}
+#include <plib.h>
+int main(void)
+{
+ int i;
+ mPORTDClearBits(BIT_0);
+ mPORTDSetPinsDigitalOut(BIT_0);
+ mPORTDClearBits(BIT_1);
+ mPORTDSetPinsDigitalOut(BIT_1);
+ mPORTDClearBits(BIT_2);
+ mPORTDSetPinsDigitalOut(BIT_2);
+
+ while(1)
+ {
+ for(i = 0; i < 500000; i++)
+ mPORTDToggleBits(BIT_0);
+ for(i = 0; i < 500000; i++)
+ mPORTDToggleBits(BIT_1);
+ for(i = 0; i < 500000; i++)
+ mPORTDToggleBits(BIT_2);
+ }
+
+ return 0;
+}