From 501b22aabede2d4e179bfc47f3b75522e5933da4 Mon Sep 17 00:00:00 2001 From: 7YZ7 <82019212+7YZ7@users.noreply.github.com> Date: Tue, 18 Apr 2023 10:26:23 +0800 Subject: [HUST CSE] Fix many abnormal symbols in annotations and format code --- libcpu/mips/gs232/ls1c.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libcpu/mips') 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) -- cgit v1.3.1