Skip to content

Commit fa5ec3c

Browse files
committed
bsp: all Renesas bsp support the nano one-click switch.
1 parent 0b14a54 commit fa5ec3c

File tree

166 files changed

+1269
-491
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

+1269
-491
lines changed

bsp/renesas/ebf_qi_min_6m5/.config

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
CONFIG_SOC_R7FA6M5BH=y
12

23
#
34
# RT-Thread Kernel
@@ -210,6 +211,7 @@ CONFIG_FINSH_THREAD_PRIORITY=20
210211
CONFIG_FINSH_THREAD_STACK_SIZE=4096
211212
CONFIG_FINSH_USING_HISTORY=y
212213
CONFIG_FINSH_HISTORY_LINES=5
214+
# CONFIG_FINSH_USING_WORD_OPERATION is not set
213215
CONFIG_FINSH_USING_SYMTAB=y
214216
CONFIG_FINSH_CMD_SIZE=80
215217
CONFIG_MSH_USING_BUILT_IN_COMMANDS=y
@@ -387,6 +389,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
387389
# CONFIG_PKG_USING_FREEMODBUS is not set
388390
# CONFIG_PKG_USING_NANOPB is not set
389391
# CONFIG_PKG_USING_WIFI_HOST_DRIVER is not set
392+
# CONFIG_PKG_USING_ESP_HOSTED is not set
390393

391394
#
392395
# Wi-Fi
@@ -494,6 +497,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
494497
# CONFIG_PKG_USING_QMODBUS is not set
495498
# CONFIG_PKG_USING_PNET is not set
496499
# CONFIG_PKG_USING_OPENER is not set
500+
# CONFIG_PKG_USING_FREEMQTT is not set
497501
# end of IoT - internet of things
498502

499503
#
@@ -721,6 +725,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
721725
# CONFIG_PKG_USING_RMP is not set
722726
# CONFIG_PKG_USING_R_RHEALSTONE is not set
723727
# CONFIG_PKG_USING_HEARTBEAT is not set
728+
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
724729
# end of system packages
725730

726731
#
@@ -844,6 +849,8 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
844849
#
845850
# HC32 DDL Drivers
846851
#
852+
# CONFIG_PKG_USING_HC32F4_CMSIS_DRIVER is not set
853+
# CONFIG_PKG_USING_HC32F4_SERIES_DRIVER is not set
847854
# end of HC32 DDL Drivers
848855

849856
#
@@ -857,6 +864,21 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
857864
# CONFIG_PKG_USING_NXP_IMX6UL_DRIVER is not set
858865
# CONFIG_PKG_USING_NXP_IMXRT_DRIVER is not set
859866
# end of NXP HAL & SDK Drivers
867+
868+
#
869+
# NUVOTON Drivers
870+
#
871+
# CONFIG_PKG_USING_NUVOTON_CMSIS_DRIVER is not set
872+
# CONFIG_PKG_USING_NUVOTON_SERIES_DRIVER is not set
873+
# CONFIG_PKG_USING_NUVOTON_ARM926_LIB is not set
874+
# end of NUVOTON Drivers
875+
876+
#
877+
# GD32 Drivers
878+
#
879+
# CONFIG_PKG_USING_GD32_ARM_CMSIS_DRIVER is not set
880+
# CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER is not set
881+
# end of GD32 Drivers
860882
# end of HAL & SDK Drivers
861883

862884
#
@@ -1374,7 +1396,6 @@ CONFIG_SOC_SERIES_R7FA6M5=y
13741396
#
13751397
# Hardware Drivers Config
13761398
#
1377-
CONFIG_SOC_R7FA6M5BH=y
13781399

13791400
#
13801401
# Onboard Peripheral Drivers
@@ -1395,7 +1416,6 @@ CONFIG_BSP_USING_UART4=y
13951416
CONFIG_BSP_UART4_RX_BUFSIZE=256
13961417
CONFIG_BSP_UART4_TX_BUFSIZE=0
13971418
# CONFIG_BSP_USING_HW_I2C is not set
1398-
# CONFIG_BSP_USING_SOFT_I2C is not set
13991419
# CONFIG_BSP_USING_SPI is not set
14001420
# CONFIG_BSP_USING_SCI is not set
14011421
# CONFIG_BSP_USING_ADC is not set

bsp/renesas/ebf_qi_min_6m5/Kconfig

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,17 @@ PKGS_DIR := packages
1111

1212
ENV_DIR := /
1313

14+
config SOC_R7FA6M5BH
15+
bool
16+
select SOC_SERIES_R7FA6M5
17+
select RT_USING_COMPONENTS_INIT
18+
select RT_USING_USER_MAIN
19+
default y
20+
1421
source "$(RTT_DIR)/Kconfig"
1522
osource "$PKGS_DIR/Kconfig"
1623
rsource "../libraries/Kconfig"
17-
source "$(BSP_DIR)/board/Kconfig"
24+
25+
if !RT_USING_NANO
26+
rsource "$(BSP_DIR)/board/Kconfig"
27+
endif

bsp/renesas/ebf_qi_min_6m5/board/Kconfig

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
menu "Hardware Drivers Config"
22

3-
config SOC_R7FA6M5BH
4-
bool
5-
select SOC_SERIES_R7FA6M5
6-
select RT_USING_COMPONENTS_INIT
7-
select RT_USING_USER_MAIN
8-
default y
9-
103
menu "Onboard Peripheral Drivers"
114

125
endmenu
136

147
menu "On-chip Peripheral Drivers"
158

16-
rsource "../../libraries/HAL_Drivers/Kconfig"
9+
rsource "../../libraries/HAL_Drivers/drivers/Kconfig"
1710

1811
menuconfig BSP_USING_UART
1912
bool "Enable UART"
@@ -89,30 +82,6 @@ menu "Hardware Drivers Config"
8982
default n
9083
endif
9184

92-
menuconfig BSP_USING_SOFT_I2C
93-
bool "Enable software I2C bus"
94-
select RT_USING_I2C
95-
select RT_USING_I2C_BITOPS
96-
select RT_USING_PIN
97-
default n
98-
if BSP_USING_SOFT_I2C
99-
config BSP_USING_SOFT_I2C
100-
menuconfig BSP_USING_I2C1
101-
bool "Enable I2C1 Bus (software simulation)"
102-
default n
103-
if BSP_USING_I2C1
104-
comment "Please refer to the 'bsp_io.h' file to configure the pins"
105-
config BSP_I2C1_SCL_PIN
106-
hex "i2c1 scl pin number (hex)"
107-
range 0x0000 0xFFFF
108-
default 0x050C
109-
config BSP_I2C1_SDA_PIN
110-
hex "i2c1 sda pin number (hex)"
111-
range 0x0000 0xFFFF
112-
default 0x050B
113-
endif
114-
endif
115-
11685
menuconfig BSP_USING_SPI
11786
bool "Enable SPI BUS"
11887
default n

bsp/renesas/ebf_qi_min_6m5/rtconfig.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef RT_CONFIG_H__
22
#define RT_CONFIG_H__
33

4+
#define SOC_R7FA6M5BH
5+
46
/* RT-Thread Kernel */
57

68
/* klibc options */
@@ -308,6 +310,14 @@
308310
/* NXP HAL & SDK Drivers */
309311

310312
/* end of NXP HAL & SDK Drivers */
313+
314+
/* NUVOTON Drivers */
315+
316+
/* end of NUVOTON Drivers */
317+
318+
/* GD32 Drivers */
319+
320+
/* end of GD32 Drivers */
311321
/* end of HAL & SDK Drivers */
312322

313323
/* sensors drivers */
@@ -392,8 +402,6 @@
392402

393403
/* Hardware Drivers Config */
394404

395-
#define SOC_R7FA6M5BH
396-
397405
/* Onboard Peripheral Drivers */
398406

399407
/* On-chip Peripheral Drivers */

bsp/renesas/ebf_qi_min_6m5/src/hal_entry.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010

1111
#include <rtthread.h>
1212
#include "hal_data.h"
13+
#ifdef RT_USING_NANO
14+
#include <drv_gpio.h>
15+
#else
1316
#include <rtdevice.h>
17+
#endif /* RT_USING_NANO */
1418

1519
#define LED_PIN BSP_IO_PORT_04_PIN_00 /* RED LED pins */
1620

Lines changed: 9 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,18 @@
11
Import('RTT_ROOT')
22
Import('rtconfig')
33
from building import *
4+
import os
45

56
cwd = GetCurrentDir()
7+
group = []
8+
src = ['drv_common.c']
9+
path = [cwd]
610

7-
# add the general drivers.
8-
src = Split("""
9-
drv_common.c
10-
""")
11+
if GetDepend(['RT_USING_NANO']):
12+
group = group + SConscript(os.path.join(cwd, 'nano', 'SConscript'))
13+
else:
14+
group = group + SConscript(os.path.join(cwd, 'drivers', 'SConscript'))
1115

12-
if GetDepend(['BSP_USING_UART']):
13-
if GetDepend(['RT_USING_SERIAL_V2']):
14-
src += ['drv_usart_v2.c']
15-
else:
16-
print("\nThe current project does not support serial-v1\n")
17-
Return('group')
18-
19-
if GetDepend(['BSP_USING_GPIO']):
20-
src += ['drv_gpio.c']
21-
22-
if GetDepend(['BSP_USING_WDT']):
23-
src += ['drv_wdt.c']
24-
25-
if GetDepend(['BSP_USING_ONCHIP_RTC']):
26-
src += ['drv_rtc.c']
27-
28-
if GetDepend(['BSP_USING_HW_I2C']):
29-
src += ['drv_i2c.c']
30-
31-
if GetDepend(['BSP_USING_SPI']):
32-
src += ['drv_spi.c']
33-
34-
if GetDepend(['BSP_USING_SOFT_SPI']):
35-
src += ['drv_soft_spi.c']
36-
37-
if GetDepend(['BSP_USING_SCI']):
38-
src += ['drv_sci.c']
39-
40-
if GetDepend(['BSP_USING_ADC']):
41-
src += ['drv_adc.c']
42-
43-
if GetDepend(['BSP_USING_DAC']):
44-
src += ['drv_dac.c']
45-
46-
if GetDepend(['BSP_USING_ONCHIP_FLASH']):
47-
src += ['drv_flash.c']
48-
49-
if GetDepend(['BSP_USING_PWM']):
50-
src += ['drv_pwm.c']
51-
52-
if GetDepend(['BSP_USING_TIM']):
53-
src += ['drv_hwtimer.c']
54-
55-
if GetDepend(['BSP_USING_ETH']):
56-
src += ['drv_eth.c']
57-
58-
if GetDepend(['BSP_USING_CAN']) or GetDepend('BSP_USING_CANFD'):
59-
src += ['drv_can.c']
60-
61-
if GetDepend(['BSP_USING_SDHI']):
62-
src += ['drv_sdhi.c']
63-
64-
if GetDepend(['BSP_USING_LCD']):
65-
src += ['drv_lcd.c']
66-
67-
path = [cwd]
68-
path += [cwd + '/config']
69-
70-
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
16+
group = group + DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
7117

7218
Return('group')
File renamed without changes.
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
Import('RTT_ROOT')
2+
Import('rtconfig')
3+
from building import *
4+
5+
cwd = GetCurrentDir()
6+
7+
# add the general drivers.
8+
src = []
9+
10+
if GetDepend(['BSP_USING_UART']):
11+
if GetDepend(['RT_USING_SERIAL_V2']):
12+
src += ['drv_usart_v2.c']
13+
else:
14+
print("\nThe current project does not support serial-v1\n")
15+
Return('group')
16+
17+
if GetDepend(['BSP_USING_GPIO']):
18+
src += ['drv_gpio.c']
19+
20+
if GetDepend(['BSP_USING_WDT']):
21+
src += ['drv_wdt.c']
22+
23+
if GetDepend(['BSP_USING_ONCHIP_RTC']):
24+
src += ['drv_rtc.c']
25+
26+
if GetDepend(['BSP_USING_HW_I2C']):
27+
src += ['drv_i2c.c']
28+
29+
if GetDepend(['BSP_USING_SPI']):
30+
src += ['drv_spi.c']
31+
32+
if GetDepend(['BSP_USING_SOFT_SPI']):
33+
src += ['drv_soft_spi.c']
34+
35+
if GetDepend(['BSP_USING_SCI']):
36+
src += ['drv_sci.c']
37+
38+
if GetDepend(['BSP_USING_ADC']):
39+
src += ['drv_adc.c']
40+
41+
if GetDepend(['BSP_USING_DAC']):
42+
src += ['drv_dac.c']
43+
44+
if GetDepend(['BSP_USING_ONCHIP_FLASH']):
45+
src += ['drv_flash.c']
46+
47+
if GetDepend(['BSP_USING_PWM']):
48+
src += ['drv_pwm.c']
49+
50+
if GetDepend(['BSP_USING_TIM']):
51+
src += ['drv_hwtimer.c']
52+
53+
if GetDepend(['BSP_USING_ETH']):
54+
src += ['drv_eth.c']
55+
56+
if GetDepend(['BSP_USING_CAN']) or GetDepend('BSP_USING_CANFD'):
57+
src += ['drv_can.c']
58+
59+
if GetDepend(['BSP_USING_SDHI']):
60+
src += ['drv_sdhi.c']
61+
62+
if GetDepend(['BSP_USING_LCD']):
63+
src += ['drv_lcd.c']
64+
65+
path = [cwd]
66+
path += [cwd + '/config']
67+
68+
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
69+
70+
Return('group')

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

File renamed without changes.

bsp/renesas/libraries/HAL_Drivers/config/ra2l1/adc_config.h renamed to bsp/renesas/libraries/HAL_Drivers/drivers/config/ra2l1/adc_config.h

File renamed without changes.

0 commit comments

Comments
 (0)