Go to the documentation of this file.
16 #define KS8695_GPIO_OFFSET (0xF0000 + 0xE600)
17 #define KS8695_GPIO_VA (KS8695_IO_VA + KS8695_GPIO_OFFSET)
18 #define KS8695_GPIO_PA (KS8695_IO_PA + KS8695_GPIO_OFFSET)
21 #define KS8695_IOPM (0x00)
22 #define KS8695_IOPC (0x04)
23 #define KS8695_IOPD (0x08)
27 #define IOPM(x) (1 << (x))
30 #define IOPC_IOTIM1EN (1 << 17)
31 #define IOPC_IOTIM0EN (1 << 16)
32 #define IOPC_IOEINT3EN (1 << 15)
33 #define IOPC_IOEINT3TM (7 << 12)
34 #define IOPC_IOEINT3_MODE(x) ((x) << 12)
35 #define IOPC_IOEINT2EN (1 << 11)
36 #define IOPC_IOEINT2TM (7 << 8)
37 #define IOPC_IOEINT2_MODE(x) ((x) << 8)
38 #define IOPC_IOEINT1EN (1 << 7)
39 #define IOPC_IOEINT1TM (7 << 4)
40 #define IOPC_IOEINT1_MODE(x) ((x) << 4)
41 #define IOPC_IOEINT0EN (1 << 3)
42 #define IOPC_IOEINT0TM (7 << 0)
43 #define IOPC_IOEINT0_MODE(x) ((x) << 0)
46 #define IOPC_TM_LOW (0)
47 #define IOPC_TM_HIGH (1)
48 #define IOPC_TM_RISING (2)
49 #define IOPC_TM_FALLING (4)
50 #define IOPC_TM_EDGE (6)
53 #define IOPD(x) (1 << (x))