Skip to content

Commit

Permalink
Update drv_sci.c
Browse files Browse the repository at this point in the history
fix a register problem for R9A07 series chips
  • Loading branch information
newflydd authored Jan 9, 2025
1 parent 8ff6dbc commit 6aa5b72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bsp/renesas/libraries/HAL_Drivers/drv_sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,11 @@ static int ra_uart_putc(struct rt_serial_device *serial, char c)
sci_uart_instance_ctrl_t *p_ctrl = (sci_uart_instance_ctrl_t *)param->sci_ctrl;

p_ctrl->p_reg->TDR = c;
#ifdef SOC_SERIES_R9A07G0
while ((p_ctrl->p_reg->CSR_b.TEND) == 0);
#else
while ((p_ctrl->p_reg->SSR_b.TEND) == 0);
#endif

return RT_EOK;
}
Expand Down

0 comments on commit 6aa5b72

Please sign in to comment.