|
| 1 | +/* |
| 2 | + This file is part of Arduino_Portenta_OTA. |
| 3 | +
|
| 4 | + Copyright 2024 ARDUINO SA (http://www.arduino.cc/) |
| 5 | +
|
| 6 | + This software is released under the GNU General Public License version 3, |
| 7 | + which covers the main part of arduino-cli. |
| 8 | + The terms of this license can be found at: |
| 9 | + https://www.gnu.org/licenses/gpl-3.0.en.html |
| 10 | +
|
| 11 | + You can be released from the requirements of the above licenses by purchasing |
| 12 | + a commercial license. Buying such a license is mandatory if you want to modify or |
| 13 | + otherwise use the software for commercial activities involving the Arduino |
| 14 | + software without disclosing the source code of your own applications. To purchase |
| 15 | + a commercial license, send an email to [email protected]. |
| 16 | +*/ |
| 17 | + |
| 18 | +#ifndef ARDUINO_PORTENTA_OTA_DEBUG_H_ |
| 19 | +#define ARDUINO_PORTENTA_OTA_DEBUG_H_ |
| 20 | + |
| 21 | +/****************************************************************************** |
| 22 | + * INCLUDE |
| 23 | + ******************************************************************************/ |
| 24 | + |
| 25 | +#if defined __has_include |
| 26 | + #if __has_include (<Arduino_DebugUtils.h>) |
| 27 | + #include <Arduino_DebugUtils.h> |
| 28 | + #else |
| 29 | + #define ARDUINO_PORTENTA_OTA_NO_DEBUG |
| 30 | + #endif |
| 31 | +#else |
| 32 | + #define ARDUINO_PORTENTA_OTA_NO_DEBUG |
| 33 | +#endif |
| 34 | + |
| 35 | +#ifdef ARDUINO_PORTENTA_OTA_NO_DEBUG |
| 36 | + #define DEBUG_ERROR(fmt, ...) ((void)0) |
| 37 | + #define DEBUG_WARNING(fmt, ...) ((void)0) |
| 38 | + #define DEBUG_INFO(fmt, ...) ((void)0) |
| 39 | + #define DEBUG_DEBUG(fmt, ...) ((void)0) |
| 40 | + #define DEBUG_VERBOSE(fmt, ...) ((void)0) |
| 41 | +#endif |
| 42 | +#undef ARDUINO_PORTENTA_OTA_NO_DEBUG |
| 43 | + |
| 44 | +#endif /* ARDUINO_PORTENTA_OTA_DEBUG_H_ */ |
0 commit comments