Searched refs:mux_i (Results 1 – 2 of 2) sorted by relevance
262 mraa_gpio_context mux_i; in mraa_setup_mux_mapped() local263 mux_i = mraa_gpio_init_raw(meta.mux[mi].pin); in mraa_setup_mux_mapped()264 if (mux_i == NULL) { in mraa_setup_mux_mapped()269 mraa_gpio_dir(mux_i, MRAA_GPIO_OUT); in mraa_setup_mux_mapped()270 mraa_gpio_owner(mux_i, 0); in mraa_setup_mux_mapped()272 if (mraa_gpio_write(mux_i, meta.mux[mi].value) != MRAA_SUCCESS) { in mraa_setup_mux_mapped()273 mraa_gpio_close(mux_i); in mraa_setup_mux_mapped()276 mraa_gpio_close(mux_i); in mraa_setup_mux_mapped()
204 mraa_gpio_context mux_i; in mraa_pwm_init() local205 mux_i = mraa_gpio_init_raw(plat->pins[pin].gpio.pinmap); in mraa_pwm_init()206 if (mux_i == NULL) { in mraa_pwm_init()210 if (mraa_gpio_dir(mux_i, MRAA_GPIO_OUT) != MRAA_SUCCESS) { in mraa_pwm_init()214 if (mraa_gpio_write(mux_i, 1) != MRAA_SUCCESS) { in mraa_pwm_init()218 if (mraa_gpio_close(mux_i) != MRAA_SUCCESS) { in mraa_pwm_init()