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

Function directModeInput

Arduino/libraries/OneWire/OneWire.h:196–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196static inline __attribute__((always_inline))
197void directModeInput(volatile IO_REG_TYPE *base, IO_REG_TYPE pin)
198{
199 if (SS_GPIO == GPIO_TYPE(pin)) {
200 WRITE_ARC_REG(READ_ARC_REG((((IO_REG_TYPE)base) + DIR_OFFSET_SS)) & ~(0x01 << GPIO_ID(pin)),
201 ((IO_REG_TYPE)(base) + DIR_OFFSET_SS));
202 } else {
203 MMIO_REG_VAL_FROM_BASE((IO_REG_TYPE)base, DIR_OFFSET_SOC) &= ~(0x01 << GPIO_ID(pin));
204 }
205}
206
207static inline __attribute__((always_inline))
208void 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