test_coldfire/Project_Headers/UART0.c
/*
** ===================================================================
**     Method      :  UART0_Init (component Init_UART)
**     Description :
**         This method initializes registers of the UART module
**         according to the Peripheral Initialization settings.
**         Call this method in user code to initialize the module. By
**         default, the method is called by PE automatically; see "Call
**         Init method" property of the component for more details.
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/
Method      :  UART0_Init (component Init_UART)
Description :
This method initializes registers of the UART module
according to the Peripheral Initialization settings.
Call this method in user code to initialize the module. By
default, the method is called by PE automatically; see "Call
Init method" property of the component for more details.
Parameters  : None
Returns     : Nothing
Method : UART0_Init ( component Init_UART ) Description : This method initializes registers of the UART module according to the Peripheral Initialization settings . Call this method in user code to initialize the module . By default the method is called by PE automatically ; see " Call Init method " property of the component for more details . Parameters : None Returns : Nothing
void UART0_Init(void)
{
  setReg8(MCF_UART0_UCR, 0x30U);                 
  setReg8(MCF_UART0_UCR, 0x20U);                 
  setReg8(MCF_UART0_UCR, 0x10U);                 
  setReg8(MCF_UART0_UACR, 0x00U);                
  setReg8(MCF_UART0_UIMR, 0x00U);                
  setReg8(MCF_UART0_UMR1, 0x13U);                
  setReg8(MCF_UART0_UBG1, 0x00U);                
  setReg8(MCF_UART0_UBG2, 0x82U);                
  setReg8(MCF_UART0_UCSR, 0xDDU);                
  setReg8(MCF_UART0_UMR2, 0x07U);                
  setReg8(MCF_UART0_UCR, 0x05U);                 
}
void UART0_Init ( void ) { setReg8 ( MCF_UART0_UCR , 0x30U ) ; setReg8 ( MCF_UART0_UCR , 0x20U ) ; setReg8 ( MCF_UART0_UCR , 0x10U ) ; setReg8 ( MCF_UART0_UACR , 0x00U ) ; setReg8 ( MCF_UART0_UIMR , 0x00U ) ; setReg8 ( MCF_UART0_UMR1 , 0x13U ) ; setReg8 ( MCF_UART0_UBG1 , 0x00U ) ; setReg8 ( MCF_UART0_UBG2 , 0x82U ) ; setReg8 ( MCF_UART0_UCSR , 0xDDU ) ; setReg8 ( MCF_UART0_UMR2 , 0x07U ) ; setReg8 ( MCF_UART0_UCR , 0x05U ) ; }
Method      :  UART0_Init (component Init_UART)
Description :
This method initializes registers of the UART module
according to the Peripheral Initialization settings.
Method : UART0_Init ( component Init_UART ) Description : This method initializes registers of the UART module according to the Peripheral Initialization settings .
/* UCR0: ??=0,MISC=3,TC=0,RC=0 */ /* UCR0: ??=0,MISC=2,TC=0,RC=0 */ /* UCR0: ??=0,MISC=1,TC=0,RC=0 */ /* UACR0: ??=0,??=0,??=0,??=0,??=0,??=0,??=0,IEC=0 */ /* UIMR0: COS=0,??=0,??=0,??=0,??=0,DB=0,FFULL_RXRDY=0,TXRDY=0 */ /* UMR10: RXRTS=0,RXIRQ=0,ERR=0,PM=2,PT=0,BC=3 */ /* UBG10: Divider_MSB=0 */ /* UBG20: Divider_LSB=0x82 */ /* UCSR0: RCS=0x0D,TCS=0x0D */ /* UMR20: CM=0,TXRTS=0,TXCTS=0,SB=7 */ /* UCR0: ??=0,MISC=0,TC=1,RC=1 */