#include<TMC123G.h>
/**
* main.c
*/
int main(void)
{
int i;
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
P1DIR = 0x01;
P1OUT = 0x00;
for (;;){
P1OUT ^= 0x01;
for (i=0; i<0xFFFF; i++) {
} //delay
} // infinite loop
return 0;
}
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
#include<TMC123G.h>
/**
* main.c
*/
int main(void)
{
int i;
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
P1DIR = 0x01;
P1OUT = 0x00;
for (;;){
P1OUT ^= 0x01;
for (i=0; i<0xFFFF; i++) {
} //delay
} // infinite loop
return 0;
}