| 194 | } |
| 195 | |
| 196 | static inline __attribute__((always_inline)) |
| 197 | void directModeInput(volatile IO_REG_TYPE *base, IO_REG_TYPE pin) |
| 198 | { |
| 199 | if (SS_GPIO == GPIO_TYPE(pin)) { |
| 200 | WRITE_ARC_REG(READ_ARC_REG((((IO_REG_TYPE)base) + DIR_OFFSET_SS)) & ~(0x01 << GPIO_ID(pin)), |
| 201 | ((IO_REG_TYPE)(base) + DIR_OFFSET_SS)); |
| 202 | } else { |
| 203 | MMIO_REG_VAL_FROM_BASE((IO_REG_TYPE)base, DIR_OFFSET_SOC) &= ~(0x01 << GPIO_ID(pin)); |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | static inline __attribute__((always_inline)) |
| 208 | void directModeOutput(volatile IO_REG_TYPE *base, IO_REG_TYPE pin) |
nothing calls this directly
no outgoing calls
no test coverage detected