aboutsummaryrefslogtreecommitdiff
path: root/testing/examples
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-11-12 14:53:19 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-11-12 14:53:19 +0000
commit8f2c1659cf3d5a72ade3504caac248a0975aff2e (patch)
tree1618d984cc6f189f6e037bd93f2317a85e3d5232 /testing/examples
parent3a59ff8bda2c1c1bba36edc2c217de7d1c224d17 (diff)
downloadriscv-openocd-8f2c1659cf3d5a72ade3504caac248a0975aff2e.zip
riscv-openocd-8f2c1659cf3d5a72ade3504caac248a0975aff2e.tar.gz
riscv-openocd-8f2c1659cf3d5a72ade3504caac248a0975aff2e.tar.bz2
- slight mips32 cleanup/reformat
- add missing svn props git-svn-id: svn://svn.berlios.de/openocd/trunk@1159 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'testing/examples')
-rw-r--r--testing/examples/PIC32/BlinkingLeds.c46
-rw-r--r--testing/examples/PIC32/readme.txt6
2 files changed, 26 insertions, 26 deletions
diff --git a/testing/examples/PIC32/BlinkingLeds.c b/testing/examples/PIC32/BlinkingLeds.c
index d1647c4..027f59a 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;
+}
diff --git a/testing/examples/PIC32/readme.txt b/testing/examples/PIC32/readme.txt
index ca9573a..cb32ac2 100644
--- a/testing/examples/PIC32/readme.txt
+++ b/testing/examples/PIC32/readme.txt
@@ -1,4 +1,4 @@
-Here you'll find a simple example tested with PIC32 Starter kit (source code and .elf file). It will blink repeatedly the LEDs on the board.
-The program was compiled and written on the target using MPLAB IDE v 8.0 that comes with the kit because openocd is missing currently the ability
-to program the flash for this specific target. It is possible in the future this limitation to be removed.
+Here you'll find a simple example tested with PIC32 Starter kit (source code and .elf file). It will blink repeatedly the LEDs on the board.
+The program was compiled and written on the target using MPLAB IDE v 8.0 that comes with the kit because openocd is missing currently the ability
+to program the flash for this specific target. It is possible in the future this limitation to be removed.
\ No newline at end of file