加入外设头文件,移动中断编号
This commit is contained in:
31
tb/sw/periph/uart.h
Normal file
31
tb/sw/periph/uart.h
Normal 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user