Skip to content

Commit cb4a370

Browse files
authored
[bsp/xuantie] 添加bsp导入rt-studio相关文件 (#10728)
* [fix] 更新e906的以BSP导入RT-Studio相关文件
1 parent 36393c6 commit cb4a370

Some content is hidden

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

60 files changed

+9269
-70
lines changed

bsp/xuantie/smartl/e902/.cproject

Lines changed: 928 additions & 0 deletions
Large diffs are not rendered by default.

bsp/xuantie/smartl/e902/.project

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>project</name>
4+
<comment />
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
10+
<triggers>clean,full,incremental,</triggers>
11+
<arguments>
12+
</arguments>
13+
</buildCommand>
14+
<buildCommand>
15+
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
16+
<triggers>full,incremental,</triggers>
17+
<arguments>
18+
</arguments>
19+
</buildCommand>
20+
</buildSpec>
21+
<natures>
22+
<nature>org.eclipse.cdt.core.cnature</nature>
23+
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
24+
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
25+
</natures>
26+
<linkedResources />
27+
</projectDescription>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
content-types/enabled=true
2+
content-types/org.eclipse.cdt.core.asmSource/file-extensions=s
3+
eclipse.preferences.version=1
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#RT-Thread Studio Project Configuration
2+
# Mon Sep 22 13:30:04 2025
3+
cfg_version=v3.0
4+
5+
board_name=
6+
bsp_version=
7+
bsp_path=
8+
chip_name=
9+
project_base_rtt_bsp=true
10+
is_use_scons_build=true
11+
hardware_adapter=
12+
selected_rtt_version=latest
13+
board_base_nano_proj=false
14+
is_base_example_project=false
15+
example_name=
16+
project_type=rt-thread
17+
os_branch=master
18+
os_version=latest
19+
project_name=project
20+
output_project_path=E:\rt-thread\bsp\xuantie\smartl\e902

bsp/xuantie/smartl/e902/Kconfig

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
11
mainmenu "RT-Thread Configuration"
22

3-
BSP_DIR := .
3+
config BSP_DIR
4+
string
5+
option env="BSP_ROOT"
6+
default "."
47

5-
RTT_DIR := ../../../..
8+
config RTT_DIR
9+
string
10+
option env="RTT_ROOT"
11+
default "rt-thread"
612

7-
PKGS_DIR := packages
13+
# you can change the RTT_ROOT default "rt-thread"
14+
# example : default "F:/git_repositories/rt-thread"
15+
16+
config PKGS_DIR
17+
string
18+
option env="PKGS_ROOT"
19+
default "packages"
20+
21+
config ENV_DIR
22+
string
23+
option env="ENV_ROOT"
24+
default "/"
825

926
config XUANTIAN_SMARTL_E902
1027
bool
@@ -13,6 +30,6 @@ config XUANTIAN_SMARTL_E902
1330
select RT_USING_USER_MAIN
1431
default y
1532

16-
source "$(RTT_DIR)/Kconfig"
17-
osource "$PKGS_DIR/Kconfig"
18-
rsource "board/Kconfig"
33+
source "$RTT_DIR/Kconfig"
34+
source "$PKGS_DIR/Kconfig"
35+
source "$BSP_DIR/board/Kconfig"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
#ifndef RTCONFIG_PREINC_H__
3+
#define RTCONFIG_PREINC_H__
4+
5+
/* Automatically generated file; DO NOT EDIT. */
6+
/* RT-Thread pre-include file */
7+
8+
#define CLI_CONFIG_STACK_SIZE 4096
9+
#define CONFIG_ARCH_INTERRUPTSTACK 4096
10+
#define CONFIG_ARCH_MAINSTACK 4096
11+
#define CONFIG_BOARD_SMARTL_EVB 1
12+
#define CONFIG_CPU_XUANTIE_E902 1
13+
#define CONFIG_CSI "csi2"
14+
#define CONFIG_CSI_V2 1
15+
#define CONFIG_KERNEL_RTTHREAD 1
16+
#define CONFIG_SUPPORT_IRQ_NESTED 0
17+
#define CONFIG_SUPPORT_TSPEND 0
18+
#define CONFIG_XIP 1
19+
#define RT_USING_LIBC
20+
#define RT_USING_NEWLIBC
21+
#define _POSIX_C_SOURCE 1
22+
#define __RTTHREAD__
23+
#define __RT_KERNEL_SOURCE__ 1
24+
#define _REENT_SMALL
25+
26+
#endif /*RTCONFIG_PREINC_H__*/
27+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
content-types/enabled=true
2+
content-types/org.eclipse.cdt.core.asmSource/file-extensions=s
3+
eclipse.preferences.version=1
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#RT-Thread Studio Project Configuration
2+
# Fri Sep 19 10:14:02 2025
3+
cfg_version=v3.0
4+
5+
board_name=
6+
bsp_version=
7+
bsp_path=
8+
chip_name=
9+
project_base_rtt_bsp=true
10+
is_use_scons_build=true
11+
hardware_adapter=
12+
selected_rtt_version=latest
13+
board_base_nano_proj=false
14+
is_base_example_project=false
15+
example_name=
16+
project_type=rt-thread
17+
os_branch=master
18+
os_version=latest
19+
project_name=project
20+
output_project_path=E:\rt-thread\bsp\xuantie\smartl\e906

bsp/xuantie/smartl/e906/Kconfig

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
11
mainmenu "RT-Thread Configuration"
22

3-
BSP_DIR := .
3+
config BSP_DIR
4+
string
5+
option env="BSP_ROOT"
6+
default "."
47

5-
RTT_DIR := ../../../..
8+
config RTT_DIR
9+
string
10+
option env="RTT_ROOT"
11+
default "rt-thread"
612

7-
PKGS_DIR := packages
13+
# you can change the RTT_ROOT default "rt-thread"
14+
# example : default "F:/git_repositories/rt-thread"
15+
16+
config PKGS_DIR
17+
string
18+
option env="PKGS_ROOT"
19+
default "packages"
20+
21+
config ENV_DIR
22+
string
23+
option env="ENV_ROOT"
24+
default "/"
825

926
config XUANTIAN_SMARTL_E906
1027
bool
@@ -13,6 +30,6 @@ config XUANTIAN_SMARTL_E906
1330
select RT_USING_USER_MAIN
1431
default y
1532

16-
source "$(RTT_DIR)/Kconfig"
17-
osource "$PKGS_DIR/Kconfig"
18-
rsource "board/Kconfig"
33+
source "$RTT_DIR/Kconfig"
34+
source "$PKGS_DIR/Kconfig"
35+
source "$BSP_DIR/board/Kconfig"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
#ifndef RTCONFIG_PREINC_H__
3+
#define RTCONFIG_PREINC_H__
4+
5+
/* Automatically generated file; DO NOT EDIT. */
6+
/* RT-Thread pre-include file */
7+
8+
#define CLI_CONFIG_STACK_SIZE 4096
9+
#define CONFIG_ARCH_INTERRUPTSTACK 4096
10+
#define CONFIG_ARCH_MAINSTACK 4096
11+
#define CONFIG_BOARD_SMARTL_EVB 1
12+
#define CONFIG_CPU_XUANTIE_E906FD 1
13+
#define CONFIG_CSI "csi2"
14+
#define CONFIG_CSI_V2 1
15+
#define CONFIG_KERNEL_RTTHREAD 1
16+
#define CONFIG_SUPPORT_IRQ_NESTED 0
17+
#define CONFIG_SUPPORT_TSPEND 0
18+
#define CONFIG_XIP 1
19+
#define RT_USING_LIBC
20+
#define RT_USING_NEWLIBC
21+
#define _POSIX_C_SOURCE 1
22+
#define __RTTHREAD__
23+
#define __RT_KERNEL_SOURCE__ 1
24+
#define _REENT_SMALL
25+
26+
#endif /*RTCONFIG_PREINC_H__*/
27+

0 commit comments

Comments
 (0)