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

Function directWriteHigh

util/SerialFlash_directwrite.h:175–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected