From b7f94dcb9f3180cc8b1c44620ae9268df884aaed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Redon?= Date: Tue, 26 Nov 2019 13:49:45 +0100 Subject: [PATCH] qmod: lower VCC threshold to 2.5V on the QMOD board the VCC signal from the modem is measured using an ADC (SIMtrace board just use card detect). the threshold to consider VCC as activated was set to 2.8V, which gives a bit of margin for the expected 3.0V. still, we had one board where the voltage was 2.8V. to be resilient against lower than expected voltages from modems (or boards), we lowered the threshold to 2.5V. this is still save for the SAM3S to correctly identify high/low levels. Change-Id: Iac2778903690045e4e63fef29f812205d00c28ed --- firmware/libcommon/source/mode_cardemu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/libcommon/source/mode_cardemu.c b/firmware/libcommon/source/mode_cardemu.c index 2d1a687b..704e6ba2 100644 --- a/firmware/libcommon/source/mode_cardemu.c +++ b/firmware/libcommon/source/mode_cardemu.c @@ -309,7 +309,7 @@ static int card_vcc_adc_init(void) } #define VCC_UV_THRESH_1V8 1500000 -#define VCC_UV_THRESH_3V 2800000 +#define VCC_UV_THRESH_3V 2500000 static void process_vcc_adc(struct cardem_inst *ci) {