forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
renesas-ra: Support changing baudrate for UART.
* Use R_SCI_UART_BaudCalculate() of fsp/src/r_sci_uart/r_sci_uart.c * Support UART.init(baudrate) Signed-off-by: Takeo Takahashi <takeo.takahashi.xv@renesas.com>
- Loading branch information
1 parent
713a451
commit 92c7532
Showing
3 changed files
with
50 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef R_SCI_UART_CFG_H_ | ||
#define R_SCI_UART_CFG_H_ | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#define SCI_UART_CFG_PARAM_CHECKING_ENABLE (BSP_CFG_PARAM_CHECKING_ENABLE) | ||
#define SCI_UART_CFG_FIFO_SUPPORT (0) | ||
#define SCI_UART_CFG_DTC_SUPPORTED (0) | ||
#define SCI_UART_CFG_FLOW_CONTROL_SUPPORT (0) | ||
#define SCI_UART_CFG_RS485_SUPPORT (0) | ||
|
||
/* | ||
* Disable r_sci_uart.c's interrupt handlers by defining followings | ||
* because the renesas-ra has own interrupt handlers for SCI and | ||
* symbol conflict happens. | ||
*/ | ||
|
||
#define SCI_UART_CFG_TX_ENABLE (0) | ||
#define SCI_UART_CFG_RX_ENABLE (0) | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
#endif /* R_SCI_UART_CFG_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters