Beispiel #1
0
/***********************************************************************************************************************
* Function Name: R_SAU0_Create
* Description  : This function initializes the SAU0 module.
* Arguments    : None
* Return Value : None
***********************************************************************************************************************/
void R_SAU0_Create(void)
{
    SAU0EN = 1U;    /* supply SAU0 clock */
    NOP();
    NOP();
    NOP();
    NOP();
    SPS0 = _0004_SAU_CK00_FCLK_4 | _0040_SAU_CK01_FCLK_4;
    R_UART1_Create();
}
Beispiel #2
0
/***********************************************************************************************************************
* Function Name: R_SAU0_Create
* Description  : This function initializes the SAU0 module.
* Arguments    : None
* Return Value : None
***********************************************************************************************************************/
void R_SAU0_Create(void)
{
    SAU0EN = 1U;    /* supply SAU0 clock */
    NOP();
    NOP();
    NOP();
    NOP();
    SPS0 = _0009_SAU_CK00_FCLK_9 | _0020_SAU_CK01_FCLK_2;
    R_UART0_Create();
    R_UART1_Create();
}
Beispiel #3
0
/***********************************************************************************************************************
* Function Name: R_Systeminit
* Description  : This function initializes every macro.
* Arguments    : None
* Return Value : None
***********************************************************************************************************************/
void R_Systeminit(void)
{
    PIOR = 0x00U;
    R_CGC_Get_ResetSource();
    R_PORT_Create();
    R_CGC_Create();
    R_TAU0_Create();
    R_TAU1_Create();
    DMAC0_Create();
    DMAC1_Create();
    DMAC2_Create();
    DMAC3_Create();
    R_INTC_Create();
    
    R_SAU0_Create();
    R_UART1_Create();
    
    CRC0CTL = 0x00U;
    IAWCTL = 0x00U;
}