Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2345VOR
rt-thread
提交
59f32078
R
rt-thread
项目概览
2345VOR
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
59f32078
编写于
2月 02, 2021
作者:
B
Bernard Xiong
提交者:
GitHub
2月 02, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #4286 from Michael0066/ls1b-dev
ls1b: fix the count of GPIO IRQ
上级
b42a43cd
4de8848a
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
46 addition
and
14 deletion
+46
-14
bsp/ls1cdev/Kconfig
bsp/ls1cdev/Kconfig
+1
-1
bsp/ls1cdev/rtconfig.h
bsp/ls1cdev/rtconfig.h
+1
-1
bsp/ls2kdev/Kconfig
bsp/ls2kdev/Kconfig
+10
-1
bsp/ls2kdev/drivers/drv_uart.c
bsp/ls2kdev/drivers/drv_uart.c
+14
-8
bsp/ls2kdev/rtconfig.h
bsp/ls2kdev/rtconfig.h
+2
-0
libcpu/mips/gs232/gs232.h
libcpu/mips/gs232/gs232.h
+8
-1
libcpu/mips/gs232/interrupt.c
libcpu/mips/gs232/interrupt.c
+0
-1
libcpu/mips/gs232/ls1b.h
libcpu/mips/gs232/ls1b.h
+10
-1
未找到文件。
bsp/ls1cdev/Kconfig
浏览文件 @
59f32078
...
...
@@ -19,7 +19,7 @@ source "$RTT_DIR/Kconfig"
source "$RTT_DIR/libcpu/mips/common/Kconfig"
source "$PKGS_DIR/Kconfig"
config SOC_1C300
config SOC_
LS
1C300
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
...
...
bsp/ls1cdev/rtconfig.h
浏览文件 @
59f32078
...
...
@@ -161,7 +161,7 @@
/* samples: kernel and components samples */
#define SOC_1C300
#define SOC_
LS
1C300
#define RT_LS1C_BAICAIBOARD
#define RT_USING_SELF_BOOT
#define RT_SELF_BOOT_DEBUG
...
...
bsp/ls2kdev/Kconfig
浏览文件 @
59f32078
...
...
@@ -30,3 +30,12 @@ config SOC_LS2K1000
select RT_USING_DEVICE
default y
if RT_USING_SERIAL
config RT_USING_UART0
bool "Using RT_USING_UART0"
default y
config RT_USING_UART4
bool "Using RT_USING_UART4"
default y
endif
bsp/ls2kdev/drivers/drv_uart.c
浏览文件 @
59f32078
...
...
@@ -156,26 +156,32 @@ struct rt_serial_device serial, serial4;
void
rt_hw_uart_init
(
void
)
{
struct
rt_uart_ls2k
*
uart
,
*
uart4
;
struct
serial_configure
config
=
RT_SERIAL_CONFIG_DEFAULT
;
uart
=
&
uart_dev0
;
uart4
=
&
uart_dev4
;
#ifdef RT_USING_UART0
struct
rt_uart_ls2k
*
uart0
;
uart0
=
&
uart_dev0
;
serial
.
ops
=
&
ls2k_uart_ops
;
serial
.
config
=
config_uart0
;
serial4
.
ops
=
&
ls2k_uart_ops
;
serial4
.
config
=
config
;
rt_hw_interrupt_install
(
uart
->
IRQ
,
uart_irq_handler
,
&
serial
,
"UART0"
);
rt_hw_interrupt_install
(
uart4
->
IRQ
,
uart_irq_handler
,
&
serial4
,
"UART4"
);
rt_hw_interrupt_install
(
uart0
->
IRQ
,
uart_irq_handler
,
&
serial
,
"UART0"
);
/* register UART device */
rt_hw_serial_register
(
&
serial
,
"uart0"
,
RT_DEVICE_FLAG_RDWR
|
RT_DEVICE_FLAG_INT_RX
,
uart
);
uart0
);
#endif
#ifdef RT_USING_UART4
struct
rt_uart_ls2k
*
uart4
;
uart4
=
&
uart_dev4
;
serial4
.
ops
=
&
ls2k_uart_ops
;
serial4
.
config
=
config
;
rt_hw_interrupt_install
(
uart4
->
IRQ
,
uart_irq_handler
,
&
serial4
,
"UART4"
);
rt_hw_serial_register
(
&
serial4
,
"uart4"
,
RT_DEVICE_FLAG_RDWR
|
RT_DEVICE_FLAG_INT_RX
,
&
uart_dev4
);
#endif
}
/*@}*/
bsp/ls2kdev/rtconfig.h
浏览文件 @
59f32078
...
...
@@ -232,5 +232,7 @@
/* samples: kernel and components samples */
#define SOC_LS2K1000
#define RT_USING_UART0
#define RT_USING_UART4
#endif
libcpu/mips/gs232/gs232.h
浏览文件 @
59f32078
...
...
@@ -17,7 +17,14 @@
#define INTC_BASE 0xBFD01040
#ifdef SOC_LS1B
#define GS232_INTC_CELLS 4
#endif
#ifdef SOC_LS1C300
#define GS232_INTC_CELLS 5
#endif
#define GS232_NR_IRQS (32 * GS232_INTC_CELLS)
#define GMAC0_BASE 0xBFE10000
...
...
libcpu/mips/gs232/interrupt.c
浏览文件 @
59f32078
...
...
@@ -22,7 +22,6 @@
#define MAX_INTR (GS232_NR_IRQS)
static
struct
rt_irq_desc
irq_handle_table
[
MAX_INTR
];
void
rt_interrupt_dispatch
(
void
*
ptreg
);
void
rt_hw_timer_handler
();
static
struct
gs232_intc_regs
volatile
*
gs232_hw0_icregs
...
...
libcpu/mips/gs232/ls1b.h
浏览文件 @
59f32078
...
...
@@ -19,6 +19,15 @@
#define LS1B_UART1_IRQ 3
#define LS1B_UART2_IRQ 4
#define LS1B_UART3_IRQ 5
#define LS1B_UART4_IRQ 29
#define LS1B_UART5_IRQ 30
#define LS1B_UART6_IRQ 2 //共享LS1B_UART0_IRQ
#define LS1B_UART7_IRQ 2
#define LS1B_UART8_IRQ 2
#define LS1B_UART9_IRQ 3 //共享LS1B_UART1_IRQ
#define LS1B_UART10_IRQ 3
#define LS1B_UART11_IRQ 3
#define LS1B_CAN0_IRQ 6
#define LS1B_CAN1_IRQ 7
#define LS1B_SPI0_IRQ 8
...
...
@@ -49,7 +58,7 @@
#define LS1B_GPIO_IRQ 64
#define LS1B_GPIO_FIRST_IRQ 64
#define LS1B_GPIO_IRQ_COUNT
96
#define LS1B_GPIO_IRQ_COUNT
64
#define LS1B_GPIO_LAST_IRQ (LS1B_GPIO_FIRST_IRQ + LS1B_GPIO_IRQ_COUNT-1)
#define INT_PCI_INTA (1<<6)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录