MCPcopy Create free account
hub / github.com/DanielOgorchock/ST_Anything / directWriteHigh

Function directWriteHigh

Arduino/libraries/OneWire/OneWire.h:228–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228static inline __attribute__((always_inline))
229void directWriteHigh(volatile IO_REG_TYPE *base, IO_REG_TYPE pin)
230{
231 if (SS_GPIO == GPIO_TYPE(pin)) {
232 WRITE_ARC_REG(READ_ARC_REG(base) | (0x01 << GPIO_ID(pin)), base);
233 } else {
234 MMIO_REG_VAL(base) |= (0x01 << GPIO_ID(pin));
235 }
236}
237
238#define DIRECT_READ(base, pin) directRead(base, pin)
239#define DIRECT_MODE_INPUT(base, pin) directModeInput(base, pin)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected