/**************************************************************************
	board_id.c

   Z-World, 2001
	This sample program is for the OP6800 series controllers.
	
	This program will detect the controller type that you have (via product
	ID) and will display that information in the STDIO window. Here's the
	controllers product information. 

	OP6800 Demo Board Setup:
	------------------------
	1. Connect a +12v power source to the OP6800 Demo Board connector
	   J3/J5 as follows:

	   PS     	OP6800 Demo Board
	   --			-----------------
	   +12v		+RAW Terminal  
	   GND      GND Terminal


	Product ID     Product Description
	---------- 		-------------------
	0x0D00			OP6800...22MHz, LCD/Keypad, Digital I/O, Ethernet
	0x0D01			OP6810...22MHz, LCD/Keypad, Digital I/O, No Ethernet
			 
**************************************************************************/

///////////////////////////////////////////////////////////////////////////

main()
{
	auto char *ptr[4];
	auto int i;

	ptr[0] = "OP6800...22MHz, LCD/Keypad, Digital I/O, w/Ethernet";
	ptr[1] = "OP6810...22MHz, LCD/Keypad, Digital I/O, No Ethernet";

	if(_BOARD_TYPE_ < 0x0D00 || _BOARD_TYPE_ > 0x0D01)
	{
		printf("\n\n\rInvalid controller BOARD_ID detected!!!");
	}
	else
	{
		i = _BOARD_TYPE_ & 0x000f;
		// display controller information in the STDIO window	
		printf("\n\n\rController is a %s", ptr[i]);
	}
}


	