Skip to content

Commit 98307ae

Browse files
committed
[bsp][renesas]add EK-RA2E2 sci_uart support
1 parent 98cb15a commit 98307ae

File tree

166 files changed

+100924
-34
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+100924
-34
lines changed

bsp/renesas/libraries/HAL_Drivers/drivers/config/drv_config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ extern "C"
8585
#endif
8686
#endif /* SOC_SERIES_R7FA6M4 */
8787

88+
#ifdef SOC_SERIES_R7FA2E2
89+
#include "ra2e2/uart_config.h"
90+
#endif /* SOC_SERIES_R7FA2E2 */
91+
8892
#ifdef SOC_SERIES_R7FA2L1
8993
#include "ra2l1/uart_config.h"
9094

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2006-2025, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
* Date Author Notes
8+
* 2021-07-29 KyleChan first version
9+
*/
10+
11+
#ifndef __UART_CONFIG_H__
12+
#define __UART_CONFIG_H__
13+
14+
#include <rtthread.h>
15+
#include "hal_data.h"
16+
17+
#ifdef __cplusplus
18+
extern "C" {
19+
#endif
20+
21+
#if defined(BSP_USING_UART9)
22+
#ifndef UART9_CONFIG
23+
#define UART9_CONFIG \
24+
{ \
25+
.name = "uart9", \
26+
.p_api_ctrl = &g_uart9_ctrl, \
27+
.p_cfg = &g_uart9_cfg, \
28+
}
29+
#endif /* UART9_CONFIG */
30+
#endif /* BSP_USING_UART9 */
31+
32+
#ifdef __cplusplus
33+
}
34+
#endif
35+
36+
#endif

bsp/renesas/libraries/Kconfig

Lines changed: 6 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ config SOC_SERIES_R7FA6M4
1919
select SOC_FAMILY_RENESAS_RA
2020
default n
2121

22+
config SOC_SERIES_R7FA2E2
23+
bool
24+
select ARCH_ARM_CORTEX_M23
25+
select SOC_FAMILY_RENESAS_RA
26+
default n
27+
2228
config SOC_SERIES_R7FA2L1
2329
bool
2430
select ARCH_ARM_CORTEX_M23
@@ -60,37 +66,3 @@ config SOC_SERIES_R7FA6E2
6066
select ARCH_ARM_CORTEX_M33
6167
select SOC_FAMILY_RENESAS_RA
6268
default n
63-
64-
config SOC_SERIES_R7FA2A1
65-
bool
66-
select ARCH_ARM_CORTEX_M23
67-
select SOC_FAMILY_RENESAS_RA
68-
default n
69-
70-
if RT_USING_NANO
71-
choice
72-
prompt "Choice nano console device(Renesas)"
73-
default RT_NANO_CONSOLE_UART0
74-
depends on RT_USING_CONSOLE
75-
config RT_NANO_CONSOLE_UART0
76-
bool "UART0"
77-
config RT_NANO_CONSOLE_UART1
78-
bool "UART1"
79-
config RT_NANO_CONSOLE_UART2
80-
bool "UART2"
81-
config RT_NANO_CONSOLE_UART3
82-
bool "UART3"
83-
config RT_NANO_CONSOLE_UART4
84-
bool "UART4"
85-
config RT_NANO_CONSOLE_UART5
86-
bool "UART5"
87-
config RT_NANO_CONSOLE_UART6
88-
bool "UART6"
89-
config RT_NANO_CONSOLE_UART7
90-
bool "UART7"
91-
config RT_NANO_CONSOLE_UART8
92-
bool "UART8"
93-
config RT_NANO_CONSOLE_UART9
94-
bool "UART9"
95-
endchoice
96-
endif

bsp/renesas/ra2e2-ek/.api_xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<ddscApi/>

0 commit comments

Comments
 (0)