From cb4a370c71b0e910c2822c23cedfd7dd263a9d10 Mon Sep 17 00:00:00 2001 From: WangShun Date: Sun, 28 Sep 2025 16:11:30 +0800 Subject: [PATCH] =?UTF-8?q?[bsp/xuantie]=20=E6=B7=BB=E5=8A=A0bsp=E5=AF=BC?= =?UTF-8?q?=E5=85=A5rt-studio=E7=9B=B8=E5=85=B3=E6=96=87=E4=BB=B6=20(#1072?= =?UTF-8?q?8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [fix] 更新e906的以BSP导入RT-Studio相关文件 --- 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 | 27 + .../.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 | 27 + 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/Kconfig | 29 +- bsp/xuantie/smartl/e907/rtconfig_preinc.h | 27 + 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/Kconfig | 31 +- bsp/xuantie/xiaohui/c906/rtconfig_preinc.h | 36 + 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/Kconfig | 31 +- bsp/xuantie/xiaohui/c907/rtconfig_preinc.h | 36 + 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/Kconfig | 31 +- bsp/xuantie/xiaohui/c908/rtconfig.py | 1 - bsp/xuantie/xiaohui/c908/rtconfig_preinc.h | 36 + 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/Kconfig | 31 +- bsp/xuantie/xiaohui/c910/rtconfig_preinc.h | 36 + 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/Kconfig | 31 +- bsp/xuantie/xiaohui/r908/rtconfig_preinc.h | 36 + 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/Kconfig | 33 +- bsp/xuantie/xiaohui/r910/rtconfig.py | 2 +- bsp/xuantie/xiaohui/r910/rtconfig_preinc.h | 36 + 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/Kconfig | 31 +- bsp/xuantie/xiaohui/r920/rtconfig_preinc.h | 36 + 60 files changed, 9269 insertions(+), 70 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 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 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 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 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 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 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 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 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 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/smartl/e902/.cproject b/bsp/xuantie/smartl/e902/.cproject new file mode 100644 index 0000000000..b04746362d --- /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 0000000000..c7455faa7a --- /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 0000000000..9f1acfcfba --- /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 0000000000..81d9ee44ab --- /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 3ac0af3361..8680668cf0 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 0000000000..8dedcfbfed --- /dev/null +++ b/bsp/xuantie/smartl/e902/rtconfig_preinc.h @@ -0,0 +1,27 @@ + +#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__*/ + 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 0000000000..9f1acfcfba --- /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 0000000000..adb75f76a1 --- /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 be399204b6..8fe8e876e9 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 0000000000..8ef5ecc9bb --- /dev/null +++ b/bsp/xuantie/smartl/e906/rtconfig_preinc.h @@ -0,0 +1,27 @@ + +#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__*/ + diff --git a/bsp/xuantie/smartl/e907/.cproject b/bsp/xuantie/smartl/e907/.cproject new file mode 100644 index 0000000000..ed1bae1b67 --- /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 0000000000..c7455faa7a --- /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 0000000000..9f1acfcfba --- /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 0000000000..0e3b37beb7 --- /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/Kconfig b/bsp/xuantie/smartl/e907/Kconfig index 33efda6fee..a7754dca2e 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/smartl/e907/rtconfig_preinc.h b/bsp/xuantie/smartl/e907/rtconfig_preinc.h new file mode 100644 index 0000000000..65060ef286 --- /dev/null +++ b/bsp/xuantie/smartl/e907/rtconfig_preinc.h @@ -0,0 +1,27 @@ + +#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__*/ + diff --git a/bsp/xuantie/xiaohui/c906/.cproject b/bsp/xuantie/xiaohui/c906/.cproject new file mode 100644 index 0000000000..b6fe322204 --- /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 0000000000..c7455faa7a --- /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 0000000000..9f1acfcfba --- /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 0000000000..ae19a2ed1b --- /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/Kconfig b/bsp/xuantie/xiaohui/c906/Kconfig index 5aac66a07b..e655475423 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/c906/rtconfig_preinc.h b/bsp/xuantie/xiaohui/c906/rtconfig_preinc.h new file mode 100644 index 0000000000..bfe0d4bfea --- /dev/null +++ b/bsp/xuantie/xiaohui/c906/rtconfig_preinc.h @@ -0,0 +1,36 @@ + +#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__*/ + diff --git a/bsp/xuantie/xiaohui/c907/.cproject b/bsp/xuantie/xiaohui/c907/.cproject new file mode 100644 index 0000000000..13ddfd54a4 --- /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 0000000000..c7455faa7a --- /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 0000000000..9f1acfcfba --- /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 0000000000..9a225d82fd --- /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/Kconfig b/bsp/xuantie/xiaohui/c907/Kconfig index ccf39a9657..7986b1ff29 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/c907/rtconfig_preinc.h b/bsp/xuantie/xiaohui/c907/rtconfig_preinc.h new file mode 100644 index 0000000000..962f279964 --- /dev/null +++ b/bsp/xuantie/xiaohui/c907/rtconfig_preinc.h @@ -0,0 +1,36 @@ + +#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__*/ + diff --git a/bsp/xuantie/xiaohui/c908/.cproject b/bsp/xuantie/xiaohui/c908/.cproject new file mode 100644 index 0000000000..e7f9793968 --- /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 0000000000..c7455faa7a --- /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 0000000000..9f1acfcfba --- /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 0000000000..5a3eda931d --- /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/Kconfig b/bsp/xuantie/xiaohui/c908/Kconfig index d33282ddaf..99c62ff7da 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/c908/rtconfig.py b/bsp/xuantie/xiaohui/c908/rtconfig.py index f9fa78c99f..9f75ee9925 100644 --- a/bsp/xuantie/xiaohui/c908/rtconfig.py +++ b/bsp/xuantie/xiaohui/c908/rtconfig.py @@ -46,7 +46,6 @@ if PLATFORM == 'gcc': 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 0000000000..e8d8974105 --- /dev/null +++ b/bsp/xuantie/xiaohui/c908/rtconfig_preinc.h @@ -0,0 +1,36 @@ + +#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__*/ + diff --git a/bsp/xuantie/xiaohui/c910/.cproject b/bsp/xuantie/xiaohui/c910/.cproject new file mode 100644 index 0000000000..d875041944 --- /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 0000000000..c7455faa7a --- /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 0000000000..9f1acfcfba --- /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 0000000000..36ea174189 --- /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/Kconfig b/bsp/xuantie/xiaohui/c910/Kconfig index a7cd46358f..6b85ddc449 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/c910/rtconfig_preinc.h b/bsp/xuantie/xiaohui/c910/rtconfig_preinc.h new file mode 100644 index 0000000000..8ecfccb0c7 --- /dev/null +++ b/bsp/xuantie/xiaohui/c910/rtconfig_preinc.h @@ -0,0 +1,36 @@ + +#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__*/ + diff --git a/bsp/xuantie/xiaohui/r908/.cproject b/bsp/xuantie/xiaohui/r908/.cproject new file mode 100644 index 0000000000..1fbce3e2ae --- /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 0000000000..c7455faa7a --- /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 0000000000..9f1acfcfba --- /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 0000000000..df67663c91 --- /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/Kconfig b/bsp/xuantie/xiaohui/r908/Kconfig index 25ddbef03f..41a6fba7cb 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/r908/rtconfig_preinc.h b/bsp/xuantie/xiaohui/r908/rtconfig_preinc.h new file mode 100644 index 0000000000..9defb7a5a5 --- /dev/null +++ b/bsp/xuantie/xiaohui/r908/rtconfig_preinc.h @@ -0,0 +1,36 @@ + +#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__*/ + diff --git a/bsp/xuantie/xiaohui/r910/.cproject b/bsp/xuantie/xiaohui/r910/.cproject new file mode 100644 index 0000000000..5f3f583404 --- /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 0000000000..c7455faa7a --- /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 0000000000..9f1acfcfba --- /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 0000000000..037bd4ee60 --- /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/Kconfig b/bsp/xuantie/xiaohui/r910/Kconfig index 8b80ddb798..6f263e0019 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/r910/rtconfig.py b/bsp/xuantie/xiaohui/r910/rtconfig.py index cb92fb4d27..287b0e4fdb 100644 --- a/bsp/xuantie/xiaohui/r910/rtconfig.py +++ b/bsp/xuantie/xiaohui/r910/rtconfig.py @@ -94,6 +94,6 @@ if PLATFORM == 'gcc': 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 0000000000..a3826ec92b --- /dev/null +++ b/bsp/xuantie/xiaohui/r910/rtconfig_preinc.h @@ -0,0 +1,36 @@ + +#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__*/ + diff --git a/bsp/xuantie/xiaohui/r920/.cproject b/bsp/xuantie/xiaohui/r920/.cproject new file mode 100644 index 0000000000..ea03bf448a --- /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 0000000000..c7455faa7a --- /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 0000000000..9f1acfcfba --- /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 0000000000..84be51a1fa --- /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/Kconfig b/bsp/xuantie/xiaohui/r920/Kconfig index 4f7c32e9a6..7464b3e434 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" diff --git a/bsp/xuantie/xiaohui/r920/rtconfig_preinc.h b/bsp/xuantie/xiaohui/r920/rtconfig_preinc.h new file mode 100644 index 0000000000..7827d269dc --- /dev/null +++ b/bsp/xuantie/xiaohui/r920/rtconfig_preinc.h @@ -0,0 +1,36 @@ + +#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__*/ +