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

Function directWriteHigh

CapacitiveSensor.h:176–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176static inline __attribute__((always_inline))
177void directWriteHigh(volatile IO_REG_TYPE *base, IO_REG_TYPE pin)
178{
179 if (SS_GPIO == GPIO_TYPE(pin)) {
180 WRITE_ARC_REG(READ_ARC_REG(base) | (0x01 << GPIO_ID(pin)), base);
181 } else {
182 MMIO_REG_VAL(base) |= (0x01 << GPIO_ID(pin));
183 }
184}
185
186#define DIRECT_READ(base, pin) directRead(base, pin)
187#define DIRECT_MODE_INPUT(base, pin) directModeInput(base, pin)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected