Skip to content

Commit d7cf855

Browse files
authored
src/corelibs/digitalio: Modified testcase runner. (#81)
* src/corelibs/digitalio: Added small delay in pullup. Signed-off-by: MDin <Dinesh.M-EE@infineon.com> * src/corelibs/digitalio: Gaurd delay in pullup test case. Signed-off-by: MDin <Dinesh.M-EE@infineon.com> --------- Signed-off-by: MDin <Dinesh.M-EE@infineon.com>
1 parent c5f3197 commit d7cf855

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/corelibs/digitalio/test_digitalio_single.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ TEST_IFX(digitalio_single_internal, test_digitalio_read_write_input_pullup)
8888
TEST_ASSERT_EQUAL_MESSAGE(LOW, digitalRead(TEST_PIN_DIGITAL_IO_INPUT), "Input Pin should be set to LOW");
8989

9090
digitalWrite(TEST_PIN_DIGITAL_IO_OUTPUT, HIGH); // set output pin to HIGH ie, floating state
91+
#if defined(ARDUINO_ARCH_XMC)
92+
delay(1); //To stablize the floating voltage need small delay in XMC board.
93+
#endif
9194
TEST_ASSERT_EQUAL_MESSAGE(HIGH, digitalRead(TEST_PIN_DIGITAL_IO_INPUT), "Input Pin should be set to HIGH when output is floating and input is pullup");
9295
}
9396

0 commit comments

Comments
 (0)