Skip to content

Commit 6da8904

Browse files
committed
[add] 添加c908导入rt-studio的配置
1 parent 9c4c348 commit 6da8904

File tree

6 files changed

+997
-1
lines changed

6 files changed

+997
-1
lines changed

bsp/xuantie/xiaohui/c908/.cproject

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

bsp/xuantie/xiaohui/c908/.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 18:49:19 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\xiaohui\c908

bsp/xuantie/xiaohui/c908/rtconfig.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
MCPU_DEFINE = ' -DCONFIG_CPU_XUANTIE_C908V=1 ' # Modify here based on CPU architecture.
4747
DEVICE = MCPU + MCPU_DEFINE + ' -Wno-main -mcmodel=medany -MP -MMD '
4848

49-
# 提取全局宏定义
5049
GLOBAL_DEFINES = (
5150
' -DCONFIG_KERNEL_RTTHREAD=1 '
5251
' -D__RT_KERNEL_SOURCE__=1 '
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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 8192
9+
#define CONFIG_APP_TASK_STACK_SIZE 8192
10+
#define CONFIG_ARCH_INTERRUPTSTACK 8192
11+
#define CONFIG_ARCH_MAINSTACK 8192
12+
#define CONFIG_BOARD_XIAOHUI_EVB 1
13+
#define CONFIG_CLIC_BASE 201392128
14+
#define CONFIG_CPU_XUANTIE_C908V 1
15+
#define CONFIG_CSI "csi2"
16+
#define CONFIG_CSI_V2 1
17+
#define CONFIG_DEBUG 1
18+
#define CONFIG_FPP_ENABLE 0
19+
#define CONFIG_INIT_TASK_STACK_SIZE 8192
20+
#define CONFIG_INTC_CLIC_PLIC 1
21+
#define CONFIG_KERNEL_RTTHREAD 1
22+
#define CONFIG_PLIC_BASE 134217728
23+
#define CONFIG_SUPPORT_IRQ_NESTED 0
24+
#define CONFIG_SUPPORT_TSPEND 0
25+
#define CONFIG_SYSTICK_HZ 100
26+
#define CONFIG_VIC_TSPDR 201326592
27+
#define CONFIG_XIP 1
28+
#define RT_USING_LIBC
29+
#define RT_USING_NEWLIBC
30+
#define _POSIX_C_SOURCE 1
31+
#define __RTTHREAD__
32+
#define __RT_KERNEL_SOURCE__ 1
33+
#define _REENT_SMALL
34+
35+
#endif /*RTCONFIG_PREINC_H__*/

0 commit comments

Comments
 (0)