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

Function directModeOutput

Arduino/libraries/OneWire/OneWire.h:207–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207static inline __attribute__((always_inline))
208void directModeOutput(volatile IO_REG_TYPE *base, IO_REG_TYPE pin)
209{
210 if (SS_GPIO == GPIO_TYPE(pin)) {
211 WRITE_ARC_REG(READ_ARC_REG(((IO_REG_TYPE)(base) + DIR_OFFSET_SS)) | (0x01 << GPIO_ID(pin)),
212 ((IO_REG_TYPE)(base) + DIR_OFFSET_SS));
213 } else {
214 MMIO_REG_VAL_FROM_BASE((IO_REG_TYPE)base, DIR_OFFSET_SOC) |= (0x01 << GPIO_ID(pin));
215 }
216}
217
218static inline __attribute__((always_inline))
219void 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