Пример #1
0
void led_flash_task(void *pvParameters)
{
  leds_init();

  while (1) {
    toogleLED();
  }
}
Пример #2
0
	int main(void){
		volatile unsigned char a;
		volatile unsigned int i; 	// volatile to prevent optimization
		WDTCTL = WDTPW + WDTHOLD; 	// Stop watchdog timer
		Init_UART();

		// Make green and yellow outputs
		P2DIR |= 0x06; 	// Set P1.0 to output direction
						// Use The LED as an indicator



		P2OUT = 0x00; 		//Start with Green and Yellow LEDs off

		for (;;)			//Run for ever
			toogleLED();

}