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