-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgpio.h
24 lines (22 loc) · 1.92 KB
/
gpio.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#define P1DDR (*(volatile unsigned char*) (0xffffb0)) /* Port 1 Data Direction Register */
#define P2DDR (*(volatile unsigned char*) (0xffffb1)) /* Port 2 Data Direction Register */
#define P1DR (*(volatile unsigned char*) (0xffffb2)) /* Port 1 Data Register */
#define P2DR (*(volatile unsigned char*) (0xffffb3)) /* Port 2 Data Register */
#define P3DDR (*(volatile unsigned char*) (0xffffb4)) /* Port 3 Data Direction Register */
#define P4DDR (*(volatile unsigned char*) (0xffffb5)) /* Port 4 Data Direction Register */
#define P3DR (*(volatile unsigned char*) (0xffffb6)) /* Port 3 Data Register */
#define P4DR (*(volatile unsigned char*) (0xffffb7)) /* Port 4 Data Register */
#define P5DDR (*(volatile unsigned char*) (0xffffb8)) /* Port 5 Data Direction Register */
#define P6DDR (*(volatile unsigned char*) (0xffffb9)) /* Port 6 Data Direction Register */
#define P5DR (*(volatile unsigned char*) (0xffffba)) /* Port 5 Data Register */
#define P6DR (*(volatile unsigned char*) (0xffffbb)) /* Port 6 Data Register */
#define PBODR (*(volatile unsigned char*) (0xffffbc)) /* Port B Output Direction Register */
#define P8DDR (*(volatile unsigned char*) (0xffffbd)) /* Port 8 Data Direction Register (write) */
#define PBPIN (*(volatile unsigned char*) (0xffffbd)) /* Port B ????????????? (read) */
#define PBDDR (*(volatile unsigned char*) (0xffffbe)) /* Port B Data Direction Register (write) */
#define P7PIN (*(volatile unsigned char*) (0xffffbe)) /* Port 7 ????????????? (read) */
#define P8DR (*(volatile unsigned char*) (0xffffbf)) /* Port 8 Data Register */
#define P9DDR (*(volatile unsigned char*) (0xffffc0)) /* Port 9 Data Direction Register */
#define P9DR (*(volatile unsigned char*) (0xffffc1)) /* Port 9 Data Register */
#define PDDDR (*(volatile unsigned char*) (0xffff4f)) /* Port D Data Direction Register */
#define PDODR (*(volatile unsigned char*) (0xffff4d)) /* Port D Data Register */