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