-
Notifications
You must be signed in to change notification settings - Fork 19
hal: renesas: ra: Add support Renesas r_sci_b_spi #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
hal: renesas: ra: Add support Renesas r_sci_b_spi #133
Conversation
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]>
There was a problem hiding this 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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct the indentation
while (!p_ctrl->p_reg->CSR_b.TEND) { | ||
} |
There was a problem hiding this comment.
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
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
Add support Renesas r_sci_b_spi