3 #define H8_3069F_P7DR ((volatile uint8 *)0xFFFFD6)
4 #define H8_3069F_PADR ((volatile uint8 *)0xFFFFD9)
6 #define SW_BIT_P7_SW1 (1 << 0)
7 #define SW_BIT_P7_SW2 (1 << 1)
8 #define SW_BIT_PA_SWRE (1 << 4)
15 uint8 sw_read(sw_target_t target)
20 c = (*H8_3069F_P7DR & SW_BIT_P7_SW1) ? 0 : 1;
23 c = (*H8_3069F_P7DR & SW_BIT_P7_SW2) ? 0 : 1;
26 c = (*H8_3069F_PADR & SW_BIT_PA_SWRE) ? 0 : 1;