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

Function directModeOutput

CapacitiveSensor.h:155–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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