/* Setup the hardware prior to using the scheduler. Most of the Cygnal specific initialisation is performed here leaving standard 8052 setup only in the driver code.  */
static void prvSetupHardware(void)
/* Setup the hardware prior to using the scheduler. Most of the Cygnal specific initialisation is performed here leaving standard 8052 setup only in the driver code.  */
static void prvSetupHardware(void)
{
unsigned char ucOriginalSFRPage;
	ucOriginalSFRPage = SFRPAGE;
	SFRPAGE = CONFIG_PAGE;
	SFRPGCN = mainAUTO_SFR_OFF;
	WDTCN = mainDISABLE_BYTE_1;
	WDTCN = mainDISABLE_BYTE_2;
	P1MDOUT |= mainPORT_1_BIT_6;
	XBR0 |= mainENABLE_COMS;
	P0MDOUT |= mainCOMS_LINES_TO_PUSH_PULL;
	XBR2 = mainENABLE_CROSS_BAR;
	prvSetupSystemClock();
	SFRPAGE = ucOriginalSFRPage;
}