Skip to content

Commit bfc1bff

Browse files
committed
fixed analog reference voltage for different hw revisions
1 parent 95f61eb commit bfc1bff

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

sam/1.0.3/variants/geolink_opentracker/variant.h

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,25 @@ static const uint8_t CANTX = 33;
219219
#define PIN_EXT_SDA 20
220220
#define PIN_EXT_SCL 21
221221
#define PIN_WAKE_GSM 23
222+
#define PIN_C_PWR_GSM 25
223+
#define PIN_RESET_GPS 26
224+
#define PIN_STANDBY_GPS 27
225+
#define PIN_EXT_IN1 28
226+
#define PIN_EXT_IN2 29
227+
#define PIN_EXT_PA22 30
228+
#define PIN_EXT_PA23 31
229+
#define PIN_CANRX 32
230+
#define PIN_CANTX 33
231+
#define PIN_EXT_MISO 34
232+
#define PIN_EXT_MOSI 35
233+
#define PIN_EXT_SCK 36
234+
#define PIN_EXT_NS0 37
222235
#if !defined(OPENTRACKER_HW_REV) || (OPENTRACKER_HW_REV < 0x0240)
223236
// HW Revision 2.3 (and earlier)
224237
#define PIN_C_REBOOT 4
225238
#define PIN_RING_GSM 22
226239
#define PIN_GSM_VDD_EXT 24
240+
#define ANALOG_VREF 3.4f
227241
#else
228242
// HW Revision 2.4
229243
// dropped "REBOOT" pin and "GSM VDD" (unused)
@@ -232,22 +246,9 @@ static const uint8_t CANTX = 33;
232246
#define PIN_RING_GSM 24
233247
#define PIN_C_IN1_PD 38
234248
#define PIN_C_IN2_PD 39
249+
#define ANALOG_VREF 3.307f
235250
#endif
236-
#define PIN_C_PWR_GSM 25
237-
#define PIN_RESET_GPS 26
238-
#define PIN_STANDBY_GPS 27
239-
#define PIN_EXT_IN1 28
240-
#define PIN_EXT_IN2 29
241-
#define PIN_EXT_PA22 30
242-
#define PIN_EXT_PA23 31
243-
#define PIN_CANRX 32
244-
#define PIN_CANTX 33
245-
#define PIN_EXT_MISO 34
246-
#define PIN_EXT_MOSI 35
247-
#define PIN_EXT_SCK 36
248-
#define PIN_EXT_NS0 37
249251

250-
#define ANALOG_VREF 3.4f
251252
#define AIN_S_INLEVEL 49
252253
#define AIN_EXT_IN1 28
253254
#define AIN_EXT_IN2 29

0 commit comments

Comments
 (0)