VCC/ADC: finish implementing VCC detection via ADC

... however, keep it disabled due to ADCVREF not being connected on
OWHWv1/v2.
This commit is contained in:
Harald Welte
2016-03-20 11:45:36 +01:00
parent 6dcacf3efe
commit 07872b6cdd
2 changed files with 82 additions and 23 deletions

View File

@@ -45,5 +45,7 @@
#define USB_PRODUCT_ID SIMTRACE_PRODUCT_ID
#define CARDEMU_SECOND_UART
/* Disable VCC/ADC detection, as OWHWv2 has no ADCVREF */
//#define DETECT_VCC_BY_ADC
#define HAVE_CARDEM