[HUST CSE] Fix many abnormal symbols in annotations and format code

This commit is contained in:
7YZ7
2023-04-18 10:26:23 +08:00
committed by GitHub
parent 3f44132ade
commit 501b22aabe
211 changed files with 1349 additions and 1350 deletions
+3 -4
View File
@@ -16,8 +16,7 @@
#define LS1C_ACPI_IRQ 0
#define LS1C_HPET_IRQ 1
//#define LS1C_UART0_IRQ 3 // linux3v1.41cֲ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)