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-04-13 22:50:55 +00:00
|
|
|
#include <logger.h>
|
|
|
|
|
2020-02-09 23:58:17 +00:00
|
|
|
#ifdef WIRING_PI_DEBUG
|
2020-04-18 21:53:21 +00:00
|
|
|
#if WIRING_PI_DEBUG > 1
|
|
|
|
#define LOG_WIRING_DEBUG(x, ...) LOG_DEBUG(x, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
#define LOG_WIRING_DEBUG(x, ...)
|
|
|
|
#endif
|
|
|
|
|
2020-04-13 23:51:40 +00:00
|
|
|
#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)
|
2020-04-13 22:50:55 +00:00
|
|
|
|
2020-04-13 23:51:40 +00:00
|
|
|
#define piFaceSetup(x) LOG_WIRING_DEBUG("wiringPi piFaceSetup(%d)", x)
|
2020-01-07 01:23:16 +00:00
|
|
|
#endif
|
2020-02-09 23:58:17 +00:00
|
|
|
|
|
|
|
#endif /* CONTROLLER_WIRING_DEBUG_H */
|