Output test of nanoWipom board


Output test of nanoWipom board.
The test checks 2 digital outpus (DO1-2).

Toolkit:STM Development System

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

Code Example


int main(void) 
{
	int ndx;
	/* Initialize all port pins */
	NWDIO_Init();
	
	delayMs(250);
		
	//

	tprintf("\n\rNanoWipom %s %s",__DATE__,__TIME__);
	tprintf("\n\rOUTPUT TEST REV 1.01");
	//

	tprintf("\n\r");
	for(ndx = 1; ndx < 3; ndx++)
		tprintf("OUTPUT #%d %s ",ndx, 1==NWDIO_SetOutput(ndx)?"OK  ":"FAIL");
	//

	for(;;)
	{
		tprintf("\n\r");
		for(ndx = 1; ndx < 3; ndx++)
		tprintf("OUTPUT #%d %s ",ndx, 1==NWDIO_GetOutputStatus(ndx)?"OK  ":"FAIL");
		//

		delayMs(1000);
	}
	return 0;
}