| 142 | } |
| 143 | |
| 144 | static inline __attribute__((always_inline)) |
| 145 | void directModeInput(volatile IO_REG_TYPE *base, IO_REG_TYPE pin) |
| 146 | { |
| 147 | if (SS_GPIO == GPIO_TYPE(pin)) { |
| 148 | WRITE_ARC_REG(READ_ARC_REG((((IO_REG_TYPE)base) + DIR_OFFSET_SS)) & ~(0x01 << GPIO_ID(pin)), |
| 149 | ((IO_REG_TYPE)(base) + DIR_OFFSET_SS)); |
| 150 | } else { |
| 151 | MMIO_REG_VAL_FROM_BASE((IO_REG_TYPE)base, DIR_OFFSET_SOC) &= ~(0x01 << GPIO_ID(pin)); |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | static inline __attribute__((always_inline)) |
| 156 | void directModeOutput(volatile IO_REG_TYPE *base, IO_REG_TYPE pin) |
nothing calls this directly
no outgoing calls
no test coverage detected