From 35f0d25e31f9d5e7e5e06a9ac1dd38ac91b12537 Mon Sep 17 00:00:00 2001 From: MuChenger Date: Mon, 22 Sep 2025 13:26:12 +0800 Subject: [PATCH 01/12] =?UTF-8?q?[fix]=20=E6=9B=B4=E6=96=B0e906=E7=9A=84?= =?UTF-8?q?=E4=BB=A5BSP=E5=AF=BC=E5=85=A5RT-Studio=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.settings/org.eclipse.core.runtime.prefs | 3 ++ bsp/xuantie/smartl/e906/.settings/projcfg.ini | 20 +++++++++++++ bsp/xuantie/smartl/e906/Kconfig | 29 +++++++++++++++---- bsp/xuantie/smartl/e906/rtconfig_preinc.h | 26 +++++++++++++++++ 4 files changed, 72 insertions(+), 6 deletions(-) create mode 100644 bsp/xuantie/smartl/e906/.settings/org.eclipse.core.runtime.prefs create mode 100644 bsp/xuantie/smartl/e906/.settings/projcfg.ini create mode 100644 bsp/xuantie/smartl/e906/rtconfig_preinc.h diff --git a/bsp/xuantie/smartl/e906/.settings/org.eclipse.core.runtime.prefs b/bsp/xuantie/smartl/e906/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 00000000000..9f1acfcfba2 --- /dev/null +++ b/bsp/xuantie/smartl/e906/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,3 @@ +content-types/enabled=true +content-types/org.eclipse.cdt.core.asmSource/file-extensions=s +eclipse.preferences.version=1 \ No newline at end of file diff --git a/bsp/xuantie/smartl/e906/.settings/projcfg.ini b/bsp/xuantie/smartl/e906/.settings/projcfg.ini new file mode 100644 index 00000000000..adb75f76a1c --- /dev/null +++ b/bsp/xuantie/smartl/e906/.settings/projcfg.ini @@ -0,0 +1,20 @@ +#RT-Thread Studio Project Configuration +# Fri Sep 19 10:14:02 2025 +cfg_version=v3.0 + +board_name= +bsp_version= +bsp_path= +chip_name= +project_base_rtt_bsp=true +is_use_scons_build=true +hardware_adapter= +selected_rtt_version=latest +board_base_nano_proj=false +is_base_example_project=false +example_name= +project_type=rt-thread +os_branch=master +os_version=latest +project_name=project +output_project_path=E:\rt-thread\bsp\xuantie\smartl\e906 \ No newline at end of file diff --git a/bsp/xuantie/smartl/e906/Kconfig b/bsp/xuantie/smartl/e906/Kconfig index be399204b6e..8fe8e876e98 100644 --- a/bsp/xuantie/smartl/e906/Kconfig +++ b/bsp/xuantie/smartl/e906/Kconfig @@ -1,10 +1,27 @@ mainmenu "RT-Thread Configuration" -BSP_DIR := . +config BSP_DIR + string + option env="BSP_ROOT" + default "." -RTT_DIR := ../../../.. +config RTT_DIR + string + option env="RTT_ROOT" + default "rt-thread" -PKGS_DIR := packages +# you can change the RTT_ROOT default "rt-thread" +# example : default "F:/git_repositories/rt-thread" + +config PKGS_DIR + string + option env="PKGS_ROOT" + default "packages" + +config ENV_DIR + string + option env="ENV_ROOT" + default "/" config XUANTIAN_SMARTL_E906 bool @@ -13,6 +30,6 @@ config XUANTIAN_SMARTL_E906 select RT_USING_USER_MAIN default y -source "$(RTT_DIR)/Kconfig" -osource "$PKGS_DIR/Kconfig" -rsource "board/Kconfig" +source "$RTT_DIR/Kconfig" +source "$PKGS_DIR/Kconfig" +source "$BSP_DIR/board/Kconfig" diff --git a/bsp/xuantie/smartl/e906/rtconfig_preinc.h b/bsp/xuantie/smartl/e906/rtconfig_preinc.h new file mode 100644 index 00000000000..b3b35d3976a --- /dev/null +++ b/bsp/xuantie/smartl/e906/rtconfig_preinc.h @@ -0,0 +1,26 @@ + +#ifndef RTCONFIG_PREINC_H__ +#define RTCONFIG_PREINC_H__ + +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread pre-include file */ + +#define CLI_CONFIG_STACK_SIZE 4096 +#define CONFIG_ARCH_INTERRUPTSTACK 4096 +#define CONFIG_ARCH_MAINSTACK 4096 +#define CONFIG_BOARD_SMARTL_EVB 1 +#define CONFIG_CPU_XUANTIE_E906FD 1 +#define CONFIG_CSI "csi2" +#define CONFIG_CSI_V2 1 +#define CONFIG_KERNEL_RTTHREAD 1 +#define CONFIG_SUPPORT_IRQ_NESTED 0 +#define CONFIG_SUPPORT_TSPEND 0 +#define CONFIG_XIP 1 +#define RT_USING_LIBC +#define RT_USING_NEWLIBC +#define _POSIX_C_SOURCE 1 +#define __RTTHREAD__ +#define __RT_KERNEL_SOURCE__ 1 +#define _REENT_SMALL + +#endif /*RTCONFIG_PREINC_H__*/ From bf656b13c023584477aab57eadf637437b4688fd Mon Sep 17 00:00:00 2001 From: MuChenger Date: Mon, 22 Sep 2025 13:59:44 +0800 Subject: [PATCH 02/12] =?UTF-8?q?[add]=20=E6=B7=BB=E5=8A=A0e902=E5=AF=BC?= =?UTF-8?q?=E5=85=A5rt-studio=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/xuantie/smartl/e902/.cproject | 928 ++++++++++++++++++ bsp/xuantie/smartl/e902/.project | 27 + .../.settings/org.eclipse.core.runtime.prefs | 3 + bsp/xuantie/smartl/e902/.settings/projcfg.ini | 20 + bsp/xuantie/smartl/e902/Kconfig | 29 +- bsp/xuantie/smartl/e902/rtconfig_preinc.h | 26 + 6 files changed, 1027 insertions(+), 6 deletions(-) create mode 100644 bsp/xuantie/smartl/e902/.cproject create mode 100644 bsp/xuantie/smartl/e902/.project create mode 100644 bsp/xuantie/smartl/e902/.settings/org.eclipse.core.runtime.prefs create mode 100644 bsp/xuantie/smartl/e902/.settings/projcfg.ini create mode 100644 bsp/xuantie/smartl/e902/rtconfig_preinc.h diff --git a/bsp/xuantie/smartl/e902/.cproject b/bsp/xuantie/smartl/e902/.cproject new file mode 100644 index 00000000000..b04746362d6 --- /dev/null +++ b/bsp/xuantie/smartl/e902/.cproject @@ -0,0 +1,928 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bsp/xuantie/smartl/e902/.project b/bsp/xuantie/smartl/e902/.project new file mode 100644 index 00000000000..c7455faa7a8 --- /dev/null +++ b/bsp/xuantie/smartl/e902/.project @@ -0,0 +1,27 @@ + + + project + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + + diff --git a/bsp/xuantie/smartl/e902/.settings/org.eclipse.core.runtime.prefs b/bsp/xuantie/smartl/e902/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 00000000000..9f1acfcfba2 --- /dev/null +++ b/bsp/xuantie/smartl/e902/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,3 @@ +content-types/enabled=true +content-types/org.eclipse.cdt.core.asmSource/file-extensions=s +eclipse.preferences.version=1 \ No newline at end of file diff --git a/bsp/xuantie/smartl/e902/.settings/projcfg.ini b/bsp/xuantie/smartl/e902/.settings/projcfg.ini new file mode 100644 index 00000000000..81d9ee44ab2 --- /dev/null +++ b/bsp/xuantie/smartl/e902/.settings/projcfg.ini @@ -0,0 +1,20 @@ +#RT-Thread Studio Project Configuration +# Mon Sep 22 13:30:04 2025 +cfg_version=v3.0 + +board_name= +bsp_version= +bsp_path= +chip_name= +project_base_rtt_bsp=true +is_use_scons_build=true +hardware_adapter= +selected_rtt_version=latest +board_base_nano_proj=false +is_base_example_project=false +example_name= +project_type=rt-thread +os_branch=master +os_version=latest +project_name=project +output_project_path=E:\rt-thread\bsp\xuantie\smartl\e902 \ No newline at end of file diff --git a/bsp/xuantie/smartl/e902/Kconfig b/bsp/xuantie/smartl/e902/Kconfig index 3ac0af33614..8680668cf0b 100644 --- a/bsp/xuantie/smartl/e902/Kconfig +++ b/bsp/xuantie/smartl/e902/Kconfig @@ -1,10 +1,27 @@ mainmenu "RT-Thread Configuration" -BSP_DIR := . +config BSP_DIR + string + option env="BSP_ROOT" + default "." -RTT_DIR := ../../../.. +config RTT_DIR + string + option env="RTT_ROOT" + default "rt-thread" -PKGS_DIR := packages +# you can change the RTT_ROOT default "rt-thread" +# example : default "F:/git_repositories/rt-thread" + +config PKGS_DIR + string + option env="PKGS_ROOT" + default "packages" + +config ENV_DIR + string + option env="ENV_ROOT" + default "/" config XUANTIAN_SMARTL_E902 bool @@ -13,6 +30,6 @@ config XUANTIAN_SMARTL_E902 select RT_USING_USER_MAIN default y -source "$(RTT_DIR)/Kconfig" -osource "$PKGS_DIR/Kconfig" -rsource "board/Kconfig" +source "$RTT_DIR/Kconfig" +source "$PKGS_DIR/Kconfig" +source "$BSP_DIR/board/Kconfig" diff --git a/bsp/xuantie/smartl/e902/rtconfig_preinc.h b/bsp/xuantie/smartl/e902/rtconfig_preinc.h new file mode 100644 index 00000000000..4812006ddb6 --- /dev/null +++ b/bsp/xuantie/smartl/e902/rtconfig_preinc.h @@ -0,0 +1,26 @@ + +#ifndef RTCONFIG_PREINC_H__ +#define RTCONFIG_PREINC_H__ + +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread pre-include file */ + +#define CLI_CONFIG_STACK_SIZE 4096 +#define CONFIG_ARCH_INTERRUPTSTACK 4096 +#define CONFIG_ARCH_MAINSTACK 4096 +#define CONFIG_BOARD_SMARTL_EVB 1 +#define CONFIG_CPU_XUANTIE_E902 1 +#define CONFIG_CSI "csi2" +#define CONFIG_CSI_V2 1 +#define CONFIG_KERNEL_RTTHREAD 1 +#define CONFIG_SUPPORT_IRQ_NESTED 0 +#define CONFIG_SUPPORT_TSPEND 0 +#define CONFIG_XIP 1 +#define RT_USING_LIBC +#define RT_USING_NEWLIBC +#define _POSIX_C_SOURCE 1 +#define __RTTHREAD__ +#define __RT_KERNEL_SOURCE__ 1 +#define _REENT_SMALL + +#endif /*RTCONFIG_PREINC_H__*/ From a881e64313e21d8e3985f531f8cba13a32b33dfc Mon Sep 17 00:00:00 2001 From: MuChenger Date: Mon, 22 Sep 2025 14:40:39 +0800 Subject: [PATCH 03/12] =?UTF-8?q?[add]=20=E6=B7=BB=E5=8A=A0e907=E5=AF=BC?= =?UTF-8?q?=E5=85=A5rt-studio=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/xuantie/smartl/e907/.cproject | 912 ++++++++++++++++++ bsp/xuantie/smartl/e907/.project | 27 + .../.settings/org.eclipse.core.runtime.prefs | 3 + bsp/xuantie/smartl/e907/.settings/projcfg.ini | 20 + bsp/xuantie/smartl/e907/rtconfig_preinc.h | 26 + 5 files changed, 988 insertions(+) create mode 100644 bsp/xuantie/smartl/e907/.cproject create mode 100644 bsp/xuantie/smartl/e907/.project create mode 100644 bsp/xuantie/smartl/e907/.settings/org.eclipse.core.runtime.prefs create mode 100644 bsp/xuantie/smartl/e907/.settings/projcfg.ini create mode 100644 bsp/xuantie/smartl/e907/rtconfig_preinc.h diff --git a/bsp/xuantie/smartl/e907/.cproject b/bsp/xuantie/smartl/e907/.cproject new file mode 100644 index 00000000000..ed1bae1b67f --- /dev/null +++ b/bsp/xuantie/smartl/e907/.cproject @@ -0,0 +1,912 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bsp/xuantie/smartl/e907/.project b/bsp/xuantie/smartl/e907/.project new file mode 100644 index 00000000000..c7455faa7a8 --- /dev/null +++ b/bsp/xuantie/smartl/e907/.project @@ -0,0 +1,27 @@ + + + project + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + + diff --git a/bsp/xuantie/smartl/e907/.settings/org.eclipse.core.runtime.prefs b/bsp/xuantie/smartl/e907/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 00000000000..9f1acfcfba2 --- /dev/null +++ b/bsp/xuantie/smartl/e907/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,3 @@ +content-types/enabled=true +content-types/org.eclipse.cdt.core.asmSource/file-extensions=s +eclipse.preferences.version=1 \ No newline at end of file diff --git a/bsp/xuantie/smartl/e907/.settings/projcfg.ini b/bsp/xuantie/smartl/e907/.settings/projcfg.ini new file mode 100644 index 00000000000..0e3b37beb7a --- /dev/null +++ b/bsp/xuantie/smartl/e907/.settings/projcfg.ini @@ -0,0 +1,20 @@ +#RT-Thread Studio Project Configuration +# Mon Sep 22 14:26:23 2025 +cfg_version=v3.0 + +board_name= +bsp_version= +bsp_path= +chip_name= +project_base_rtt_bsp=true +is_use_scons_build=true +hardware_adapter= +selected_rtt_version=latest +board_base_nano_proj=false +is_base_example_project=false +example_name= +project_type=rt-thread +os_branch=master +os_version=latest +project_name=project +output_project_path=E:\rt-thread\bsp\xuantie\smartl\e907 \ No newline at end of file diff --git a/bsp/xuantie/smartl/e907/rtconfig_preinc.h b/bsp/xuantie/smartl/e907/rtconfig_preinc.h new file mode 100644 index 00000000000..6fb2be75a58 --- /dev/null +++ b/bsp/xuantie/smartl/e907/rtconfig_preinc.h @@ -0,0 +1,26 @@ + +#ifndef RTCONFIG_PREINC_H__ +#define RTCONFIG_PREINC_H__ + +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread pre-include file */ + +#define CLI_CONFIG_STACK_SIZE 4096 +#define CONFIG_ARCH_INTERRUPTSTACK 4096 +#define CONFIG_ARCH_MAINSTACK 4096 +#define CONFIG_BOARD_SMARTL_EVB 1 +#define CONFIG_CPU_XUANTIE_E907FD 1 +#define CONFIG_CSI "csi2" +#define CONFIG_CSI_V2 1 +#define CONFIG_KERNEL_RTTHREAD 1 +#define CONFIG_SUPPORT_IRQ_NESTED 0 +#define CONFIG_SUPPORT_TSPEND 0 +#define CONFIG_XIP 1 +#define RT_USING_LIBC +#define RT_USING_NEWLIBC +#define _POSIX_C_SOURCE 1 +#define __RTTHREAD__ +#define __RT_KERNEL_SOURCE__ 1 +#define _REENT_SMALL + +#endif /*RTCONFIG_PREINC_H__*/ From 0efdf2a37942122dc3ca5eb9a722ff2fd68a8f2d Mon Sep 17 00:00:00 2001 From: MuChenger Date: Mon, 22 Sep 2025 18:27:12 +0800 Subject: [PATCH 04/12] =?UTF-8?q?[add]=20=E6=B7=BB=E5=8A=A0c906=E5=AF=BC?= =?UTF-8?q?=E5=85=A5rt-studio=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/xuantie/xiaohui/c906/.cproject | 912 ++++++++++++++++++ bsp/xuantie/xiaohui/c906/.project | 27 + .../.settings/org.eclipse.core.runtime.prefs | 3 + .../xiaohui/c906/.settings/projcfg.ini | 20 + bsp/xuantie/xiaohui/c906/rtconfig_preinc.h | 35 + 5 files changed, 997 insertions(+) create mode 100644 bsp/xuantie/xiaohui/c906/.cproject create mode 100644 bsp/xuantie/xiaohui/c906/.project create mode 100644 bsp/xuantie/xiaohui/c906/.settings/org.eclipse.core.runtime.prefs create mode 100644 bsp/xuantie/xiaohui/c906/.settings/projcfg.ini create mode 100644 bsp/xuantie/xiaohui/c906/rtconfig_preinc.h diff --git a/bsp/xuantie/xiaohui/c906/.cproject b/bsp/xuantie/xiaohui/c906/.cproject new file mode 100644 index 00000000000..b6fe3222048 --- /dev/null +++ b/bsp/xuantie/xiaohui/c906/.cproject @@ -0,0 +1,912 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bsp/xuantie/xiaohui/c906/.project b/bsp/xuantie/xiaohui/c906/.project new file mode 100644 index 00000000000..c7455faa7a8 --- /dev/null +++ b/bsp/xuantie/xiaohui/c906/.project @@ -0,0 +1,27 @@ + + + project + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + + diff --git a/bsp/xuantie/xiaohui/c906/.settings/org.eclipse.core.runtime.prefs b/bsp/xuantie/xiaohui/c906/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 00000000000..9f1acfcfba2 --- /dev/null +++ b/bsp/xuantie/xiaohui/c906/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,3 @@ +content-types/enabled=true +content-types/org.eclipse.cdt.core.asmSource/file-extensions=s +eclipse.preferences.version=1 \ No newline at end of file diff --git a/bsp/xuantie/xiaohui/c906/.settings/projcfg.ini b/bsp/xuantie/xiaohui/c906/.settings/projcfg.ini new file mode 100644 index 00000000000..ae19a2ed1b6 --- /dev/null +++ b/bsp/xuantie/xiaohui/c906/.settings/projcfg.ini @@ -0,0 +1,20 @@ +#RT-Thread Studio Project Configuration +# Mon Sep 22 14:42:46 2025 +cfg_version=v3.0 + +board_name= +bsp_version= +bsp_path= +chip_name= +project_base_rtt_bsp=true +is_use_scons_build=true +hardware_adapter= +selected_rtt_version=latest +board_base_nano_proj=false +is_base_example_project=false +example_name= +project_type=rt-thread +os_branch=master +os_version=latest +project_name=project +output_project_path=E:\rt-thread\bsp\xuantie\xiaohui\c906 \ No newline at end of file diff --git a/bsp/xuantie/xiaohui/c906/rtconfig_preinc.h b/bsp/xuantie/xiaohui/c906/rtconfig_preinc.h new file mode 100644 index 00000000000..43597240ace --- /dev/null +++ b/bsp/xuantie/xiaohui/c906/rtconfig_preinc.h @@ -0,0 +1,35 @@ + +#ifndef RTCONFIG_PREINC_H__ +#define RTCONFIG_PREINC_H__ + +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread pre-include file */ + +#define CLI_CONFIG_STACK_SIZE 8192 +#define CONFIG_APP_TASK_STACK_SIZE 8192 +#define CONFIG_ARCH_INTERRUPTSTACK 8192 +#define CONFIG_ARCH_MAINSTACK 8192 +#define CONFIG_BOARD_XIAOHUI_EVB 1 +#define CONFIG_CLIC_BASE 201392128 +#define CONFIG_CSI "csi2" +#define CONFIG_CSI_V2 1 +#define CONFIG_DEBUG 1 +#define CONFIG_FPP_ENABLE 0 +#define CONFIG_INIT_TASK_STACK_SIZE 8192 +#define CONFIG_INTC_CLIC_PLIC 1 +#define CONFIG_KERNEL_RTTHREAD 1 +#define CONFIG_PLIC_BASE 134217728 +#define CONFIG_SUPPORT_IRQ_NESTED 0 +#define CONFIG_SUPPORT_TSPEND 0 +#define CONFIG_SYSTICK_HZ 100 +#define CONFIG_VIC_TSPDR 201326592 +#define CONFIG_XIP 1 +#define DCONFIG_CPU_XUANTIE_C906FD 1 +#define RT_USING_LIBC +#define RT_USING_NEWLIBC +#define _POSIX_C_SOURCE 1 +#define __RTTHREAD__ +#define __RT_KERNEL_SOURCE__ 1 +#define _REENT_SMALL + +#endif /*RTCONFIG_PREINC_H__*/ From 9c4c34803f8124538777cb44b418947c515d2da8 Mon Sep 17 00:00:00 2001 From: MuChenger Date: Mon, 22 Sep 2025 18:42:30 +0800 Subject: [PATCH 05/12] =?UTF-8?q?[add]=20=E6=B7=BB=E5=8A=A0c907=E5=AF=BC?= =?UTF-8?q?=E5=85=A5rt-studio=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/xuantie/xiaohui/c907/.cproject | 912 ++++++++++++++++++ bsp/xuantie/xiaohui/c907/.project | 27 + .../.settings/org.eclipse.core.runtime.prefs | 3 + .../xiaohui/c907/.settings/projcfg.ini | 20 + bsp/xuantie/xiaohui/c907/rtconfig_preinc.h | 35 + 5 files changed, 997 insertions(+) create mode 100644 bsp/xuantie/xiaohui/c907/.cproject create mode 100644 bsp/xuantie/xiaohui/c907/.project create mode 100644 bsp/xuantie/xiaohui/c907/.settings/org.eclipse.core.runtime.prefs create mode 100644 bsp/xuantie/xiaohui/c907/.settings/projcfg.ini create mode 100644 bsp/xuantie/xiaohui/c907/rtconfig_preinc.h diff --git a/bsp/xuantie/xiaohui/c907/.cproject b/bsp/xuantie/xiaohui/c907/.cproject new file mode 100644 index 00000000000..13ddfd54a4d --- /dev/null +++ b/bsp/xuantie/xiaohui/c907/.cproject @@ -0,0 +1,912 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bsp/xuantie/xiaohui/c907/.project b/bsp/xuantie/xiaohui/c907/.project new file mode 100644 index 00000000000..c7455faa7a8 --- /dev/null +++ b/bsp/xuantie/xiaohui/c907/.project @@ -0,0 +1,27 @@ + + + project + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + + diff --git a/bsp/xuantie/xiaohui/c907/.settings/org.eclipse.core.runtime.prefs b/bsp/xuantie/xiaohui/c907/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 00000000000..9f1acfcfba2 --- /dev/null +++ b/bsp/xuantie/xiaohui/c907/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,3 @@ +content-types/enabled=true +content-types/org.eclipse.cdt.core.asmSource/file-extensions=s +eclipse.preferences.version=1 \ No newline at end of file diff --git a/bsp/xuantie/xiaohui/c907/.settings/projcfg.ini b/bsp/xuantie/xiaohui/c907/.settings/projcfg.ini new file mode 100644 index 00000000000..9a225d82fd7 --- /dev/null +++ b/bsp/xuantie/xiaohui/c907/.settings/projcfg.ini @@ -0,0 +1,20 @@ +#RT-Thread Studio Project Configuration +# Mon Sep 22 18:32:38 2025 +cfg_version=v3.0 + +board_name= +bsp_version= +bsp_path= +chip_name= +project_base_rtt_bsp=true +is_use_scons_build=true +hardware_adapter= +selected_rtt_version=latest +board_base_nano_proj=false +is_base_example_project=false +example_name= +project_type=rt-thread +os_branch=master +os_version=latest +project_name=project +output_project_path=E:\rt-thread\bsp\xuantie\xiaohui\c907 \ No newline at end of file diff --git a/bsp/xuantie/xiaohui/c907/rtconfig_preinc.h b/bsp/xuantie/xiaohui/c907/rtconfig_preinc.h new file mode 100644 index 00000000000..78911554055 --- /dev/null +++ b/bsp/xuantie/xiaohui/c907/rtconfig_preinc.h @@ -0,0 +1,35 @@ + +#ifndef RTCONFIG_PREINC_H__ +#define RTCONFIG_PREINC_H__ + +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread pre-include file */ + +#define CLI_CONFIG_STACK_SIZE 8192 +#define CONFIG_APP_TASK_STACK_SIZE 8192 +#define CONFIG_ARCH_INTERRUPTSTACK 8192 +#define CONFIG_ARCH_MAINSTACK 8192 +#define CONFIG_BOARD_XIAOHUI_EVB 1 +#define CONFIG_CLIC_BASE 201392128 +#define CONFIG_CPU_XUANTIE_C907 1 +#define CONFIG_CSI "csi2" +#define CONFIG_CSI_V2 1 +#define CONFIG_DEBUG 1 +#define CONFIG_FPP_ENABLE 0 +#define CONFIG_INIT_TASK_STACK_SIZE 8192 +#define CONFIG_INTC_CLIC_PLIC 1 +#define CONFIG_KERNEL_RTTHREAD 1 +#define CONFIG_PLIC_BASE 134217728 +#define CONFIG_SUPPORT_IRQ_NESTED 0 +#define CONFIG_SUPPORT_TSPEND 0 +#define CONFIG_SYSTICK_HZ 100 +#define CONFIG_VIC_TSPDR 201326592 +#define CONFIG_XIP 1 +#define RT_USING_LIBC +#define RT_USING_NEWLIBC +#define _POSIX_C_SOURCE 1 +#define __RTTHREAD__ +#define __RT_KERNEL_SOURCE__ 1 +#define _REENT_SMALL + +#endif /*RTCONFIG_PREINC_H__*/ From 6da89040990dcf630d01b06fbb2fca4058cf40d1 Mon Sep 17 00:00:00 2001 From: MuChenger Date: Tue, 23 Sep 2025 10:05:35 +0800 Subject: [PATCH 06/12] =?UTF-8?q?[add]=20=E6=B7=BB=E5=8A=A0c908=E5=AF=BC?= =?UTF-8?q?=E5=85=A5rt-studio=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/xuantie/xiaohui/c908/.cproject | 912 ++++++++++++++++++ bsp/xuantie/xiaohui/c908/.project | 27 + .../.settings/org.eclipse.core.runtime.prefs | 3 + .../xiaohui/c908/.settings/projcfg.ini | 20 + bsp/xuantie/xiaohui/c908/rtconfig.py | 1 - bsp/xuantie/xiaohui/c908/rtconfig_preinc.h | 35 + 6 files changed, 997 insertions(+), 1 deletion(-) create mode 100644 bsp/xuantie/xiaohui/c908/.cproject create mode 100644 bsp/xuantie/xiaohui/c908/.project create mode 100644 bsp/xuantie/xiaohui/c908/.settings/org.eclipse.core.runtime.prefs create mode 100644 bsp/xuantie/xiaohui/c908/.settings/projcfg.ini create mode 100644 bsp/xuantie/xiaohui/c908/rtconfig_preinc.h diff --git a/bsp/xuantie/xiaohui/c908/.cproject b/bsp/xuantie/xiaohui/c908/.cproject new file mode 100644 index 00000000000..e7f9793968c --- /dev/null +++ b/bsp/xuantie/xiaohui/c908/.cproject @@ -0,0 +1,912 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bsp/xuantie/xiaohui/c908/.project b/bsp/xuantie/xiaohui/c908/.project new file mode 100644 index 00000000000..c7455faa7a8 --- /dev/null +++ b/bsp/xuantie/xiaohui/c908/.project @@ -0,0 +1,27 @@ + + + project + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + + diff --git a/bsp/xuantie/xiaohui/c908/.settings/org.eclipse.core.runtime.prefs b/bsp/xuantie/xiaohui/c908/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 00000000000..9f1acfcfba2 --- /dev/null +++ b/bsp/xuantie/xiaohui/c908/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,3 @@ +content-types/enabled=true +content-types/org.eclipse.cdt.core.asmSource/file-extensions=s +eclipse.preferences.version=1 \ No newline at end of file diff --git a/bsp/xuantie/xiaohui/c908/.settings/projcfg.ini b/bsp/xuantie/xiaohui/c908/.settings/projcfg.ini new file mode 100644 index 00000000000..5a3eda931de --- /dev/null +++ b/bsp/xuantie/xiaohui/c908/.settings/projcfg.ini @@ -0,0 +1,20 @@ +#RT-Thread Studio Project Configuration +# Mon Sep 22 18:49:19 2025 +cfg_version=v3.0 + +board_name= +bsp_version= +bsp_path= +chip_name= +project_base_rtt_bsp=true +is_use_scons_build=true +hardware_adapter= +selected_rtt_version=latest +board_base_nano_proj=false +is_base_example_project=false +example_name= +project_type=rt-thread +os_branch=master +os_version=latest +project_name=project +output_project_path=E:\rt-thread\bsp\xuantie\xiaohui\c908 \ No newline at end of file diff --git a/bsp/xuantie/xiaohui/c908/rtconfig.py b/bsp/xuantie/xiaohui/c908/rtconfig.py index f9fa78c99f1..9f75ee99250 100644 --- a/bsp/xuantie/xiaohui/c908/rtconfig.py +++ b/bsp/xuantie/xiaohui/c908/rtconfig.py @@ -46,7 +46,6 @@ MCPU_DEFINE = ' -DCONFIG_CPU_XUANTIE_C908V=1 ' # Modify here based on CPU architecture. DEVICE = MCPU + MCPU_DEFINE + ' -Wno-main -mcmodel=medany -MP -MMD ' - # 提取全局宏定义 GLOBAL_DEFINES = ( ' -DCONFIG_KERNEL_RTTHREAD=1 ' ' -D__RT_KERNEL_SOURCE__=1 ' diff --git a/bsp/xuantie/xiaohui/c908/rtconfig_preinc.h b/bsp/xuantie/xiaohui/c908/rtconfig_preinc.h new file mode 100644 index 00000000000..4b829e9ec46 --- /dev/null +++ b/bsp/xuantie/xiaohui/c908/rtconfig_preinc.h @@ -0,0 +1,35 @@ + +#ifndef RTCONFIG_PREINC_H__ +#define RTCONFIG_PREINC_H__ + +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread pre-include file */ + +#define CLI_CONFIG_STACK_SIZE 8192 +#define CONFIG_APP_TASK_STACK_SIZE 8192 +#define CONFIG_ARCH_INTERRUPTSTACK 8192 +#define CONFIG_ARCH_MAINSTACK 8192 +#define CONFIG_BOARD_XIAOHUI_EVB 1 +#define CONFIG_CLIC_BASE 201392128 +#define CONFIG_CPU_XUANTIE_C908V 1 +#define CONFIG_CSI "csi2" +#define CONFIG_CSI_V2 1 +#define CONFIG_DEBUG 1 +#define CONFIG_FPP_ENABLE 0 +#define CONFIG_INIT_TASK_STACK_SIZE 8192 +#define CONFIG_INTC_CLIC_PLIC 1 +#define CONFIG_KERNEL_RTTHREAD 1 +#define CONFIG_PLIC_BASE 134217728 +#define CONFIG_SUPPORT_IRQ_NESTED 0 +#define CONFIG_SUPPORT_TSPEND 0 +#define CONFIG_SYSTICK_HZ 100 +#define CONFIG_VIC_TSPDR 201326592 +#define CONFIG_XIP 1 +#define RT_USING_LIBC +#define RT_USING_NEWLIBC +#define _POSIX_C_SOURCE 1 +#define __RTTHREAD__ +#define __RT_KERNEL_SOURCE__ 1 +#define _REENT_SMALL + +#endif /*RTCONFIG_PREINC_H__*/ From 91c6ba02ba40a46ff4171244723436dad3e04853 Mon Sep 17 00:00:00 2001 From: MuChenger Date: Tue, 23 Sep 2025 10:17:53 +0800 Subject: [PATCH 07/12] =?UTF-8?q?[add]=20=E6=B7=BB=E5=8A=A0c910=E5=AF=BC?= =?UTF-8?q?=E5=85=A5rt-studio=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/xuantie/xiaohui/c910/.cproject | 912 ++++++++++++++++++ bsp/xuantie/xiaohui/c910/.project | 27 + .../.settings/org.eclipse.core.runtime.prefs | 3 + .../xiaohui/c910/.settings/projcfg.ini | 20 + bsp/xuantie/xiaohui/c910/rtconfig_preinc.h | 35 + 5 files changed, 997 insertions(+) create mode 100644 bsp/xuantie/xiaohui/c910/.cproject create mode 100644 bsp/xuantie/xiaohui/c910/.project create mode 100644 bsp/xuantie/xiaohui/c910/.settings/org.eclipse.core.runtime.prefs create mode 100644 bsp/xuantie/xiaohui/c910/.settings/projcfg.ini create mode 100644 bsp/xuantie/xiaohui/c910/rtconfig_preinc.h diff --git a/bsp/xuantie/xiaohui/c910/.cproject b/bsp/xuantie/xiaohui/c910/.cproject new file mode 100644 index 00000000000..d875041944f --- /dev/null +++ b/bsp/xuantie/xiaohui/c910/.cproject @@ -0,0 +1,912 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bsp/xuantie/xiaohui/c910/.project b/bsp/xuantie/xiaohui/c910/.project new file mode 100644 index 00000000000..c7455faa7a8 --- /dev/null +++ b/bsp/xuantie/xiaohui/c910/.project @@ -0,0 +1,27 @@ + + + project + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + + diff --git a/bsp/xuantie/xiaohui/c910/.settings/org.eclipse.core.runtime.prefs b/bsp/xuantie/xiaohui/c910/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 00000000000..9f1acfcfba2 --- /dev/null +++ b/bsp/xuantie/xiaohui/c910/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,3 @@ +content-types/enabled=true +content-types/org.eclipse.cdt.core.asmSource/file-extensions=s +eclipse.preferences.version=1 \ No newline at end of file diff --git a/bsp/xuantie/xiaohui/c910/.settings/projcfg.ini b/bsp/xuantie/xiaohui/c910/.settings/projcfg.ini new file mode 100644 index 00000000000..36ea1741899 --- /dev/null +++ b/bsp/xuantie/xiaohui/c910/.settings/projcfg.ini @@ -0,0 +1,20 @@ +#RT-Thread Studio Project Configuration +# Tue Sep 23 10:06:49 2025 +cfg_version=v3.0 + +board_name= +bsp_version= +bsp_path= +chip_name= +project_base_rtt_bsp=true +is_use_scons_build=true +hardware_adapter= +selected_rtt_version=latest +board_base_nano_proj=false +is_base_example_project=false +example_name= +project_type=rt-thread +os_branch=master +os_version=latest +project_name=project +output_project_path=E:\rt-thread\bsp\xuantie\xiaohui\c910 \ No newline at end of file diff --git a/bsp/xuantie/xiaohui/c910/rtconfig_preinc.h b/bsp/xuantie/xiaohui/c910/rtconfig_preinc.h new file mode 100644 index 00000000000..067d0f4df4f --- /dev/null +++ b/bsp/xuantie/xiaohui/c910/rtconfig_preinc.h @@ -0,0 +1,35 @@ + +#ifndef RTCONFIG_PREINC_H__ +#define RTCONFIG_PREINC_H__ + +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread pre-include file */ + +#define CLI_CONFIG_STACK_SIZE 8192 +#define CONFIG_APP_TASK_STACK_SIZE 8192 +#define CONFIG_ARCH_INTERRUPTSTACK 8192 +#define CONFIG_ARCH_MAINSTACK 8192 +#define CONFIG_BOARD_XIAOHUI_EVB 1 +#define CONFIG_CLIC_BASE 201392128 +#define CONFIG_CPU_XUANTIE_C910V3 1 +#define CONFIG_CSI "csi2" +#define CONFIG_CSI_V2 1 +#define CONFIG_DEBUG 1 +#define CONFIG_FPP_ENABLE 0 +#define CONFIG_INIT_TASK_STACK_SIZE 8192 +#define CONFIG_INTC_CLIC_PLIC 1 +#define CONFIG_KERNEL_RTTHREAD 1 +#define CONFIG_PLIC_BASE 134217728 +#define CONFIG_SUPPORT_IRQ_NESTED 0 +#define CONFIG_SUPPORT_TSPEND 0 +#define CONFIG_SYSTICK_HZ 100 +#define CONFIG_VIC_TSPDR 201326592 +#define CONFIG_XIP 1 +#define RT_USING_LIBC +#define RT_USING_NEWLIBC +#define _POSIX_C_SOURCE 1 +#define __RTTHREAD__ +#define __RT_KERNEL_SOURCE__ 1 +#define _REENT_SMALL + +#endif /*RTCONFIG_PREINC_H__*/ From d1a02a5410eadca291365b1e3bb0cd62d33111fe Mon Sep 17 00:00:00 2001 From: MuChenger Date: Tue, 23 Sep 2025 15:24:09 +0800 Subject: [PATCH 08/12] =?UTF-8?q?[add]=20=E6=B7=BB=E5=8A=A0r908=E5=AF=BC?= =?UTF-8?q?=E5=85=A5rt-studio=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/xuantie/xiaohui/r908/.cproject | 912 ++++++++++++++++++ bsp/xuantie/xiaohui/r908/.project | 27 + .../.settings/org.eclipse.core.runtime.prefs | 3 + .../xiaohui/r908/.settings/projcfg.ini | 20 + bsp/xuantie/xiaohui/r908/rtconfig_preinc.h | 35 + 5 files changed, 997 insertions(+) create mode 100644 bsp/xuantie/xiaohui/r908/.cproject create mode 100644 bsp/xuantie/xiaohui/r908/.project create mode 100644 bsp/xuantie/xiaohui/r908/.settings/org.eclipse.core.runtime.prefs create mode 100644 bsp/xuantie/xiaohui/r908/.settings/projcfg.ini create mode 100644 bsp/xuantie/xiaohui/r908/rtconfig_preinc.h diff --git a/bsp/xuantie/xiaohui/r908/.cproject b/bsp/xuantie/xiaohui/r908/.cproject new file mode 100644 index 00000000000..1fbce3e2ae3 --- /dev/null +++ b/bsp/xuantie/xiaohui/r908/.cproject @@ -0,0 +1,912 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bsp/xuantie/xiaohui/r908/.project b/bsp/xuantie/xiaohui/r908/.project new file mode 100644 index 00000000000..c7455faa7a8 --- /dev/null +++ b/bsp/xuantie/xiaohui/r908/.project @@ -0,0 +1,27 @@ + + + project + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + + diff --git a/bsp/xuantie/xiaohui/r908/.settings/org.eclipse.core.runtime.prefs b/bsp/xuantie/xiaohui/r908/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 00000000000..9f1acfcfba2 --- /dev/null +++ b/bsp/xuantie/xiaohui/r908/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,3 @@ +content-types/enabled=true +content-types/org.eclipse.cdt.core.asmSource/file-extensions=s +eclipse.preferences.version=1 \ No newline at end of file diff --git a/bsp/xuantie/xiaohui/r908/.settings/projcfg.ini b/bsp/xuantie/xiaohui/r908/.settings/projcfg.ini new file mode 100644 index 00000000000..df67663c912 --- /dev/null +++ b/bsp/xuantie/xiaohui/r908/.settings/projcfg.ini @@ -0,0 +1,20 @@ +#RT-Thread Studio Project Configuration +# Tue Sep 23 15:06:09 2025 +cfg_version=v3.0 + +board_name= +bsp_version= +bsp_path= +chip_name= +project_base_rtt_bsp=true +is_use_scons_build=true +hardware_adapter= +selected_rtt_version=latest +board_base_nano_proj=false +is_base_example_project=false +example_name= +project_type=rt-thread +os_branch=master +os_version=latest +project_name=project +output_project_path=E:\rt-thread\bsp\xuantie\xiaohui\r908 \ No newline at end of file diff --git a/bsp/xuantie/xiaohui/r908/rtconfig_preinc.h b/bsp/xuantie/xiaohui/r908/rtconfig_preinc.h new file mode 100644 index 00000000000..3e2afda54f3 --- /dev/null +++ b/bsp/xuantie/xiaohui/r908/rtconfig_preinc.h @@ -0,0 +1,35 @@ + +#ifndef RTCONFIG_PREINC_H__ +#define RTCONFIG_PREINC_H__ + +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread pre-include file */ + +#define CLI_CONFIG_STACK_SIZE 8192 +#define CONFIG_APP_TASK_STACK_SIZE 8192 +#define CONFIG_ARCH_INTERRUPTSTACK 8192 +#define CONFIG_ARCH_MAINSTACK 8192 +#define CONFIG_BOARD_XIAOHUI_EVB 1 +#define CONFIG_CLIC_BASE 201392128 +#define CONFIG_CPU_XUANTIE_R908 1 +#define CONFIG_CSI "csi2" +#define CONFIG_CSI_V2 1 +#define CONFIG_DEBUG 1 +#define CONFIG_FPP_ENABLE 0 +#define CONFIG_INIT_TASK_STACK_SIZE 8192 +#define CONFIG_INTC_CLIC_PLIC 1 +#define CONFIG_KERNEL_RTTHREAD 1 +#define CONFIG_PLIC_BASE 134217728 +#define CONFIG_SUPPORT_IRQ_NESTED 0 +#define CONFIG_SUPPORT_TSPEND 0 +#define CONFIG_SYSTICK_HZ 100 +#define CONFIG_VIC_TSPDR 201326592 +#define CONFIG_XIP 1 +#define RT_USING_LIBC +#define RT_USING_NEWLIBC +#define _POSIX_C_SOURCE 1 +#define __RTTHREAD__ +#define __RT_KERNEL_SOURCE__ 1 +#define _REENT_SMALL + +#endif /*RTCONFIG_PREINC_H__*/ From 0f5ab1db24814fa7e3eca54b4fcd1b17e347e7ab Mon Sep 17 00:00:00 2001 From: MuChenger Date: Tue, 23 Sep 2025 15:36:59 +0800 Subject: [PATCH 09/12] =?UTF-8?q?[add]=20=E6=B7=BB=E5=8A=A0r920=E5=AF=BC?= =?UTF-8?q?=E5=85=A5rt-studio=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/xuantie/xiaohui/r920/.cproject | 912 ++++++++++++++++++ bsp/xuantie/xiaohui/r920/.project | 27 + .../.settings/org.eclipse.core.runtime.prefs | 3 + .../xiaohui/r920/.settings/projcfg.ini | 20 + bsp/xuantie/xiaohui/r920/rtconfig_preinc.h | 35 + 5 files changed, 997 insertions(+) create mode 100644 bsp/xuantie/xiaohui/r920/.cproject create mode 100644 bsp/xuantie/xiaohui/r920/.project create mode 100644 bsp/xuantie/xiaohui/r920/.settings/org.eclipse.core.runtime.prefs create mode 100644 bsp/xuantie/xiaohui/r920/.settings/projcfg.ini create mode 100644 bsp/xuantie/xiaohui/r920/rtconfig_preinc.h diff --git a/bsp/xuantie/xiaohui/r920/.cproject b/bsp/xuantie/xiaohui/r920/.cproject new file mode 100644 index 00000000000..ea03bf448a7 --- /dev/null +++ b/bsp/xuantie/xiaohui/r920/.cproject @@ -0,0 +1,912 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bsp/xuantie/xiaohui/r920/.project b/bsp/xuantie/xiaohui/r920/.project new file mode 100644 index 00000000000..c7455faa7a8 --- /dev/null +++ b/bsp/xuantie/xiaohui/r920/.project @@ -0,0 +1,27 @@ + + + project + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + + diff --git a/bsp/xuantie/xiaohui/r920/.settings/org.eclipse.core.runtime.prefs b/bsp/xuantie/xiaohui/r920/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 00000000000..9f1acfcfba2 --- /dev/null +++ b/bsp/xuantie/xiaohui/r920/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,3 @@ +content-types/enabled=true +content-types/org.eclipse.cdt.core.asmSource/file-extensions=s +eclipse.preferences.version=1 \ No newline at end of file diff --git a/bsp/xuantie/xiaohui/r920/.settings/projcfg.ini b/bsp/xuantie/xiaohui/r920/.settings/projcfg.ini new file mode 100644 index 00000000000..84be51a1fa0 --- /dev/null +++ b/bsp/xuantie/xiaohui/r920/.settings/projcfg.ini @@ -0,0 +1,20 @@ +#RT-Thread Studio Project Configuration +# Tue Sep 23 15:29:31 2025 +cfg_version=v3.0 + +board_name= +bsp_version= +bsp_path= +chip_name= +project_base_rtt_bsp=true +is_use_scons_build=true +hardware_adapter= +selected_rtt_version=latest +board_base_nano_proj=false +is_base_example_project=false +example_name= +project_type=rt-thread +os_branch=master +os_version=latest +project_name=project +output_project_path=E:\rt-thread\bsp\xuantie\xiaohui\r920 \ No newline at end of file diff --git a/bsp/xuantie/xiaohui/r920/rtconfig_preinc.h b/bsp/xuantie/xiaohui/r920/rtconfig_preinc.h new file mode 100644 index 00000000000..a1ed5f56986 --- /dev/null +++ b/bsp/xuantie/xiaohui/r920/rtconfig_preinc.h @@ -0,0 +1,35 @@ + +#ifndef RTCONFIG_PREINC_H__ +#define RTCONFIG_PREINC_H__ + +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread pre-include file */ + +#define CLI_CONFIG_STACK_SIZE 8192 +#define CONFIG_APP_TASK_STACK_SIZE 8192 +#define CONFIG_ARCH_INTERRUPTSTACK 8192 +#define CONFIG_ARCH_MAINSTACK 8192 +#define CONFIG_BOARD_XIAOHUI_EVB 1 +#define CONFIG_CLIC_BASE 201392128 +#define CONFIG_CPU_XUANTIE_R920 1 +#define CONFIG_CSI "csi2" +#define CONFIG_CSI_V2 1 +#define CONFIG_DEBUG 1 +#define CONFIG_FPP_ENABLE 0 +#define CONFIG_INIT_TASK_STACK_SIZE 8192 +#define CONFIG_INTC_CLIC_PLIC 1 +#define CONFIG_KERNEL_RTTHREAD 1 +#define CONFIG_PLIC_BASE 134217728 +#define CONFIG_SUPPORT_IRQ_NESTED 0 +#define CONFIG_SUPPORT_TSPEND 0 +#define CONFIG_SYSTICK_HZ 100 +#define CONFIG_VIC_TSPDR 201326592 +#define CONFIG_XIP 1 +#define RT_USING_LIBC +#define RT_USING_NEWLIBC +#define _POSIX_C_SOURCE 1 +#define __RTTHREAD__ +#define __RT_KERNEL_SOURCE__ 1 +#define _REENT_SMALL + +#endif /*RTCONFIG_PREINC_H__*/ From 7d7784fdcaec510f44bcb51f920aabd34ddd9ad0 Mon Sep 17 00:00:00 2001 From: MuChenger Date: Tue, 23 Sep 2025 15:49:23 +0800 Subject: [PATCH 10/12] =?UTF-8?q?[add]=20=E6=B7=BB=E5=8A=A0r910=E5=AF=BC?= =?UTF-8?q?=E5=85=A5rt-studio=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/xuantie/xiaohui/r910/.cproject | 912 ++++++++++++++++++ bsp/xuantie/xiaohui/r910/.project | 27 + .../.settings/org.eclipse.core.runtime.prefs | 3 + .../xiaohui/r910/.settings/projcfg.ini | 20 + bsp/xuantie/xiaohui/r910/rtconfig.py | 2 +- bsp/xuantie/xiaohui/r910/rtconfig_preinc.h | 35 + 6 files changed, 998 insertions(+), 1 deletion(-) create mode 100644 bsp/xuantie/xiaohui/r910/.cproject create mode 100644 bsp/xuantie/xiaohui/r910/.project create mode 100644 bsp/xuantie/xiaohui/r910/.settings/org.eclipse.core.runtime.prefs create mode 100644 bsp/xuantie/xiaohui/r910/.settings/projcfg.ini create mode 100644 bsp/xuantie/xiaohui/r910/rtconfig_preinc.h diff --git a/bsp/xuantie/xiaohui/r910/.cproject b/bsp/xuantie/xiaohui/r910/.cproject new file mode 100644 index 00000000000..5f3f5834044 --- /dev/null +++ b/bsp/xuantie/xiaohui/r910/.cproject @@ -0,0 +1,912 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bsp/xuantie/xiaohui/r910/.project b/bsp/xuantie/xiaohui/r910/.project new file mode 100644 index 00000000000..c7455faa7a8 --- /dev/null +++ b/bsp/xuantie/xiaohui/r910/.project @@ -0,0 +1,27 @@ + + + project + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + + diff --git a/bsp/xuantie/xiaohui/r910/.settings/org.eclipse.core.runtime.prefs b/bsp/xuantie/xiaohui/r910/.settings/org.eclipse.core.runtime.prefs new file mode 100644 index 00000000000..9f1acfcfba2 --- /dev/null +++ b/bsp/xuantie/xiaohui/r910/.settings/org.eclipse.core.runtime.prefs @@ -0,0 +1,3 @@ +content-types/enabled=true +content-types/org.eclipse.cdt.core.asmSource/file-extensions=s +eclipse.preferences.version=1 \ No newline at end of file diff --git a/bsp/xuantie/xiaohui/r910/.settings/projcfg.ini b/bsp/xuantie/xiaohui/r910/.settings/projcfg.ini new file mode 100644 index 00000000000..037bd4ee60c --- /dev/null +++ b/bsp/xuantie/xiaohui/r910/.settings/projcfg.ini @@ -0,0 +1,20 @@ +#RT-Thread Studio Project Configuration +# Tue Sep 23 15:24:56 2025 +cfg_version=v3.0 + +board_name= +bsp_version= +bsp_path= +chip_name= +project_base_rtt_bsp=true +is_use_scons_build=true +hardware_adapter= +selected_rtt_version=latest +board_base_nano_proj=false +is_base_example_project=false +example_name= +project_type=rt-thread +os_branch=master +os_version=latest +project_name=project +output_project_path=E:\rt-thread\bsp\xuantie\xiaohui\r910 \ No newline at end of file diff --git a/bsp/xuantie/xiaohui/r910/rtconfig.py b/bsp/xuantie/xiaohui/r910/rtconfig.py index cb92fb4d27c..287b0e4fdb0 100644 --- a/bsp/xuantie/xiaohui/r910/rtconfig.py +++ b/bsp/xuantie/xiaohui/r910/rtconfig.py @@ -94,6 +94,6 @@ def dist_handle(BSP_ROOT, dist_dir): import sys cwd_path = os.getcwd() - sys.path.append(os.path.join(os.path.dirname(BSP_ROOT), 'tools')) + sys.path.append(os.path.join(os.path.dirname(BSP_ROOT), '../tools')) from sdk_dist import dist_do_building dist_do_building(BSP_ROOT, dist_dir) diff --git a/bsp/xuantie/xiaohui/r910/rtconfig_preinc.h b/bsp/xuantie/xiaohui/r910/rtconfig_preinc.h new file mode 100644 index 00000000000..6ca6e3da99d --- /dev/null +++ b/bsp/xuantie/xiaohui/r910/rtconfig_preinc.h @@ -0,0 +1,35 @@ + +#ifndef RTCONFIG_PREINC_H__ +#define RTCONFIG_PREINC_H__ + +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread pre-include file */ + +#define CLI_CONFIG_STACK_SIZE 8192 +#define CONFIG_APP_TASK_STACK_SIZE 8192 +#define CONFIG_ARCH_INTERRUPTSTACK 8192 +#define CONFIG_ARCH_MAINSTACK 8192 +#define CONFIG_BOARD_XIAOHUI_EVB 1 +#define CONFIG_CLIC_BASE 201392128 +#define CONFIG_CPU_XUANTIE_R910 1 +#define CONFIG_CSI "csi2" +#define CONFIG_CSI_V2 1 +#define CONFIG_DEBUG 1 +#define CONFIG_FPP_ENABLE 0 +#define CONFIG_INIT_TASK_STACK_SIZE 8192 +#define CONFIG_INTC_CLIC_PLIC 1 +#define CONFIG_KERNEL_RTTHREAD 1 +#define CONFIG_PLIC_BASE 134217728 +#define CONFIG_SUPPORT_IRQ_NESTED 0 +#define CONFIG_SUPPORT_TSPEND 0 +#define CONFIG_SYSTICK_HZ 100 +#define CONFIG_VIC_TSPDR 201326592 +#define CONFIG_XIP 1 +#define RT_USING_LIBC +#define RT_USING_NEWLIBC +#define _POSIX_C_SOURCE 1 +#define __RTTHREAD__ +#define __RT_KERNEL_SOURCE__ 1 +#define _REENT_SMALL + +#endif /*RTCONFIG_PREINC_H__*/ From be59cb67c259259446f0c043c64c4ee425a5a4b8 Mon Sep 17 00:00:00 2001 From: MuChenger Date: Tue, 23 Sep 2025 15:59:49 +0800 Subject: [PATCH 11/12] =?UTF-8?q?[fix]=20=E4=BF=AE=E6=AD=A3BSP=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E6=89=93=E5=BC=80=E5=9C=A8=E7=BA=BF=E8=BD=AF=E4=BB=B6?= =?UTF-8?q?=E5=8C=85=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/xuantie/smartl/e907/Kconfig | 29 ++++++++++++++++++++++------ bsp/xuantie/xiaohui/c906/Kconfig | 31 +++++++++++++++++++++++------- bsp/xuantie/xiaohui/c907/Kconfig | 31 +++++++++++++++++++++++------- bsp/xuantie/xiaohui/c908/Kconfig | 31 +++++++++++++++++++++++------- bsp/xuantie/xiaohui/c910/Kconfig | 31 +++++++++++++++++++++++------- bsp/xuantie/xiaohui/r908/Kconfig | 31 +++++++++++++++++++++++------- bsp/xuantie/xiaohui/r910/Kconfig | 33 ++++++++++++++++++++++++-------- bsp/xuantie/xiaohui/r920/Kconfig | 31 +++++++++++++++++++++++------- 8 files changed, 192 insertions(+), 56 deletions(-) diff --git a/bsp/xuantie/smartl/e907/Kconfig b/bsp/xuantie/smartl/e907/Kconfig index 33efda6fee5..a7754dca2ea 100644 --- a/bsp/xuantie/smartl/e907/Kconfig +++ b/bsp/xuantie/smartl/e907/Kconfig @@ -1,10 +1,27 @@ mainmenu "RT-Thread Configuration" -BSP_DIR := . +config BSP_DIR + string + option env="BSP_ROOT" + default "." -RTT_DIR := ../../../.. +config RTT_DIR + string + option env="RTT_ROOT" + default "rt-thread" -PKGS_DIR := packages +# you can change the RTT_ROOT default "rt-thread" +# example : default "F:/git_repositories/rt-thread" + +config PKGS_DIR + string + option env="PKGS_ROOT" + default "packages" + +config ENV_DIR + string + option env="ENV_ROOT" + default "/" config XUANTIAN_SMARTL_E907 bool @@ -13,6 +30,6 @@ config XUANTIAN_SMARTL_E907 select RT_USING_USER_MAIN default y -source "$(RTT_DIR)/Kconfig" -osource "$PKGS_DIR/Kconfig" -rsource "board/Kconfig" +source "$RTT_DIR/Kconfig" +source "$PKGS_DIR/Kconfig" +source "$BSP_DIR/board/Kconfig" diff --git a/bsp/xuantie/xiaohui/c906/Kconfig b/bsp/xuantie/xiaohui/c906/Kconfig index 5aac66a07bd..e6554754234 100644 --- a/bsp/xuantie/xiaohui/c906/Kconfig +++ b/bsp/xuantie/xiaohui/c906/Kconfig @@ -1,18 +1,35 @@ mainmenu "RT-Thread Configuration" -BSP_DIR := . +config BSP_DIR + string + option env="BSP_ROOT" + default "." -RTT_DIR := ../../../.. +config RTT_DIR + string + option env="RTT_ROOT" + default "rt-thread" -PKGS_DIR := packages +# you can change the RTT_ROOT default "rt-thread" +# example : default "F:/git_repositories/rt-thread" -config XUANTIAN_XIAOHUI_C906 +config PKGS_DIR + string + option env="PKGS_ROOT" + default "packages" + +config ENV_DIR + string + option env="ENV_ROOT" + default "/" + + config XUANTIAN_XIAOHUI_C906 bool select ARCH_RISCV64 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y -source "$(RTT_DIR)/Kconfig" -osource "$PKGS_DIR/Kconfig" -rsource "board/Kconfig" +source "$RTT_DIR/Kconfig" +source "$PKGS_DIR/Kconfig" +source "$BSP_DIR/board/Kconfig" diff --git a/bsp/xuantie/xiaohui/c907/Kconfig b/bsp/xuantie/xiaohui/c907/Kconfig index ccf39a9657f..7986b1ff299 100644 --- a/bsp/xuantie/xiaohui/c907/Kconfig +++ b/bsp/xuantie/xiaohui/c907/Kconfig @@ -1,18 +1,35 @@ mainmenu "RT-Thread Configuration" -BSP_DIR := . +config BSP_DIR + string + option env="BSP_ROOT" + default "." -RTT_DIR := ../../../.. +config RTT_DIR + string + option env="RTT_ROOT" + default "rt-thread" -PKGS_DIR := packages +# you can change the RTT_ROOT default "rt-thread" +# example : default "F:/git_repositories/rt-thread" -config XUANTIAN_XIAOHUI_C907 +config PKGS_DIR + string + option env="PKGS_ROOT" + default "packages" + +config ENV_DIR + string + option env="ENV_ROOT" + default "/" + + config XUANTIAN_XIAOHUI_C907 bool select ARCH_RISCV64 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y -source "$(RTT_DIR)/Kconfig" -osource "$PKGS_DIR/Kconfig" -rsource "board/Kconfig" +source "$RTT_DIR/Kconfig" +source "$PKGS_DIR/Kconfig" +source "$BSP_DIR/board/Kconfig" diff --git a/bsp/xuantie/xiaohui/c908/Kconfig b/bsp/xuantie/xiaohui/c908/Kconfig index d33282ddafc..99c62ff7dab 100644 --- a/bsp/xuantie/xiaohui/c908/Kconfig +++ b/bsp/xuantie/xiaohui/c908/Kconfig @@ -1,18 +1,35 @@ mainmenu "RT-Thread Configuration" -BSP_DIR := . +config BSP_DIR + string + option env="BSP_ROOT" + default "." -RTT_DIR := ../../../.. +config RTT_DIR + string + option env="RTT_ROOT" + default "rt-thread" -PKGS_DIR := packages +# you can change the RTT_ROOT default "rt-thread" +# example : default "F:/git_repositories/rt-thread" -config XUANTIAN_XIAOHUI_C908 +config PKGS_DIR + string + option env="PKGS_ROOT" + default "packages" + +config ENV_DIR + string + option env="ENV_ROOT" + default "/" + + config XUANTIAN_XIAOHUI_C908 bool select ARCH_RISCV64 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y -source "$(RTT_DIR)/Kconfig" -osource "$PKGS_DIR/Kconfig" -rsource "board/Kconfig" +source "$RTT_DIR/Kconfig" +source "$PKGS_DIR/Kconfig" +source "$BSP_DIR/board/Kconfig" diff --git a/bsp/xuantie/xiaohui/c910/Kconfig b/bsp/xuantie/xiaohui/c910/Kconfig index a7cd46358f3..6b85ddc4492 100644 --- a/bsp/xuantie/xiaohui/c910/Kconfig +++ b/bsp/xuantie/xiaohui/c910/Kconfig @@ -1,18 +1,35 @@ mainmenu "RT-Thread Configuration" -BSP_DIR := . +config BSP_DIR + string + option env="BSP_ROOT" + default "." -RTT_DIR := ../../../.. +config RTT_DIR + string + option env="RTT_ROOT" + default "rt-thread" -PKGS_DIR := packages +# you can change the RTT_ROOT default "rt-thread" +# example : default "F:/git_repositories/rt-thread" -config XUANTIAN_XIAOHUI_C910 +config PKGS_DIR + string + option env="PKGS_ROOT" + default "packages" + +config ENV_DIR + string + option env="ENV_ROOT" + default "/" + + config XUANTIAN_XIAOHUI_C910 bool select ARCH_RISCV64 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y -source "$(RTT_DIR)/Kconfig" -osource "$PKGS_DIR/Kconfig" -rsource "board/Kconfig" +source "$RTT_DIR/Kconfig" +source "$PKGS_DIR/Kconfig" +source "$BSP_DIR/board/Kconfig" diff --git a/bsp/xuantie/xiaohui/r908/Kconfig b/bsp/xuantie/xiaohui/r908/Kconfig index 25ddbef03ff..41a6fba7cb7 100644 --- a/bsp/xuantie/xiaohui/r908/Kconfig +++ b/bsp/xuantie/xiaohui/r908/Kconfig @@ -1,18 +1,35 @@ mainmenu "RT-Thread Configuration" -BSP_DIR := . +config BSP_DIR + string + option env="BSP_ROOT" + default "." -RTT_DIR := ../../../.. +config RTT_DIR + string + option env="RTT_ROOT" + default "rt-thread" -PKGS_DIR := packages +# you can change the RTT_ROOT default "rt-thread" +# example : default "F:/git_repositories/rt-thread" -config XUANTIAN_XIAOHUI_R908 +config PKGS_DIR + string + option env="PKGS_ROOT" + default "packages" + +config ENV_DIR + string + option env="ENV_ROOT" + default "/" + + config XUANTIAN_XIAOHUI_R908 bool select ARCH_RISCV64 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y -source "$(RTT_DIR)/Kconfig" -osource "$PKGS_DIR/Kconfig" -rsource "board/Kconfig" +source "$RTT_DIR/Kconfig" +source "$PKGS_DIR/Kconfig" +source "$BSP_DIR/board/Kconfig" diff --git a/bsp/xuantie/xiaohui/r910/Kconfig b/bsp/xuantie/xiaohui/r910/Kconfig index 8b80ddb798f..6f263e0019a 100644 --- a/bsp/xuantie/xiaohui/r910/Kconfig +++ b/bsp/xuantie/xiaohui/r910/Kconfig @@ -1,18 +1,35 @@ mainmenu "RT-Thread Configuration" -BSP_DIR := . +config BSP_DIR + string + option env="BSP_ROOT" + default "." -RTT_DIR := ../../../.. +config RTT_DIR + string + option env="RTT_ROOT" + default "rt-thread" -PKGS_DIR := packages +# you can change the RTT_ROOT default "rt-thread" +# example : default "F:/git_repositories/rt-thread" -config XUANTIAN_XIAOHUI_R910 +config PKGS_DIR + string + option env="PKGS_ROOT" + default "packages" + +config ENV_DIR + string + option env="ENV_ROOT" + default "/" + + config XUANTIAN_XIAOHUI_R910 bool select ARCH_RISCV64 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - -source "$(RTT_DIR)/Kconfig" -osource "$PKGS_DIR/Kconfig" -rsource "board/Kconfig" + +source "$RTT_DIR/Kconfig" +source "$PKGS_DIR/Kconfig" +source "$BSP_DIR/board/Kconfig" diff --git a/bsp/xuantie/xiaohui/r920/Kconfig b/bsp/xuantie/xiaohui/r920/Kconfig index 4f7c32e9a67..7464b3e434e 100644 --- a/bsp/xuantie/xiaohui/r920/Kconfig +++ b/bsp/xuantie/xiaohui/r920/Kconfig @@ -1,18 +1,35 @@ mainmenu "RT-Thread Configuration" -BSP_DIR := . +config BSP_DIR + string + option env="BSP_ROOT" + default "." -RTT_DIR := ../../../.. +config RTT_DIR + string + option env="RTT_ROOT" + default "rt-thread" -PKGS_DIR := packages +# you can change the RTT_ROOT default "rt-thread" +# example : default "F:/git_repositories/rt-thread" -config XUANTIAN_XIAOHUI_R920 +config PKGS_DIR + string + option env="PKGS_ROOT" + default "packages" + +config ENV_DIR + string + option env="ENV_ROOT" + default "/" + + config XUANTIAN_XIAOHUI_R920 bool select ARCH_RISCV64 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y -source "$(RTT_DIR)/Kconfig" -osource "$PKGS_DIR/Kconfig" -rsource "board/Kconfig" +source "$RTT_DIR/Kconfig" +source "$PKGS_DIR/Kconfig" +source "$BSP_DIR/board/Kconfig" From 96803faef49401cdb3cd5c09d0e7554a7ae13e18 Mon Sep 17 00:00:00 2001 From: MuChenger Date: Tue, 23 Sep 2025 16:17:28 +0800 Subject: [PATCH 12/12] [fix] formate code --- bsp/xuantie/smartl/e902/rtconfig_preinc.h | 1 + bsp/xuantie/smartl/e906/rtconfig_preinc.h | 21 +++++++++++---------- bsp/xuantie/smartl/e907/rtconfig_preinc.h | 1 + bsp/xuantie/xiaohui/c906/rtconfig_preinc.h | 1 + bsp/xuantie/xiaohui/c907/rtconfig_preinc.h | 1 + bsp/xuantie/xiaohui/c908/rtconfig_preinc.h | 1 + bsp/xuantie/xiaohui/c910/rtconfig_preinc.h | 1 + bsp/xuantie/xiaohui/r908/rtconfig_preinc.h | 1 + bsp/xuantie/xiaohui/r910/rtconfig_preinc.h | 1 + bsp/xuantie/xiaohui/r920/rtconfig_preinc.h | 1 + 10 files changed, 20 insertions(+), 10 deletions(-) diff --git a/bsp/xuantie/smartl/e902/rtconfig_preinc.h b/bsp/xuantie/smartl/e902/rtconfig_preinc.h index 4812006ddb6..8dedcfbfed0 100644 --- a/bsp/xuantie/smartl/e902/rtconfig_preinc.h +++ b/bsp/xuantie/smartl/e902/rtconfig_preinc.h @@ -24,3 +24,4 @@ #define _REENT_SMALL #endif /*RTCONFIG_PREINC_H__*/ + diff --git a/bsp/xuantie/smartl/e906/rtconfig_preinc.h b/bsp/xuantie/smartl/e906/rtconfig_preinc.h index b3b35d3976a..8ef5ecc9bb6 100644 --- a/bsp/xuantie/smartl/e906/rtconfig_preinc.h +++ b/bsp/xuantie/smartl/e906/rtconfig_preinc.h @@ -5,17 +5,17 @@ /* Automatically generated file; DO NOT EDIT. */ /* RT-Thread pre-include file */ -#define CLI_CONFIG_STACK_SIZE 4096 -#define CONFIG_ARCH_INTERRUPTSTACK 4096 -#define CONFIG_ARCH_MAINSTACK 4096 -#define CONFIG_BOARD_SMARTL_EVB 1 -#define CONFIG_CPU_XUANTIE_E906FD 1 -#define CONFIG_CSI "csi2" -#define CONFIG_CSI_V2 1 +#define CLI_CONFIG_STACK_SIZE 4096 +#define CONFIG_ARCH_INTERRUPTSTACK 4096 +#define CONFIG_ARCH_MAINSTACK 4096 +#define CONFIG_BOARD_SMARTL_EVB 1 +#define CONFIG_CPU_XUANTIE_E906FD 1 +#define CONFIG_CSI "csi2" +#define CONFIG_CSI_V2 1 #define CONFIG_KERNEL_RTTHREAD 1 -#define CONFIG_SUPPORT_IRQ_NESTED 0 -#define CONFIG_SUPPORT_TSPEND 0 -#define CONFIG_XIP 1 +#define CONFIG_SUPPORT_IRQ_NESTED 0 +#define CONFIG_SUPPORT_TSPEND 0 +#define CONFIG_XIP 1 #define RT_USING_LIBC #define RT_USING_NEWLIBC #define _POSIX_C_SOURCE 1 @@ -24,3 +24,4 @@ #define _REENT_SMALL #endif /*RTCONFIG_PREINC_H__*/ + diff --git a/bsp/xuantie/smartl/e907/rtconfig_preinc.h b/bsp/xuantie/smartl/e907/rtconfig_preinc.h index 6fb2be75a58..65060ef286d 100644 --- a/bsp/xuantie/smartl/e907/rtconfig_preinc.h +++ b/bsp/xuantie/smartl/e907/rtconfig_preinc.h @@ -24,3 +24,4 @@ #define _REENT_SMALL #endif /*RTCONFIG_PREINC_H__*/ + diff --git a/bsp/xuantie/xiaohui/c906/rtconfig_preinc.h b/bsp/xuantie/xiaohui/c906/rtconfig_preinc.h index 43597240ace..bfe0d4bfeac 100644 --- a/bsp/xuantie/xiaohui/c906/rtconfig_preinc.h +++ b/bsp/xuantie/xiaohui/c906/rtconfig_preinc.h @@ -33,3 +33,4 @@ #define _REENT_SMALL #endif /*RTCONFIG_PREINC_H__*/ + diff --git a/bsp/xuantie/xiaohui/c907/rtconfig_preinc.h b/bsp/xuantie/xiaohui/c907/rtconfig_preinc.h index 78911554055..962f2799645 100644 --- a/bsp/xuantie/xiaohui/c907/rtconfig_preinc.h +++ b/bsp/xuantie/xiaohui/c907/rtconfig_preinc.h @@ -33,3 +33,4 @@ #define _REENT_SMALL #endif /*RTCONFIG_PREINC_H__*/ + diff --git a/bsp/xuantie/xiaohui/c908/rtconfig_preinc.h b/bsp/xuantie/xiaohui/c908/rtconfig_preinc.h index 4b829e9ec46..e8d8974105a 100644 --- a/bsp/xuantie/xiaohui/c908/rtconfig_preinc.h +++ b/bsp/xuantie/xiaohui/c908/rtconfig_preinc.h @@ -33,3 +33,4 @@ #define _REENT_SMALL #endif /*RTCONFIG_PREINC_H__*/ + diff --git a/bsp/xuantie/xiaohui/c910/rtconfig_preinc.h b/bsp/xuantie/xiaohui/c910/rtconfig_preinc.h index 067d0f4df4f..8ecfccb0c77 100644 --- a/bsp/xuantie/xiaohui/c910/rtconfig_preinc.h +++ b/bsp/xuantie/xiaohui/c910/rtconfig_preinc.h @@ -33,3 +33,4 @@ #define _REENT_SMALL #endif /*RTCONFIG_PREINC_H__*/ + diff --git a/bsp/xuantie/xiaohui/r908/rtconfig_preinc.h b/bsp/xuantie/xiaohui/r908/rtconfig_preinc.h index 3e2afda54f3..9defb7a5a51 100644 --- a/bsp/xuantie/xiaohui/r908/rtconfig_preinc.h +++ b/bsp/xuantie/xiaohui/r908/rtconfig_preinc.h @@ -33,3 +33,4 @@ #define _REENT_SMALL #endif /*RTCONFIG_PREINC_H__*/ + diff --git a/bsp/xuantie/xiaohui/r910/rtconfig_preinc.h b/bsp/xuantie/xiaohui/r910/rtconfig_preinc.h index 6ca6e3da99d..a3826ec92b9 100644 --- a/bsp/xuantie/xiaohui/r910/rtconfig_preinc.h +++ b/bsp/xuantie/xiaohui/r910/rtconfig_preinc.h @@ -33,3 +33,4 @@ #define _REENT_SMALL #endif /*RTCONFIG_PREINC_H__*/ + diff --git a/bsp/xuantie/xiaohui/r920/rtconfig_preinc.h b/bsp/xuantie/xiaohui/r920/rtconfig_preinc.h index a1ed5f56986..7827d269dc5 100644 --- a/bsp/xuantie/xiaohui/r920/rtconfig_preinc.h +++ b/bsp/xuantie/xiaohui/r920/rtconfig_preinc.h @@ -33,3 +33,4 @@ #define _REENT_SMALL #endif /*RTCONFIG_PREINC_H__*/ +