Home
last modified time | relevance | path

Searched refs:mux_i (Results 1 – 2 of 2) sorted by relevance

/hardware/bsp/intel/peripheral/libmraa/src/
Dmraa.c262 mraa_gpio_context mux_i; in mraa_setup_mux_mapped() local
263 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()
/hardware/bsp/intel/peripheral/libmraa/src/pwm/
Dpwm.c204 mraa_gpio_context mux_i; in mraa_pwm_init() local
205 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()