| 226 | } |
| 227 | |
| 228 | static inline __attribute__((always_inline)) |
| 229 | void directWriteHigh(volatile IO_REG_TYPE *base, IO_REG_TYPE pin) |
| 230 | { |
| 231 | if (SS_GPIO == GPIO_TYPE(pin)) { |
| 232 | WRITE_ARC_REG(READ_ARC_REG(base) | (0x01 << GPIO_ID(pin)), base); |
| 233 | } else { |
| 234 | MMIO_REG_VAL(base) |= (0x01 << GPIO_ID(pin)); |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | #define DIRECT_READ(base, pin) directRead(base, pin) |
| 239 | #define DIRECT_MODE_INPUT(base, pin) directModeInput(base, pin) |
nothing calls this directly
no outgoing calls
no test coverage detected