- Replace 'for(' with 'for ('.
[openocd.git] / testing / examples / PIC32 / BlinkingLeds.c
1 #include <plib.h>
2 int main(void)
3 {
4 int i;
5 mPORTDClearBits(BIT_0);
6 mPORTDSetPinsDigitalOut(BIT_0);
7 mPORTDClearBits(BIT_1);
8 mPORTDSetPinsDigitalOut(BIT_1);
9 mPORTDClearBits(BIT_2);
10 mPORTDSetPinsDigitalOut(BIT_2);
11
12 while (1)
13 {
14 for (i = 0; i < 500000; i++)
15 mPORTDToggleBits(BIT_0);
16 for (i = 0; i < 500000; i++)
17 mPORTDToggleBits(BIT_1);
18 for (i = 0; i < 500000; i++)
19 mPORTDToggleBits(BIT_2);
20 }
21
22 return 0;
23 }