MCPcopy Create free account
hub / github.com/PaulStoffregen/SerialFlash / directModeInput

Function directModeInput

util/SerialFlash_directwrite.h:143–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected