void SPI_Init() { IO_Reset(); R_SAU0_Create(); R_CSI10_Create(); R_CSI10_Start(); }
/*********************************************************************************************************************** * 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 = _0000_SAU_CK00_FCLK_0 | _0000_SAU_CK01_FCLK_0; R_CSI10_Create(); }
/* **----------------------------------------------------------------------------- ** ** Abstract: ** This function initializes the SAU0 module. ** ** Parameters: ** None ** ** Returns: ** None ** **----------------------------------------------------------------------------- */ void R_SAU0_Create(void) { SAU0EN = 1U; /* supply SAU0 clock */ NOP(); NOP(); NOP(); NOP(); SPS0 = _0004_SAU_CK00_FCLK_4 | _0090_SAU_CK01_FCLK_9; R_UART0_Create(); R_CSI10_Create(); }