static int pinmux_initialize(struct device *port) { ARG_UNUSED(port); _pinmux_defaults(PINMUX_BASE_ADDR); /* Enable the UART RX pin to receive input */ _quark_mcu_set_mux(PINMUX_BASE_ADDR + PINMUX_INPUT_OFFSET, 5, 0x1); return 0; }
static inline void _pinmux_pullups(u32_t base_address) { _quark_mcu_set_mux(base_address + PINMUX_PULLUP_OFFSET, 104, PINMUX_PULLUP_ENABLE); }