8 * Data Direction Register
11 #define PORTCONF_P1DDR ((volatile uint8 *)0xfee000)
12 #define PORTCONF_P2DDR ((volatile uint8 *)0xfee001)
13 #define PORTCONF_P4DDR ((volatile uint8 *)0xFEE003)
14 #define PORTCONF_P8DDR ((volatile uint8 *)0xfee007)
15 #define PORTCONF_PADDR ((volatile uint8 *)0xFEE009)
16 #define PORTCONF_PBDDR ((volatile uint8 *)0xfee00a)
22 #define PORTCONF_P4DR ((volatile uint8 *)0xFFFFD3)
23 #define PORTCONF_P7DR ((volatile uint8 *)0xFFFFD6)
24 #define PORTCONF_PADR ((volatile uint8 *)0xFFFFD9)
25 #define PORTCONF_PBDR ((volatile uint8 *)0xFFFFDA)
31 #define PORTCONF_PABIT_LEDG (1 << 2)
32 #define PORTCONF_PABIT_LEDR (1 << 3)
33 #define PORTCONF_PABIT_SWRE (1 << 4)
34 #define PORTCONF_PABIT_LED1 (1 << 6)
35 #define PORTCONF_PABIT_LED2 (1 << 7)
37 #define PORTCONF_PBBIT_SCLK (1 << 5)
38 #define PORTCONF_PBBIT_MOSI (1 << 6)
39 #define PORTCONF_PBBIT_MISO (1 << 7)
41 #define PORTCONF_P4BIT_SDCCS (1 << 0)
42 #define PORTCONF_P4BIT_SDCDET (1 << 1)
43 #define PORTCONF_P4BIT_VSCCS (1 << 2)
44 #define PORTCONF_P4BIT_VSDCS (1 << 3)
45 #define PORTCONF_P4BIT_VSDREQ (1 << 4)
46 #define PORTCONF_P4BIT_VSRST (1 << 5)
47 #define PORTCONF_P4BIT_LCD_RES (1 << 7)
49 #define PORTCONF_P7BIT_SW1 (1 << 0)
50 #define PORTCONF_P7BIT_SW2 (1 << 1)
55 #define PORTCONF_SDC_DETECT() (!(*PORTCONF_P4DR & PORTCONF_P4BIT_SDCDET))