2008-11-12 08:53:19 -06:00
|
|
|
#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);
|
2009-06-23 17:50:08 -05:00
|
|
|
|
2009-06-23 17:36:11 -05:00
|
|
|
while (1)
|
2008-11-12 08:53:19 -06:00
|
|
|
{
|
2009-06-23 17:37:21 -05:00
|
|
|
for (i = 0; i < 500000; i++)
|
2008-11-12 08:53:19 -06:00
|
|
|
mPORTDToggleBits(BIT_0);
|
2009-06-23 17:37:21 -05:00
|
|
|
for (i = 0; i < 500000; i++)
|
2008-11-12 08:53:19 -06:00
|
|
|
mPORTDToggleBits(BIT_1);
|
2009-06-23 17:37:21 -05:00
|
|
|
for (i = 0; i < 500000; i++)
|
2008-11-12 08:53:19 -06:00
|
|
|
mPORTDToggleBits(BIT_2);
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|