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

Function directModeOutput

util/SerialFlash_directwrite.h:154–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154static inline __attribute__((always_inline))
155void directModeOutput(volatile IO_REG_TYPE *base, IO_REG_TYPE pin)
156{
157 if (SS_GPIO == GPIO_TYPE(pin)) {
158 WRITE_ARC_REG(READ_ARC_REG(((IO_REG_TYPE)(base) + DIR_OFFSET_SS)) | (0x01 << GPIO_ID(pin)),
159 ((IO_REG_TYPE)(base) + DIR_OFFSET_SS));
160 } else {
161 MMIO_REG_VAL_FROM_BASE((IO_REG_TYPE)base, DIR_OFFSET_SOC) |= (0x01 << GPIO_ID(pin));
162 }
163}
164
165static inline __attribute__((always_inline))
166void directWriteLow(volatile IO_REG_TYPE *base, IO_REG_TYPE pin)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected