| 173 | } |
| 174 | |
| 175 | static inline __attribute__((always_inline)) |
| 176 | void directWriteHigh(volatile IO_REG_TYPE *base, IO_REG_TYPE pin) |
| 177 | { |
| 178 | if (SS_GPIO == GPIO_TYPE(pin)) { |
| 179 | WRITE_ARC_REG(READ_ARC_REG(base) | (0x01 << GPIO_ID(pin)), base); |
| 180 | } else { |
| 181 | MMIO_REG_VAL(base) |= (0x01 << GPIO_ID(pin)); |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | #define DIRECT_READ(base, pin) directRead(base, pin) |
| 186 | #define DIRECT_MODE_INPUT(base, pin) directModeInput(base, pin) |
nothing calls this directly
no outgoing calls
no test coverage detected