1 /* Copyright (C) 2012-2013 Czech Technical University in Prague
4 * - Carlos Jenkins <carlos@jenkins.co.cr>
6 * This document contains proprietary information belonging to Czech
7 * Technical University in Prague. Passing on and copying of this
8 * document, and communication of its contents is not permitted
9 * without prior written authorization.
13 * RPP driver implementation for MOUT.
17 * hal/gpio_tms570_def.h
23 int8_t drv_mout_set(uint8_t pin, uint8_t val)
29 dio_port_desc_t* mout_in_port = dio_port_get_dsc(DIO_PORT_NAME_MOUTIN, -1);
31 dio_gpio_pin_set_value(mout_in_port->config[pin], val);
36 int8_t drv_mout_diag(uint8_t pin)
42 dio_port_desc_t* mout_en_port = dio_port_get_dsc(DIO_PORT_NAME_MOUTEN, -1);
44 if (dio_gpio_pin_get_value(mout_en_port->config[pin]) == 1)