@@ -228,6 +228,7 @@ enum class BoardId : unsigned int
228
228
tool1lc_v0 = 0 ,
229
229
exp1hce_v0,
230
230
ate,
231
+ szp,
231
232
exp1xd_v0,
232
233
tool1lc_v1,
233
234
@@ -243,6 +244,7 @@ constexpr const char * BoardTypeNames[] =
243
244
" TOOL1LC" , // version 1.0 or earlier
244
245
" EXP1HCE" ,
245
246
" unknown" , // for ATE we need to look at the second board type pin
247
+ " SZP" ,
246
248
" EXP1XD" ,
247
249
" TOOL1LC" , // version 1.1 or later
248
250
@@ -257,6 +259,7 @@ constexpr unsigned int BoardTypeVersions[] =
257
259
0 ,
258
260
0 ,
259
261
0 ,
262
+ 0 ,
260
263
1 ,
261
264
0 ,
262
265
0
@@ -267,6 +270,7 @@ constexpr const Pin *LedPinsTables[] =
267
270
LedPins_Tool1LC_v0,
268
271
LedPins_Exp1HCE,
269
272
LedPins_Ate,
273
+ LedPins_SZP,
270
274
LedPins_Exp1XD,
271
275
LedPins_Tool1LC_v1,
272
276
LedPins_Ate,
@@ -278,6 +282,7 @@ constexpr bool LedActiveHigh[] =
278
282
LedActiveHigh_Tool1LC_v0,
279
283
LedActiveHigh_Exp1HCE,
280
284
LedActiveHigh_Ate,
285
+ LedActiveHigh_SZP,
281
286
LedActiveHigh_Exp1XD,
282
287
LedActiveHigh_Tool1LC_v1,
283
288
LedActiveHigh_Ate,
@@ -289,6 +294,7 @@ constexpr Pin CanResetPins[] =
289
294
CanResetPin_Tool1LC,
290
295
CanResetPin_Exp1HCE,
291
296
NoPin,
297
+ CanResetPin_SZP,
292
298
CanResetPin_Exp1XD,
293
299
CanResetPin_Tool1LC,
294
300
CanResetPin_AteCM,
@@ -301,6 +307,7 @@ constexpr float BoardTypeFractions[] =
301
307
1.0 /(1.0 + 10.0 ), // TOOL1LC v1.0 has 1K lower resistor, 10K upper
302
308
4.7 /(4.7 + 27.0 ), // EXP1HCE has 4K7 lower resistor, 27K upper
303
309
3.0 /(3.0 + 12.0 ), // ATECM and ATEIO have 3K lower, 12K upper
310
+ 4.7 /(4.7 + 10.0 ), // SZP has 4K7 lower, 10K upper
304
311
4.7 /(4.7 + 4.7 ), // EXP1XD has 4K7 lower resistor, 4K7 upper
305
312
10.0 /(1.0 + 10.0 ), // TOOL1LC v1.1 has 10K lower resistor, 1K upper
306
313
};
@@ -313,7 +320,8 @@ constexpr uint16_t BoardIdDecisionPoints[] =
313
320
(uint16_t )((BoardTypeFractions[0 ] + BoardTypeFractions[1 ]) * (AdcRange/2 )),
314
321
(uint16_t )((BoardTypeFractions[1 ] + BoardTypeFractions[2 ]) * (AdcRange/2 )),
315
322
(uint16_t )((BoardTypeFractions[2 ] + BoardTypeFractions[3 ]) * (AdcRange/2 )),
316
- (uint16_t )((BoardTypeFractions[3 ] + BoardTypeFractions[4 ]) * (AdcRange/2 ))
323
+ (uint16_t )((BoardTypeFractions[3 ] + BoardTypeFractions[4 ]) * (AdcRange/2 )),
324
+ (uint16_t )((BoardTypeFractions[4 ] + BoardTypeFractions[5 ]) * (AdcRange/2 ))
317
325
};
318
326
319
327
static_assert (ARRAY_SIZE(BoardIdDecisionPoints) + 1 == ARRAY_SIZE(BoardTypeFractions));
0 commit comments