#ifndef DRV_TGT_PORT_DEF_H
#define DRV_TGT_PORT_DEF_H
+#include <stdint.h>
+
/* Port names */
enum port_id {
PORT_ID_GIOA,
_PORT_COUNT,
};
+#define PORT_ADC_CHANNELS 16
+
+static double port_adc_lsb2volts(uint16_t lsb)
+{
+ return ((double)lsb + 0.0)*2.5/4095*2;
+}
+
#endif