Skip to content

Commit 64a9381

Browse files
authored
[bsp][renesas][ek-ra2a1]add AD\DA and Flash device (#10704)
add AD\DA and Flash device
1 parent 8a646c5 commit 64a9381

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

bsp/renesas/ra2a1-ek/board/Kconfig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ menu "Hardware Drivers Config"
219219
menuconfig BSP_USING_HW_I2C
220220
bool "Enable hardware I2C BUS"
221221
default n
222+
select RT_USING_I2C
222223
if BSP_USING_HW_I2C
223224
config BSP_USING_HW_I2C0
224225
bool "Enable Hardware I2C0 BUS"
@@ -274,6 +275,27 @@ menu "Hardware Drivers Config"
274275
bool "Enable SPI1 BUS"
275276
default n
276277
endif
278+
279+
menuconfig BSP_USING_ADC
280+
bool "Enable ADC"
281+
default n
282+
select RT_USING_ADC
283+
if BSP_USING_ADC
284+
config BSP_USING_ADC0
285+
bool "Enable ADC0"
286+
default n
287+
endif
288+
289+
menuconfig BSP_USING_DAC
290+
bool "Enable DAC"
291+
default n
292+
select RT_USING_DAC
293+
if BSP_USING_DAC
294+
config BSP_USING_DAC0
295+
bool "Enable DAC0"
296+
default n
297+
endif
298+
277299
endmenu
278300

279301
menu "Board extended module Drivers"
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (c) 2006-2024, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
* Date Author Notes
8+
* 2022-07-20 Sherman the first version
9+
*/
10+
#ifndef _FAL_CFG_H_
11+
#define _FAL_CFG_H_
12+
13+
#include "hal_data.h"
14+
15+
extern const struct fal_flash_dev _onchip_flash_lp;
16+
#define FLASH_START_ADDRESS 0x00000000
17+
/* flash device table */
18+
#define FAL_FLASH_DEV_TABLE \
19+
{ \
20+
&_onchip_flash_lp, \
21+
}
22+
/* ====================== Partition Configuration ========================== */
23+
#ifdef FAL_PART_HAS_TABLE_CFG
24+
/** partition table, The chip flash partition is defined in "\ra\fsp\src\bsp\mcu\ra6m4\bsp_feature.h".
25+
* More details can be found in the RA6M4 Group User Manual: Hardware section 47 Flash memory.*/
26+
#define FAL_PART_TABLE \
27+
{ \
28+
{FAL_PART_MAGIC_WROD, "app", "onchip_flash_lp", 128*1024, 128*1024, 0}, \
29+
}
30+
#endif /* FAL_PART_HAS_TABLE_CFG */
31+
#endif /* _FAL_CFG_H_ */
32+

0 commit comments

Comments
 (0)