MCPcopy Create free account
hub / github.com/WiringPi/WiringPi / pullUpDnControlEx

Function pullUpDnControlEx

wiringPi/test/wpi_test.h:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58
59void pullUpDnControlEx (int GPIO, int GPIOIN, int mode) {
60 pullUpDnControl (GPIO, mode);
61 int out = mode==PUD_UP ? 1:0;
62 printf("in = %4s ", mode==PUD_UP ? "up":"down");
63 delayMicroseconds(5000);
64 CheckGPIO(GPIO, GPIOIN, out);
65}
66
67
68void CheckSameText(const char* msg, const char* value, const char* expect) {

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 3

pullUpDnControlFunction · 0.85
delayMicrosecondsFunction · 0.85
CheckGPIOFunction · 0.85

Tested by

no test coverage detected