2 * Copyright (C) 2015 Czech Technical University in Prague
5 * - Michal Sojka <sojkam1@fel.cvut.cz>
7 * This document contains proprietary information belonging to Czech
8 * Technical University in Prague. Passing on and copying of this
9 * document, and communication of its contents is not permitted
10 * without prior written authorization.
14 #ifndef DRV_TGT_PORT_DEF_H
15 #define DRV_TGT_PORT_DEF_H
29 PORT_ID_SENSOR_SUPPLY,
30 PORT_ID_DAC_ADC_LOOPBACK,
34 #define PORT_ADC_CHANNELS 24
36 static double port_adc_lsb2volts(uint16_t lsb)
38 return ((double)lsb + 0.0)*2.5/4095*2;