/****************************************************************************** * Function Name: HardwareSetup * Description : This function does initial setting for CPG port pins used in * : the Demo including the MII pins of the Ethernet PHY connection. * Arguments : none * Return Value : none ******************************************************************************/ void HardwareSetup(void) { /* Gain access to the System control registers */ /* Refer to section 13 of the Hardware User Manual for further details */ SYSTEM.PRCR.WORD = 0xA503; /* Gain access to the Port Function Select Registers */ /* Refer to section 21 of the Hardware User Manual for further details */ MPC.PWPR.BIT.B0WI = 0; MPC.PWPR.BIT.PFSWE = 1; /* CPG setting */ /* User defined values for XTAL, Clock Divders etc are set in cgc.h */ InitCGC(); /* Setup the port pins */ ConfigurePortPins(); /* Enables peripherals */ EnablePeripheralModules(); #if INCLUDE_LCD == 1 /* Initialize display */ InitialiseDisplay(); #endif }
/****************************************************************************** * Outline : HardwareSetup * Description : Configures the YRDK initial hardware settings. * The YRRDK board was designed by partner Future * Designs Inc. (www.teamfdi.com). * Debugging is accomplished through the Segger * J-Link Lite OB solution (www.segger.com) * Argument : none * Return value : none ******************************************************************************/ void HardwareSetup(void) { ConfigureOperatingFrequency(); ConfigureOutputPorts(); ConfigureInterrupts(); EnablePeripheralModules(); }
/****************************************************************************** * Function Name: HardwareSetup * Description : This function does initial setting for CPG port pins used in * : the Demo including the MII pins of the Ethernet PHY connection. * Arguments : none * Return Value : none ******************************************************************************/ void HardwareSetup(void) { /* CPG setting */ io_set_cpg(); /* Setup the port pins */ ConfigurePortPins(); /* Enables peripherals */ EnablePeripheralModules(); #if INCLUDE_LCD == 1 /* Initialize display */ InitialiseDisplay(); #endif }