15 lines
510 B
C
15 lines
510 B
C
#ifndef CONTROLLER_WIRING_DEBUG_H
|
|
#define CONTROLLER_WIRING_DEBUG_H
|
|
|
|
#include <logger.h>
|
|
|
|
#ifdef WIRING_PI_DEBUG
|
|
#define wiringPiSetup() LOG_INFO("wiringPi wiringPiSetup()")
|
|
#define wiringPiSetupSys() LOG_INFO("wiringPi wiringPiSetupSys()")
|
|
#define pinMode(x,y) LOG_INFO("wiringPi pinMode(%d, %d)", x, y)
|
|
#define digitalWrite(x,y) LOG_INFO("wiringPi digitalWrite(%d, %d)", x, y)
|
|
|
|
#define piFaceSetup(x) LOG_INFO("wiringPi piFaceSetup(%d)", x)
|
|
#endif
|
|
|
|
#endif /* CONTROLLER_WIRING_DEBUG_H */
|