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