Skip to content

Conversation

khoa-nguyen-18
Copy link
Contributor

Add support Renesas r_sci_b_spi

Initial support for SCI SPI of Renesas RA

Signed-off-by: Khoa Tran <[email protected]>
Add polling transfer support for SCI B SPI

Signed-off-by: Khoa Tran <[email protected]>
Copy link
Contributor

@thenguyenyf thenguyenyf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other files are identical with FSP 6.0.0

* function calls:
**********************************************************************************************************************/
fsp_err_t RP_SCI_B_SPI_WriteOneBytePolling (spi_ctrl_t * const p_api_ctrl,
const uint8_t tx_byte)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation should be updated

* function calls:
**********************************************************************************************************************/
fsp_err_t RP_SCI_B_SPI_ReadOneBytePolling (spi_ctrl_t * const p_api_ctrl,
uint8_t * p_rx_byte)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct the indentation

Comment on lines +154 to +155
while (!p_ctrl->p_reg->CSR_b.TEND) {
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nits: The register wait should be done by FSP_HARDWARE_REGISTER_WAIT

Suggested change
while (!p_ctrl->p_reg->CSR_b.TEND) {
}
FSP_HARDWARE_REGISTER_WAIT(p_ctrl->p_reg->CSR_b.TEND, 1)

* @return See @ref RENESAS_ERROR_CODES or functions called by this function for other possible return codes. This
* function calls:
**********************************************************************************************************************/
fsp_err_t RP_SCI_B_SPI_StartTransferPolling (spi_ctrl_t * const p_api_ctrl)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fsp_err_t RP_SCI_B_SPI_StartTransferPolling (spi_ctrl_t * const p_api_ctrl)
fsp_err_t RP_SCI_B_SPI_StartTransferPolling (spi_ctrl_t * const p_api_ctrl)

Please check and update similar cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants