controller-legacy/include/wiring_debug.h

11 lines
349 B
C
Raw Normal View History

2020-02-09 23:58:17 +00:00
#ifndef CONTROLLER_WIRING_DEBUG_H
#define CONTROLLER_WIRING_DEBUG_H
2020-01-07 01:23:16 +00:00
2020-02-09 23:58:17 +00:00
#ifdef WIRING_PI_DEBUG
#define wiringPiSetup() LOG_INFO("wiringP wiringPiSetup()")
#define pinMode(x,y) LOG_INFO("wiringPi pinMode(%d, %d)", x, y)
#define digitalWrite(x,y) LOG_INFO("wiringPi digitalWrite(%d, %d)", x, y)
2020-01-07 01:23:16 +00:00
#endif
2020-02-09 23:58:17 +00:00
#endif /* CONTROLLER_WIRING_DEBUG_H */