Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bsp/xuantie/smartl/e902/.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_XUANTIAN_XIAOHUI_E902=y

#
# RT-Thread Kernel
Expand Down Expand Up @@ -187,6 +188,9 @@ CONFIG_RT_VER_NUM=0x50201
CONFIG_RT_BACKTRACE_LEVEL_MAX_NR=32
# end of RT-Thread Kernel

CONFIG_ARCH_RISCV=y
CONFIG_ARCH_RISCV32=y

#
# RT-Thread Components
#
Expand Down Expand Up @@ -805,6 +809,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0

# CONFIG_PKG_USING_NRF5X_SDK is not set
# CONFIG_PKG_USING_NRFX is not set
# CONFIG_PKG_USING_NUCLEI_SDK is not set
# CONFIG_PKG_USING_RASPBERRYPI_PICO_SDK is not set
# CONFIG_PKG_USING_MM32 is not set

Expand Down
7 changes: 7 additions & 0 deletions bsp/xuantie/smartl/e902/Kconfig
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E902在smartl平台上运行

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修正 458c6f6

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ RTT_DIR := ../../../..

PKGS_DIR := packages

config XUANTIAN_XIAOHUI_E902
bool
select ARCH_RISCV32
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y

source "$(RTT_DIR)/Kconfig"
osource "$PKGS_DIR/Kconfig"
rsource "board/Kconfig"
4 changes: 4 additions & 0 deletions bsp/xuantie/smartl/e902/rtconfig.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__

#define XUANTIAN_XIAOHUI_E902

/* RT-Thread Kernel */

/* klibc options */
Expand Down Expand Up @@ -108,6 +110,8 @@
#define RT_VER_NUM 0x50201
#define RT_BACKTRACE_LEVEL_MAX_NR 32
/* end of RT-Thread Kernel */
#define ARCH_RISCV
#define ARCH_RISCV32

/* RT-Thread Components */

Expand Down
1 change: 0 additions & 1 deletion bsp/xuantie/smartl/e902/rtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
MCPU_DEFINE = ' -DCONFIG_CPU_XUANTIE_E902=1 ' # Modify here based on CPU architecture.
DEVICE = MCPU + MCPU_DEFINE + ' -Wno-main -mcmodel=medlow'

# 提取全局宏定义
GLOBAL_DEFINES = (
'-DCONFIG_KERNEL_RTTHREAD=1 '
'-D__RT_KERNEL_SOURCE__=1 '
Expand Down
1 change: 0 additions & 1 deletion bsp/xuantie/smartl/e907/rtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
MCPU_DEFINE = ' -DCONFIG_CPU_XUANTIE_E907FD=1 ' # Modify here based on CPU architecture.
DEVICE = MCPU + MCPU_DEFINE + ' -Wno-main -mcmodel=medlow'

# 提取全局宏定义
GLOBAL_DEFINES = (
'-DCONFIG_KERNEL_RTTHREAD=1 '
'-D__RT_KERNEL_SOURCE__=1 '
Expand Down
7 changes: 5 additions & 2 deletions bsp/xuantie/xiaohui/c906/.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CONFIG_XUANTIAN_XIAOHUI_R920=y
CONFIG_XUANTIAN_XIAOHUI_C906=y

#
# RT-Thread Kernel
Expand Down Expand Up @@ -191,6 +191,9 @@ CONFIG_RT_BACKTRACE_LEVEL_MAX_NR=32

CONFIG_ARCH_CPU_64BIT=y
CONFIG_ARCH_RISCV=y
CONFIG_ARCH_RISCV_FPU=y
# CONFIG_ARCH_RISCV_FPU_S is not set
CONFIG_ARCH_RISCV_FPU_D=y
CONFIG_ARCH_RISCV64=y
CONFIG_ARCH_USING_NEW_CTX_SWITCH=y

Expand Down Expand Up @@ -1350,6 +1353,6 @@ CONFIG_SOC_XUANTIE=y
#
CONFIG_BSP_USING_UART=y
CONFIG_BSP_USING_UART0=y
# CONFIG_ENABLE_FPU is not set
CONFIG_ENABLE_FPU=y
# end of On-chip Peripheral Drivers
# end of Hardware Drivers Config
2 changes: 1 addition & 1 deletion bsp/xuantie/xiaohui/c906/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RTT_DIR := ../../../..

PKGS_DIR := packages

config XUANTIAN_XIAOHUI_R920
config XUANTIAN_XIAOHUI_C906
bool
select ARCH_RISCV64
select RT_USING_COMPONENTS_INIT
Expand Down
4 changes: 2 additions & 2 deletions bsp/xuantie/xiaohui/c906/qemu.bat
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ if exist "!CONFIG_FILE!" (
:: Load CPU parameter from config file or set default
if exist "!CPU_CONFIG_FILE!" (
set /p CPU_PARAM=<"!CPU_CONFIG_FILE!"
if not defined CPU_PARAM set "CPU_PARAM=c906"
if not defined CPU_PARAM set "CPU_PARAM=c906fd"
) else (
set "CPU_PARAM=c906"
set "CPU_PARAM=c906fd"
)

:: Prompt for new QEMU directory
Expand Down
5 changes: 4 additions & 1 deletion bsp/xuantie/xiaohui/c906/rtconfig.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__

#define XUANTIAN_XIAOHUI_R920
#define XUANTIAN_XIAOHUI_C906

/* RT-Thread Kernel */

Expand Down Expand Up @@ -112,6 +112,8 @@
/* end of RT-Thread Kernel */
#define ARCH_CPU_64BIT
#define ARCH_RISCV
#define ARCH_RISCV_FPU
#define ARCH_RISCV_FPU_D
#define ARCH_RISCV64
#define ARCH_USING_NEW_CTX_SWITCH

Expand Down Expand Up @@ -389,6 +391,7 @@

#define BSP_USING_UART
#define BSP_USING_UART0
#define ENABLE_FPU
/* end of On-chip Peripheral Drivers */
/* end of Hardware Drivers Config */

Expand Down
1 change: 0 additions & 1 deletion bsp/xuantie/xiaohui/c906/rtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
MCPU_DEFINE = ' -DCONFIG_CPU_XUANTIE_C906FD=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 '
Expand Down
1 change: 0 additions & 1 deletion bsp/xuantie/xiaohui/c907/rtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
MCPU_DEFINE = ' -DCONFIG_CPU_XUANTIE_C907=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 '
Expand Down
2 changes: 1 addition & 1 deletion bsp/xuantie/xiaohui/c908/.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CONFIG_XUANTIAN_XIAOHUI_C907=y
CONFIG_XUANTIAN_XIAOHUI_C908=y

#
# RT-Thread Kernel
Expand Down
2 changes: 1 addition & 1 deletion bsp/xuantie/xiaohui/c908/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RTT_DIR := ../../../..

PKGS_DIR := packages

config XUANTIAN_XIAOHUI_C907
config XUANTIAN_XIAOHUI_C908
bool
select ARCH_RISCV64
select RT_USING_COMPONENTS_INIT
Expand Down
2 changes: 1 addition & 1 deletion bsp/xuantie/xiaohui/c908/rtconfig.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__

#define XUANTIAN_XIAOHUI_C907
#define XUANTIAN_XIAOHUI_C908

/* RT-Thread Kernel */

Expand Down
2 changes: 1 addition & 1 deletion bsp/xuantie/xiaohui/c910/.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CONFIG_XUANTIAN_XIAOHUI_C907=y
CONFIG_XUANTIAN_XIAOHUI_C910=y

#
# RT-Thread Kernel
Expand Down
2 changes: 1 addition & 1 deletion bsp/xuantie/xiaohui/c910/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RTT_DIR := ../../../..

PKGS_DIR := packages

config XUANTIAN_XIAOHUI_C907
config XUANTIAN_XIAOHUI_C910
bool
select ARCH_RISCV64
select RT_USING_COMPONENTS_INIT
Expand Down
4 changes: 3 additions & 1 deletion bsp/xuantie/xiaohui/c910/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# XuanTie - C910 Series
# XuanTie - C910/C920MP Series

当前BSP同时支持C910/C920MP!

## 一 简介

Expand Down
2 changes: 1 addition & 1 deletion bsp/xuantie/xiaohui/c910/rtconfig.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef RT_CONFIG_H__
#define RT_CONFIG_H__

#define XUANTIAN_XIAOHUI_C907
#define XUANTIAN_XIAOHUI_C910

/* RT-Thread Kernel */

Expand Down
1 change: 0 additions & 1 deletion bsp/xuantie/xiaohui/c910/rtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
MCPU_DEFINE = ' -DCONFIG_CPU_XUANTIE_C910V3=1 ' # Modify here based on CPU architecture.
DEVICE = MCPU + ' -Wno-main -mcmodel=medany -MP -MMD '

# 提取全局宏定义
GLOBAL_DEFINES = (
' -DCONFIG_KERNEL_RTTHREAD=1 '
' -D__RT_KERNEL_SOURCE__=1 '
Expand Down
1 change: 0 additions & 1 deletion bsp/xuantie/xiaohui/r908/rtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
MCPU_DEFINE = ' -DCONFIG_CPU_XUANTIE_R908=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 '
Expand Down
1 change: 0 additions & 1 deletion bsp/xuantie/xiaohui/r910/rtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
MCPU_DEFINE = ' -DCONFIG_CPU_XUANTIE_R910=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 '
Expand Down
1 change: 0 additions & 1 deletion bsp/xuantie/xiaohui/r920/rtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
MCPU_DEFINE = ' -DCONFIG_CPU_XUANTIE_R920=1 ' # Modify here based on CPU architecture.
DEVICE = MCPU + ' -Wno-main -mcmodel=medany -MP -MMD '

# 提取全局宏定义
GLOBAL_DEFINES = (
' -DCONFIG_KERNEL_RTTHREAD=1 '
' -D__RT_KERNEL_SOURCE__=1 '
Expand Down