Skip to content

Commit 8524560

Browse files
committed
FPGA Analogin test: Remove usage of FULL_TEST_SHIELD symbol, increase tolerance
Keep "AnalogIn - full test" disabled due to hardware issue in the first rev of FPGA Test Shield.
1 parent 261e67b commit 8524560

File tree

1 file changed

+4
-3
lines changed
  • TESTS/mbed_hal_fpga_ci_test_shield/analogin

1 file changed

+4
-3
lines changed

TESTS/mbed_hal_fpga_ci_test_shield/analogin/main.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ using namespace utest::v1;
3434

3535
#define analogin_debug_printf(...)
3636

37-
#define DELTA_FLOAT 0.01f // 1%
38-
#define DELTA_U16 655 // 1%
37+
#define DELTA_FLOAT 0.03f // 3%
38+
#define DELTA_U16 1965 // 3%
3939

4040
const PinList *form_factor = pinmap_ff_default_pins();
4141
const PinList *restricted = pinmap_restricted_pins();
@@ -142,7 +142,8 @@ void analogin_full_test(PinName pin)
142142
Case cases[] = {
143143
// This will be run for all pins
144144
Case("AnalogIn - init test", all_ports<AnaloginPort, DefaultFormFactor, analogin_init>),
145-
#if defined(FULL_TEST_SHIELD)
145+
// This test case is disabled for now due to hardware issue in the first rev of FPGA Test Shield
146+
#if 0
146147
Case("AnalogIn - full test", all_ports<AnaloginPort, DefaultFormFactor, analogin_full_test>),
147148
#endif
148149

0 commit comments

Comments
 (0)