加入外设头文件,移动中断编号
This commit is contained in:
36
tb/sw/periph/gpio.h
Normal file
36
tb/sw/periph/gpio.h
Normal file
@@ -0,0 +1,36 @@
|
||||
#ifndef _GPIO_H_
|
||||
#define _GPIO_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define GPIO_BASE 0x3000000U
|
||||
|
||||
#define GPIO_VALUE 0x00
|
||||
#define GPIO_INPUT_EN 0x04
|
||||
#define GPIO_OUTPUT_EN 0x08
|
||||
#define GPIO_PORT 0x0c
|
||||
#define GPIO_PULLUP_EN 0x10
|
||||
#define GPIO_DRIVE 0x14
|
||||
#define GPIO_RISE_IE 0x18
|
||||
#define GPIO_RISE_IP 0x1c
|
||||
#define GPIO_FALL_IE 0x20
|
||||
#define GPIO_FALL_IP 0x24
|
||||
#define GPIO_HIGH_IE 0x28
|
||||
#define GPIO_HIGH_IP 0x2c
|
||||
#define GPIO_LOW_IE 0x30
|
||||
#define GPIO_LOW_IP 0x34
|
||||
#define GPIO_IOF_EN 0x38
|
||||
#define GPIO_IOF_SEL 0x3c
|
||||
#define GPIO_OUT_XOR 0x40
|
||||
#define GPIO_PASSTHRU_HIGH_IE 0x44
|
||||
#define GPIO_PASSTHRU_LOW_IE 0x48
|
||||
#define GPIO_PS 0x4c
|
||||
#define GPIO_POE 0x50
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user