summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
author7YZ7 <[email protected]>2023-04-18 10:26:23 +0800
committerGitHub <[email protected]>2023-04-17 22:26:23 -0400
commit501b22aabede2d4e179bfc47f3b75522e5933da4 (patch)
tree2a4c160aabc412aaded6b83ec22238bf37cab30c /libcpu
parent3f44132ade0d45e7851f46d6bb1241d10eccfff5 (diff)
[HUST CSE] Fix many abnormal symbols in annotations and format code
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/mips/gs232/ls1c.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/libcpu/mips/gs232/ls1c.h b/libcpu/mips/gs232/ls1c.h
index 6b8e3fc512..a104cc9674 100644
--- a/libcpu/mips/gs232/ls1c.h
+++ b/libcpu/mips/gs232/ls1c.h
@@ -16,8 +16,7 @@
#define LS1C_ACPI_IRQ 0
#define LS1C_HPET_IRQ 1
-//#define LS1C_UART0_IRQ 3 // linux����3��v1.4�汾��1c�ֲ�����2�������Σ���ȷ��
-#define LS1C_UART1_IRQ 4
+//#define LS1C_UART0_IRQ 3 // linux使用3,v1.4版本之前1c分配有问题,建议使用2,以确保正确
#define LS1C_UART2_IRQ 5
#define LS1C_CAN0_IRQ 6
#define LS1C_CAN1_IRQ 7
@@ -69,11 +68,11 @@
#define LS1C_LAST_IRQ 159
#define LS1C_INTREG_BASE 0xbfd01040
-// ��о1c���жϷ�Ϊ���飬ÿ��32��
+// 将1c的中断分为五组,每组32个
#define LS1C_NR_IRQS (32*5)
-// GPIO��ź��жϺ�֮��Ļ���ת��
+// GPIO引脚到中断号之间的转换
#define LS1C_GPIO_TO_IRQ(GPIOn) (LS1C_GPIO_FIRST_IRQ + (GPIOn))
#define LS1C_IRQ_TO_GPIO(IRQn) ((IRQn) - LS1C_GPIO_FIRST_IRQ)