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 const static uint32_t dsc_pin_map[6U][2U] = {
24 {PIN_DSC_MOUT1IN, PIN_DSC_MOUT1EN},
25 {PIN_DSC_MOUT2IN, PIN_DSC_MOUT2EN},
26 {PIN_DSC_MOUT3IN, PIN_DSC_MOUT3EN},
27 {PIN_DSC_MOUT4IN, PIN_DSC_MOUT4EN},
28 {PIN_DSC_MOUT5IN, PIN_DSC_MOUT5EN},
29 {PIN_DSC_MOUT6IN, PIN_DSC_MOUT6EN}
33 int8_t drv_mout_set(uint8_t pin, uint8_t val)
39 hal_gpio_pin_set_value(dsc_pin_map[pin][0], val);
44 int8_t drv_mout_diag(uint8_t pin)
50 if (hal_gpio_pin_get_value(dsc_pin_map[pin][1]) == 1)