加入外设头文件,移动中断编号

This commit is contained in:
Ruige Lee
2025-01-22 17:12:40 +08:00
parent 33f2160365
commit faf8abc29a
14 changed files with 292 additions and 474 deletions

31
tb/sw/periph/uart.h Normal file
View File

@@ -0,0 +1,31 @@
#ifndef _UART_H_
#define _UART_H_
#include <stdint.h>
#define UART_BASE 0x3010000U
#define UART_TXFIFO 0x00
#define UART_RXFIFO 0x04
#define UART_TXCTRL 0x08
#define UART_TXMARK 0x0a
#define UART_RXCTRL 0x0c
#define UART_RXMARK 0x0e
#define UART_IE 0x10
#define UART_IP 0x14
#define UART_DIV 0x18
#define UART_PARITY 0x1c
#define UART_WIRE4 0x20
#define UART_EITHER8OR9 0x24
#endif