16 lines
581 B
C
16 lines
581 B
C
#ifndef CONTROLLER_WIRING_DEBUG_H
|
|
#define CONTROLLER_WIRING_DEBUG_H
|
|
|
|
#include <logger.h>
|
|
|
|
#ifdef WIRING_PI_DEBUG
|
|
#define LOG_WIRING_PI LOG_TRACE
|
|
#define wiringPiSetup() LOG_WIRING_PI("wiringPi wiringPiSetup()\n")
|
|
#define wiringPiSetupSys() LOG_WIRING_PI("wiringPi wiringPiSetupSys()\n")
|
|
#define pinMode(x,y) LOG_WIRING_PI("wiringPi pinMode(%d, %d)\n", x, y)
|
|
#define digitalWrite(x,y) LOG_WIRING_PI("wiringPi digitalWrite(%d, %d)\n", x, y)
|
|
|
|
#define piFaceSetup(x) LOG_WIRING_PI("wiringPi piFaceSetup(%d)\n", x)
|
|
#endif
|
|
|
|
#endif /* CONTROLLER_WIRING_DEBUG_H */
|