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

Function directModeInput

CapacitiveSensor.h:144–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144static inline __attribute__((always_inline))
145void 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
155static inline __attribute__((always_inline))
156void 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