[bsp][cvitek] 修复cv1800b默认中断号的配置问题
This commit is contained in:
parent
a8d5a645f2
commit
ac2f7f05bf
|
@ -5,11 +5,13 @@
|
||||||
针对算能系列 RISC-V 芯片的 bsp,包括:
|
针对算能系列 RISC-V 芯片的 bsp,包括:
|
||||||
|
|
||||||
- 大核
|
- 大核
|
||||||
|
|
||||||
| 芯片名称 | 芯片架构 | 内存大小 | 默认日志串口 | 备注 |
|
| 芯片名称 | 芯片架构 | 内存大小 | 默认日志串口 | 备注 |
|
||||||
| ------- | ------- |------- | -------- | -------- |
|
| ------- | ------- |------- | -------- | -------- |
|
||||||
| cv1800b | RISC-V C906 | 64MByte | uart0 | 默认开启 MMU,运行 RT-SMART 模式 |
|
| cv1800b | RISC-V C906 | 64MByte | uart0 | 默认开启 MMU,运行 RT-SMART 模式 |
|
||||||
|
|
||||||
- 小核
|
- 小核
|
||||||
|
|
||||||
| 目录 | 内存大小 | 默认日志串口 | 备注 |
|
| 目录 | 内存大小 | 默认日志串口 | 备注 |
|
||||||
| ---- | ------- | -------- | --- |
|
| ---- | ------- | -------- | --- |
|
||||||
| c906-little | 与大核共享 | uart1 | 无 MMU,运行 RT-Thread 标准 |
|
| c906-little | 与大核共享 | uart1 | 无 MMU,运行 RT-Thread 标准 |
|
||||||
|
|
|
@ -1056,6 +1056,7 @@ CONFIG_BSP_USING_UART=y
|
||||||
# CONFIG_RT_USING_UART0 is not set
|
# CONFIG_RT_USING_UART0 is not set
|
||||||
CONFIG_RT_USING_UART1=y
|
CONFIG_RT_USING_UART1=y
|
||||||
CONFIG_UART_IRQ_BASE=30
|
CONFIG_UART_IRQ_BASE=30
|
||||||
|
# CONFIG_BSP_USING_I2C is not set
|
||||||
CONFIG_BSP_USING_C906_LITTLE=y
|
CONFIG_BSP_USING_C906_LITTLE=y
|
||||||
CONFIG_PLIC_PHY_ADDR=0x70000000
|
CONFIG_PLIC_PHY_ADDR=0x70000000
|
||||||
CONFIG_IRQ_MAX_NR=128
|
CONFIG_IRQ_MAX_NR=128
|
||||||
|
|
|
@ -8,11 +8,11 @@ menu "General Drivers Configuration"
|
||||||
if BSP_USING_UART
|
if BSP_USING_UART
|
||||||
config RT_USING_UART0
|
config RT_USING_UART0
|
||||||
bool "Enable UART 0"
|
bool "Enable UART 0"
|
||||||
default y
|
default n
|
||||||
|
|
||||||
config RT_USING_UART1
|
config RT_USING_UART1
|
||||||
bool "Enable UART 1"
|
bool "Enable UART 1"
|
||||||
default n
|
default y
|
||||||
|
|
||||||
config UART_IRQ_BASE
|
config UART_IRQ_BASE
|
||||||
int
|
int
|
||||||
|
|
|
@ -1101,7 +1101,7 @@ CONFIG_RT_USING_LDSO=y
|
||||||
#
|
#
|
||||||
CONFIG_BSP_USING_UART=y
|
CONFIG_BSP_USING_UART=y
|
||||||
CONFIG_RT_USING_UART0=y
|
CONFIG_RT_USING_UART0=y
|
||||||
CONFIG_UART_IRQ_BASE=30
|
CONFIG_UART_IRQ_BASE=44
|
||||||
# CONFIG_RT_USING_UART1 is not set
|
# CONFIG_RT_USING_UART1 is not set
|
||||||
# CONFIG_RT_USING_UART2 is not set
|
# CONFIG_RT_USING_UART2 is not set
|
||||||
# CONFIG_RT_USING_UART3 is not set
|
# CONFIG_RT_USING_UART3 is not set
|
||||||
|
|
|
@ -12,7 +12,7 @@ menu "General Drivers Configuration"
|
||||||
|
|
||||||
config UART_IRQ_BASE
|
config UART_IRQ_BASE
|
||||||
int
|
int
|
||||||
default 30
|
default 44
|
||||||
|
|
||||||
config RT_USING_UART1
|
config RT_USING_UART1
|
||||||
bool "Enable UART 1"
|
bool "Enable UART 1"
|
||||||
|
|
|
@ -304,7 +304,7 @@
|
||||||
|
|
||||||
#define BSP_USING_UART
|
#define BSP_USING_UART
|
||||||
#define RT_USING_UART0
|
#define RT_USING_UART0
|
||||||
#define UART_IRQ_BASE 30
|
#define UART_IRQ_BASE 44
|
||||||
#define BSP_USING_CV1800B
|
#define BSP_USING_CV1800B
|
||||||
#define C906_PLIC_PHY_ADDR 0x70000000
|
#define C906_PLIC_PHY_ADDR 0x70000000
|
||||||
#define IRQ_MAX_NR 64
|
#define IRQ_MAX_NR 64
|
||||||
|
|
|
@ -56,4 +56,4 @@ if PLATFORM == 'gcc':
|
||||||
CXXFLAGS = CFLAGS
|
CXXFLAGS = CFLAGS
|
||||||
|
|
||||||
DUMP_ACTION = OBJDUMP + ' -D -S $TARGET > rtthread.asm\n'
|
DUMP_ACTION = OBJDUMP + ' -D -S $TARGET > rtthread.asm\n'
|
||||||
POST_ACTION = OBJCPY + ' -O binary $TARGET Image\n' + SIZE + ' $TARGET \n' + './mksdimg.sh\n' + 'cd ../ && ./combine-fip.sh\n'
|
POST_ACTION = OBJCPY + ' -O binary $TARGET Image\n' + SIZE + ' $TARGET \n' + './mksdimg.sh\n'
|
||||||
|
|
Loading…
Reference in New Issue