* <tr>\r
* <td>VTARGET_ADC_CHANNEL</td>\r
* <td>Makefile CDEFS</td>\r
- * <td>ADC channel number (on supported AVRs) to use for VTARGET level detection.</td> \r
+ * <td>ADC channel number (on supported AVRs) to use for VTARGET level detection, if NO_VTARGET_DETECT is not defined.</td> \r
* </tr>\r
* <tr>\r
* <td>ENABLE_ISP_PROTOCOL</td>\r
* seperate ISP, PDI, and TPI programming headers) but increases programming speed dramatically.\r
* <i>Ignored when compiled for the XPLAIN board.</i></td> \r
* </tr>\r
+ * <tr>\r
+ * <td>NO_VTARGET_DETECT</td>\r
+ * <td>Makefile CDEFS</td>\r
+ * <td>Define to disable VTARGET sampling and reporting on AVR models with an ADC converter. This will cause the programmer\r
+ * to report a fixed 5V target voltage to the host regardless of the real target voltage.</td> \r
+ * </tr>\r
* </table>\r
*/\r
*/\r
void V2Params_UpdateParamValues(void)\r
{\r
- #if defined(ADC)\r
+ #if (defined(ADC) && !defined(NO_VTARGET_DETECT))\r
/* Update VTARGET parameter with the latest ADC conversion of VTARGET on supported AVR models */\r
V2Params_GetParamFromTable(PARAM_VTARGET)->ParamValue = ((5 * 10 * ADC_GetResult()) / 1024);\r
#endif\r
CDEFS += -DENABLE_ISP_PROTOCOL\r
CDEFS += -DENABLE_XPROG_PROTOCOL\r
#CDEFS += -DXPROG_VIA_HARDWARE_USART\r
+#CDEFS += -DNO_VTARGET_DETECT\r
\r
\r
# Place -D or -U options here for ASM sources\r