Skip to content

Commit 603ccde

Browse files
CYFS3Rbb666
authored andcommitted
add ra2a1 drvices
1 parent 36b2991 commit 603ccde

File tree

1 file changed

+177
-0
lines changed

1 file changed

+177
-0
lines changed

bsp/renesas/ra2a1-ek/board/Kconfig

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,184 @@ menu "Hardware Drivers Config"
9696
default 0
9797
endif
9898
endif
99+
100+
menuconfig BSP_USING_SCI
101+
bool "Enable SCI Controller"
102+
default n
103+
config BSP_USING_SCIn_SPI
104+
bool
105+
depends on BSP_USING_SCI
106+
select RT_USING_SPI
107+
default n
99108

109+
config BSP_USING_SCIn_I2C
110+
bool
111+
depends on BSP_USING_SCI
112+
select RT_USING_I2C
113+
default n
114+
115+
config BSP_USING_SCIn_UART
116+
bool
117+
depends on BSP_USING_SCI
118+
select RT_USING_SERIAL
119+
select RT_USING_SERIAL_V2
120+
default n
121+
122+
if BSP_USING_SCI
123+
config BSP_USING_SCI0
124+
bool "Enable SCI0"
125+
default n
126+
if BSP_USING_SCI0
127+
choice
128+
prompt "choice sci mode"
129+
default BSP_USING_SCI0_SPI
130+
config BSP_USING_SCI0_SPI
131+
select BSP_USING_SCIn_SPI
132+
bool "SPI mode"
133+
config BSP_USING_SCI0_I2C
134+
select BSP_USING_SCIn_I2C
135+
bool "I2C mode"
136+
config BSP_USING_SCI0_UART
137+
select BSP_USING_SCIn_UART
138+
bool "UART mode"
139+
endchoice
140+
if BSP_USING_SCI0_UART
141+
config BSP_SCI0_UART_RX_BUFSIZE
142+
int "Set UART0 RX buffer size"
143+
range 64 65535
144+
depends on RT_USING_SERIAL_V2
145+
default 256
146+
147+
config BSP_SCI0_UART_TX_BUFSIZE
148+
int "Set UART0 TX buffer size"
149+
range 0 65535
150+
depends on RT_USING_SERIAL_V2
151+
default 0
152+
endif
153+
endif
154+
config BSP_USING_SCI1
155+
bool "Enable SCI1"
156+
default n
157+
if BSP_USING_SCI1
158+
choice
159+
prompt "choice sci mode"
160+
default BSP_USING_SCI1_SPI
161+
config BSP_USING_SCI1_SPI
162+
select BSP_USING_SCIn_SPI
163+
bool "SPI mode"
164+
config BSP_USING_SCI1_I2C
165+
select BSP_USING_SCIn_I2C
166+
bool "I2C mode"
167+
config BSP_USING_SCI1_UART
168+
select BSP_USING_SCIn_UART
169+
bool "UART mode"
170+
endchoice
171+
if BSP_USING_SCI1_UART
172+
config BSP_SCI1_UART_RX_BUFSIZE
173+
int "Set UART1 RX buffer size"
174+
range 64 65535
175+
depends on RT_USING_SERIAL_V2
176+
default 256
177+
178+
config BSP_SCI1_UART_TX_BUFSIZE
179+
int "Set UART1 TX buffer size"
180+
range 0 65535
181+
depends on RT_USING_SERIAL_V2
182+
default 0
183+
endif
184+
endif
185+
186+
config BSP_USING_SCI9
187+
bool "Enable SCI9"
188+
default n
189+
if BSP_USING_SCI9
190+
choice
191+
prompt "choice sci mode"
192+
default BSP_USING_SCI9_SPI
193+
config BSP_USING_SCI9_SPI
194+
select BSP_USING_SCIn_SPI
195+
bool "SPI mode"
196+
config BSP_USING_SCI9_I2C
197+
select BSP_USING_SCIn_I2C
198+
bool "I2C mode"
199+
config BSP_USING_SCI9_UART
200+
select BSP_USING_SCIn_UART
201+
bool "UART mode"
202+
endchoice
203+
if BSP_USING_SCI9_UART
204+
config BSP_SCI9_UART_RX_BUFSIZE
205+
int "Set UART9 RX buffer size"
206+
range 64 65535
207+
depends on RT_USING_SERIAL_V2
208+
default 256
209+
210+
config BSP_SCI9_UART_TX_BUFSIZE
211+
int "Set UART9 TX buffer size"
212+
range 0 65535
213+
depends on RT_USING_SERIAL_V2
214+
default 0
215+
endif
216+
endif
217+
endif
218+
219+
menuconfig BSP_USING_HW_I2C
220+
bool "Enable hardware I2C BUS"
221+
default n
222+
if BSP_USING_HW_I2C
223+
config BSP_USING_HW_I2C0
224+
bool "Enable Hardware I2C0 BUS"
225+
default n
226+
config BSP_USING_HW_I2C1
227+
bool "Enable Hardware I2C1 BUS"
228+
default n
229+
endif
230+
231+
menuconfig BSP_USING_PWM
232+
bool "Enable PWM"
233+
default n
234+
select RT_USING_PWM
235+
if BSP_USING_PWM
236+
config BSP_USING_PWM0
237+
bool "Enable GPT0 (32-Bits) output PWM"
238+
default n
239+
240+
config BSP_USING_PWM1
241+
bool "Enable GPT1 (32-Bits) output PWM"
242+
default n
243+
244+
config BSP_USING_PWM2
245+
bool "Enable GPT2 (32-Bits) output PWM"
246+
default n
247+
248+
config BSP_USING_PWM3
249+
bool "Enable GPT3 (32-Bits) output PWM"
250+
default n
251+
252+
config BSP_USING_PWM4
253+
bool "Enable GPT4 (32-Bits) output PWM"
254+
default n
255+
256+
config BSP_USING_PWM5
257+
bool "Enable GPT5 (32-Bits) output PWM"
258+
default n
259+
260+
config BSP_USING_PWM6
261+
bool "Enable GPT6 (32-Bits) output PWM"
262+
default n
263+
endif
264+
265+
menuconfig BSP_USING_SPI
266+
bool "Enable SPI BUS"
267+
default n
268+
select RT_USING_SPI
269+
if BSP_USING_SPI
270+
config BSP_USING_SPI0
271+
bool "Enable SPI0 BUS"
272+
default n
273+
config BSP_USING_SPI1
274+
bool "Enable SPI1 BUS"
275+
default n
276+
endif
100277
endmenu
101278

102279
menu "Board extended module Drivers"

0 commit comments

Comments
 (0)