mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
simtrace: Enable VCC detection via ADC (voltage dependent)
SIMtrace should reject any card activation at 1.8V as it is a 3[.3]V device without level shifters. For this, we must include the ADC in determining the VCC voltage. Change-Id: Ic76f06037590ff1c0dae818d5eb2c2019dd75f2d FIXME: reporting uses raw ADC voltage, not the voltage before divider
This commit is contained in:
@@ -155,3 +155,7 @@
|
||||
#endif
|
||||
/* SIMtrace board supports man-in-the-middle mode */
|
||||
//#define HAVE_MITM
|
||||
|
||||
#define DETECT_VCC_BY_ADC
|
||||
#define VCC_UV_THRESH_1V8 (1500000/2) /* 10k/10k resistive divider halves voltage */
|
||||
#define VCC_UV_THRESH_3V (2500000/2) /* 10k/10k resistive divider halves voltage */
|
||||
|
||||
Reference in New Issue
Block a user