LED test of nanoWipom board


LED test of nanoWipom board.

Toolkit:STM Development System

Location:/bipom/devtools/STM32/examples/nanoWipom/led

Code Example


int main(void) 
{
	
	/* Initialize all port pins */
	NWDIO_Init();
	
	delayMs(250);
	
	tprintf("\n\rLED TEST REV 1.00");	

	for(;;)
	{
		/* LED Fault (E0) On */
		Fault_LED_On();
		tprintf("\n\rLED Fault On");
		delayMs(500);
		/* LED Fault (E0) Off */	
		Fault_LED_Off ();
		tprintf("\n\rLED Fault Off");
		delayMs(500);

		/* LED PWR (E1) On */	
		Pwr_LED_On ();
		tprintf("\n\rLED Pwr On");
		delayMs(500);
		/* LED PWR (E1) Off */	
		Pwr_LED_Off ();
		tprintf("\n\rLED Pwr Off");
		delayMs(500);

		/* LED Comm (D7) On */
		Comm_LED_On ();
		tprintf("\n\rLED Comm On");
		delayMs(500);
		/* LED Comm (D7) Off */	
		Comm_LED_Off ();
		tprintf("\n\rLED Comm Off");
		delayMs(500);
	}
	
	return 0;
}