|
29 | 29 | #endif |
30 | 30 |
|
31 | 31 | #ifndef DEBUG_ERROR |
32 | | -# if defined(ARDUINO_AVR_UNO_WIFI_REV2) |
33 | | -# define DEBUG_ERROR(fmt, ...) Debug.print(DBG_ERROR, fmt, ## __VA_ARGS__) |
34 | | -# else |
35 | | -# define DEBUG_ERROR(fmt, ...) Debug.print(DBG_ERROR, fmt, ## __VA_ARGS__) |
36 | | -# endif |
| 32 | + #define DEBUG_ERROR(fmt, ...) Debug.print(DBG_ERROR, fmt, ## __VA_ARGS__) |
37 | 33 | #endif |
38 | 34 |
|
39 | 35 | #ifndef DEBUG_WARNING |
40 | | -# if defined(ARDUINO_AVR_UNO_WIFI_REV2) |
41 | | -# define DEBUG_WARNING(fmt, ...) |
42 | | -# else |
43 | | -# define DEBUG_WARNING(fmt, ...) Debug.print(DBG_WARNING, fmt, ## __VA_ARGS__) |
44 | | -# endif |
| 36 | + #define DEBUG_WARNING(fmt, ...) Debug.print(DBG_WARNING, fmt, ## __VA_ARGS__) |
45 | 37 | #endif |
46 | 38 |
|
47 | 39 | #ifndef DEBUG_INFO |
48 | | -# if defined(ARDUINO_AVR_UNO_WIFI_REV2) |
49 | | -# define DEBUG_INFO(fmt, ...) |
50 | | -# else |
51 | | -# define DEBUG_INFO(fmt, ...) Debug.print(DBG_INFO, fmt, ## __VA_ARGS__) |
52 | | -# endif |
| 40 | + #define DEBUG_INFO(fmt, ...) Debug.print(DBG_INFO, fmt, ## __VA_ARGS__) |
53 | 41 | #endif |
54 | 42 |
|
55 | 43 | #ifndef DEBUG_DEBUG |
56 | | -# if defined(ARDUINO_AVR_UNO_WIFI_REV2) |
57 | | -# define DEBUG_DEBUG(fmt, ...) |
58 | | -# else |
59 | | -# define DEBUG_DEBUG(fmt, ...) Debug.print(DBG_DEBUG, fmt, ## __VA_ARGS__) |
60 | | -# endif |
| 44 | + #define DEBUG_DEBUG(fmt, ...) Debug.print(DBG_DEBUG, fmt, ## __VA_ARGS__) |
61 | 45 | #endif |
62 | 46 |
|
63 | 47 | #ifndef DEBUG_VERBOSE |
64 | | -# if defined(ARDUINO_AVR_UNO_WIFI_REV2) |
65 | | -# define DEBUG_VERBOSE(fmt, ...) |
66 | | -# else |
67 | | -# define DEBUG_VERBOSE(fmt, ...) //Debug.print(DBG_VERBOSE, fmt, ## __VA_ARGS__) |
68 | | -# endif |
69 | | -#endif |
70 | | - |
71 | | -#if defined(ARDUINO_AVR_UNO_WIFI_REV2) && !(defined(DEBUG_ERROR) || defined(DEBUG_WARNING) || defined(DEBUG_INFO) || defined(DEBUG_DEBUG) || defined(DEBUG_VERBOSE)) |
72 | | -/* Provide defines for constants provided within Arduino_DebugUtils |
73 | | - * in order to allow older sketches using those constants to still |
74 | | - * compile. |
75 | | - */ |
76 | | -# define DBG_NONE -1 |
77 | | -# define DBG_ERROR 0 |
78 | | -# define DBG_WARNING 1 |
79 | | -# define DBG_INFO 2 |
80 | | -# define DBG_DEBUG 3 |
81 | | -# define DBG_VERBOSE 4 |
| 48 | + #define DEBUG_VERBOSE(fmt, ...) //Debug.print(DBG_VERBOSE, fmt, ## __VA_ARGS__) |
82 | 49 | #endif |
83 | 50 |
|
84 | 51 | /****************************************************************************** |
85 | 52 | * AUTOMATICALLY CONFIGURED DEFINES |
86 | 53 | ******************************************************************************/ |
87 | 54 |
|
88 | | -#if defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_NANO_33_IOT) || \ |
89 | | - defined(ARDUINO_AVR_UNO_WIFI_REV2) |
| 55 | +#if defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_NANO_33_IOT) |
90 | 56 | #define OTA_STORAGE_SNU (1) |
91 | 57 | #else |
92 | 58 | #define OTA_STORAGE_SNU (0) |
|
114 | 80 | #define OTA_STORAGE_ESP (1) |
115 | 81 | #endif |
116 | 82 |
|
117 | | -#if (OTA_STORAGE_SFU || OTA_STORAGE_SSU || OTA_STORAGE_SNU || OTA_STORAGE_PORTENTA_QSPI || OTA_STORAGE_ESP) && !defined(ARDUINO_AVR_UNO_WIFI_REV2) |
| 83 | +#if (OTA_STORAGE_SFU || OTA_STORAGE_SSU || OTA_STORAGE_SNU || OTA_STORAGE_PORTENTA_QSPI || OTA_STORAGE_ESP) |
118 | 84 | #define OTA_ENABLED (1) |
119 | 85 | #else |
120 | 86 | #define OTA_ENABLED (0) |
|
133 | 99 | #define HAS_TCP |
134 | 100 | #endif |
135 | 101 |
|
136 | | -#if defined(ARDUINO_AVR_UNO_WIFI_REV2) || \ |
137 | | - defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_NANO_33_IOT) |
| 102 | +#if defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_NANO_33_IOT) |
138 | 103 | #define BOARD_HAS_OFFLOADED_ECCX08 |
139 | 104 | #define HAS_TCP |
140 | 105 | #endif |
|
0 commit comments