diff --git a/_build_opt_8h_source.html b/_build_opt_8h_source.html
index cda11f74..1588af10 100644
--- a/_build_opt_8h_source.html
+++ b/_build_opt_8h_source.html
@@ -84,7 +84,7 @@ $(document).ready(function(){initNavTree('_build_opt_8h_source.html','');});
BuildOpt.h
-
1 #ifndef _RADIOLIB_BUILD_OPTIONS_H 2 #define _RADIOLIB_BUILD_OPTIONS_H 7 #error "Unsupported Arduino version (< 1.0.0)" 37 #if defined(RADIOLIB_CUSTOM_PLATFORM) 39 #define RADIOLIB_PLATFORM "Custom" 42 #define RADIOLIB_PIN_TYPE uint8_t 43 #define RADIOLIB_PIN_MODE uint8_t 44 #define RADIOLIB_PIN_STATUS uint8_t 45 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 46 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 47 #define RADIOLIB_NC (0xFF) 48 #define RADIOLIB_DEFAULT_SPI SPI 49 #define RADIOLIB_PROGMEM PROGMEM 50 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 93 #if defined(__AVR__) && !(defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) || defined(ARDUINO_ARCH_MEGAAVR)) 95 #define RADIOLIB_PLATFORM "Arduino AVR" 96 #define RADIOLIB_PIN_TYPE uint8_t 97 #define RADIOLIB_PIN_MODE uint8_t 98 #define RADIOLIB_PIN_STATUS uint8_t 99 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 100 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 101 #define RADIOLIB_NC (0xFF) 102 #define RADIOLIB_DEFAULT_SPI SPI 103 #define RADIOLIB_PROGMEM PROGMEM 104 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 106 #elif defined(ESP8266) 108 #define RADIOLIB_PLATFORM "ESP8266" 109 #define RADIOLIB_PIN_TYPE uint8_t 110 #define RADIOLIB_PIN_MODE uint8_t 111 #define RADIOLIB_PIN_STATUS uint8_t 112 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 113 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 114 #define RADIOLIB_NC (0xFF) 115 #define RADIOLIB_DEFAULT_SPI SPI 116 #define RADIOLIB_PROGMEM PROGMEM 117 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 120 #define RADIOLIB_EXCLUDE_ESP8266 124 #define RADIOLIB_PLATFORM "ESP32" 125 #define RADIOLIB_PIN_TYPE uint8_t 126 #define RADIOLIB_PIN_MODE uint8_t 127 #define RADIOLIB_PIN_STATUS uint8_t 128 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 129 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 130 #define RADIOLIB_NC (0xFF) 131 #define RADIOLIB_DEFAULT_SPI SPI 132 #define RADIOLIB_PROGMEM PROGMEM 133 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 134 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 135 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 138 #define RADIOLIB_TONE_UNSUPPORTED 139 #define RADIOLIB_TONE_ESP32_CHANNEL (1) 141 #elif defined(ARDUINO_ARCH_STM32) 143 #define RADIOLIB_PLATFORM "Arduino STM32 (official)" 144 #define RADIOLIB_PIN_TYPE uint32_t 145 #define RADIOLIB_PIN_MODE uint32_t 146 #define RADIOLIB_PIN_STATUS uint32_t 147 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 148 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 149 #define RADIOLIB_NC (0xFFFFFFFF) 150 #define RADIOLIB_DEFAULT_SPI SPI 151 #define RADIOLIB_PROGMEM PROGMEM 152 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 153 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 154 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 157 #define RADIOLIB_SPI_SLOWDOWN 159 #elif defined(SAMD_SERIES) 161 #define RADIOLIB_PLATFORM "Adafruit SAMD" 162 #define RADIOLIB_PIN_TYPE uint32_t 163 #define RADIOLIB_PIN_MODE uint32_t 164 #define RADIOLIB_PIN_STATUS uint32_t 165 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 166 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 167 #define RADIOLIB_NC (0xFFFFFFFF) 168 #define RADIOLIB_DEFAULT_SPI SPI 169 #define RADIOLIB_PROGMEM PROGMEM 170 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 171 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 172 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 175 #define RADIOLIB_SPI_SLOWDOWN 177 #elif defined(ARDUINO_ARCH_SAMD) 179 #define RADIOLIB_PLATFORM "Arduino SAMD" 180 #define RADIOLIB_PIN_TYPE pin_size_t 181 #define RADIOLIB_PIN_MODE PinMode 182 #define RADIOLIB_PIN_STATUS PinStatus 183 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 184 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 185 #define RADIOLIB_NC (0xFF) 186 #define RADIOLIB_DEFAULT_SPI SPI 187 #define RADIOLIB_PROGMEM PROGMEM 188 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 189 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 190 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 192 #elif defined(__SAM3X8E__) 194 #define RADIOLIB_PLATFORM "Arduino Due" 195 #define RADIOLIB_PIN_TYPE uint32_t 196 #define RADIOLIB_PIN_MODE uint32_t 197 #define RADIOLIB_PIN_STATUS uint32_t 198 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 199 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 200 #define RADIOLIB_NC (0xFFFFFFFF) 201 #define RADIOLIB_DEFAULT_SPI SPI 202 #define RADIOLIB_PROGMEM PROGMEM 203 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 204 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 205 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 206 #define RADIOLIB_TONE_UNSUPPORTED 208 #elif (defined(NRF52832_XXAA) || defined(NRF52840_XXAA)) && !defined(ARDUINO_ARDUINO_NANO33BLE) 210 #define RADIOLIB_PLATFORM "Adafruit nRF52" 211 #define RADIOLIB_PIN_TYPE uint32_t 212 #define RADIOLIB_PIN_MODE uint32_t 213 #define RADIOLIB_PIN_STATUS uint32_t 214 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 215 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 216 #define RADIOLIB_NC (0xFFFFFFFF) 217 #define RADIOLIB_DEFAULT_SPI SPI 218 #define RADIOLIB_PROGMEM PROGMEM 219 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 221 #elif defined(ARDUINO_ARC32_TOOLS) 223 #define RADIOLIB_PLATFORM "Intel Curie" 224 #define RADIOLIB_PIN_TYPE uint8_t 225 #define RADIOLIB_PIN_MODE uint8_t 226 #define RADIOLIB_PIN_STATUS uint8_t 227 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 228 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 229 #define RADIOLIB_NC (0xFF) 230 #define RADIOLIB_DEFAULT_SPI SPI 231 #define RADIOLIB_PROGMEM PROGMEM 232 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 234 #elif defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) 236 #define RADIOLIB_PLATFORM "Arduino megaAVR" 237 #define RADIOLIB_PIN_TYPE uint8_t 238 #define RADIOLIB_PIN_MODE PinMode 239 #define RADIOLIB_PIN_STATUS PinStatus 240 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 241 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 242 #define RADIOLIB_NC (0xFF) 243 #define RADIOLIB_DEFAULT_SPI SPI 244 #define RADIOLIB_PROGMEM PROGMEM 245 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 247 #elif defined(ARDUINO_ARCH_APOLLO3) 249 #define RADIOLIB_PLATFORM "Sparkfun Apollo3" 250 #define RADIOLIB_PIN_TYPE pin_size_t 251 #define RADIOLIB_PIN_MODE Arduino_PinMode 252 #define RADIOLIB_PIN_STATUS PinStatus 253 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 254 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 255 #define RADIOLIB_NC (0xFF) 256 #define RADIOLIB_DEFAULT_SPI SPI 257 #define RADIOLIB_PROGMEM PROGMEM 258 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 259 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 260 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 263 #define RADIOLIB_EXCLUDE_ESP8266 266 #define RADIOLIB_SPI_SLOWDOWN 268 #elif defined(ARDUINO_ARDUINO_NANO33BLE) 270 #define RADIOLIB_PLATFORM "Arduino Nano 33 BLE" 271 #define RADIOLIB_PIN_TYPE pin_size_t 272 #define RADIOLIB_PIN_MODE PinMode 273 #define RADIOLIB_PIN_STATUS PinStatus 274 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 275 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 276 #define RADIOLIB_NC (0xFF) 277 #define RADIOLIB_DEFAULT_SPI SPI 278 #define RADIOLIB_PROGMEM PROGMEM 279 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 280 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 281 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 284 #define RADIOLIB_EXCLUDE_ESP8266 286 #elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) 288 #define RADIOLIB_PLATFORM "Portenta H7" 289 #define RADIOLIB_PIN_TYPE pin_size_t 290 #define RADIOLIB_PIN_MODE PinMode 291 #define RADIOLIB_PIN_STATUS PinStatus 292 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 293 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 294 #define RADIOLIB_NC (0xFF) 295 #define RADIOLIB_DEFAULT_SPI SPI 296 #define RADIOLIB_PROGMEM PROGMEM 297 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 298 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 299 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 302 #define RADIOLIB_EXCLUDE_ESP8266 304 #elif defined(__STM32F4__) || defined(__STM32F1__) 306 #define RADIOLIB_PLATFORM "STM32duino (unofficial)" 307 #define RADIOLIB_PIN_TYPE uint8_t 308 #define RADIOLIB_PIN_MODE WiringPinMode 309 #define RADIOLIB_PIN_STATUS uint8_t 310 #define RADIOLIB_INTERRUPT_STATUS ExtIntTriggerMode 311 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 312 #define RADIOLIB_NC (0xFF) 313 #define RADIOLIB_DEFAULT_SPI SPI 314 #define RADIOLIB_PROGMEM PROGMEM 315 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 316 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 317 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 319 #elif defined(ARDUINO_ARCH_MEGAAVR) 321 #define RADIOLIB_PLATFORM "MegaCoreX" 322 #define RADIOLIB_PIN_TYPE uint8_t 323 #define RADIOLIB_PIN_MODE uint8_t 324 #define RADIOLIB_PIN_STATUS uint8_t 325 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 326 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 327 #define RADIOLIB_NC (0xFF) 328 #define RADIOLIB_DEFAULT_SPI SPI 329 #define RADIOLIB_PROGMEM PROGMEM 330 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 334 #define RADIOLIB_PLATFORM "Unknown" 335 #define RADIOLIB_UNKNOWN_PLATFORM 336 #define RADIOLIB_PIN_TYPE uint8_t 337 #define RADIOLIB_PIN_MODE uint8_t 338 #define RADIOLIB_PIN_STATUS uint8_t 339 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 340 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 341 #define RADIOLIB_NC (0xFF) 342 #define RADIOLIB_DEFAULT_SPI SPI 343 #define RADIOLIB_PROGMEM PROGMEM 344 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 361 #define RADIOLIB_DEBUG_PORT Serial 363 #if defined(RADIOLIB_DEBUG) 364 #define RADIOLIB_DEBUG_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); } 365 #define RADIOLIB_DEBUG_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); } 367 #define RADIOLIB_DEBUG_PRINT(...) {} 368 #define RADIOLIB_DEBUG_PRINTLN(...) {} 371 #if defined(RADIOLIB_VERBOSE) 372 #define RADIOLIB_VERBOSE_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); } 373 #define RADIOLIB_VERBOSE_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); } 375 #define RADIOLIB_VERBOSE_PRINT(...) {} 376 #define RADIOLIB_VERBOSE_PRINTLN(...) {} 385 #define RADIOLIB_SPI_PARANOID 394 #define RADIOLIB_CHECK_RANGE 415 #if !defined(RADIOLIB_STATIC_ARRAY_SIZE) 416 #define RADIOLIB_STATIC_ARRAY_SIZE 256 422 #define RADIOLIB_ASSERT(STATEVAR) { if((STATEVAR) != ERR_NONE) { return(STATEVAR); } } 427 #if defined(RADIOLIB_CHECK_RANGE) 428 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) { if(!(((VAR) >= (MIN)) && ((VAR) <= (MAX)))) { return(ERR); } } 430 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) {} 434 #define RADIOLIB_VERSION_MAJOR (0x04) 435 #define RADIOLIB_VERSION_MINOR (0x02) 436 #define RADIOLIB_VERSION_PATCH (0x00) 437 #define RADIOLIB_VERSION_EXTRA (0x00) 439 #define RADIOLIB_VERSION ((RADIOLIB_VERSION_MAJOR << 24) | (RADIOLIB_VERSION_MINOR << 16) | (RADIOLIB_VERSION_PATCH << 8) | (RADIOLIB_VERSION_EXTRA))
+ 1 #if !defined(_RADIOLIB_BUILD_OPTIONS_H) 2 #define _RADIOLIB_BUILD_OPTIONS_H 7 #error "Unsupported Arduino version (< 1.0.0)" 37 #if defined(RADIOLIB_CUSTOM_PLATFORM) 39 #define RADIOLIB_PLATFORM "Custom" 42 #define RADIOLIB_PIN_TYPE uint8_t 43 #define RADIOLIB_PIN_MODE uint8_t 44 #define RADIOLIB_PIN_STATUS uint8_t 45 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 46 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 47 #define RADIOLIB_NC (0xFF) 48 #define RADIOLIB_DEFAULT_SPI SPI 49 #define RADIOLIB_PROGMEM PROGMEM 50 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 93 #if defined(__AVR__) && !(defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) || defined(ARDUINO_ARCH_MEGAAVR)) 95 #define RADIOLIB_PLATFORM "Arduino AVR" 96 #define RADIOLIB_PIN_TYPE uint8_t 97 #define RADIOLIB_PIN_MODE uint8_t 98 #define RADIOLIB_PIN_STATUS uint8_t 99 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 100 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 101 #define RADIOLIB_NC (0xFF) 102 #define RADIOLIB_DEFAULT_SPI SPI 103 #define RADIOLIB_PROGMEM PROGMEM 104 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 106 #elif defined(ESP8266) 108 #define RADIOLIB_PLATFORM "ESP8266" 109 #define RADIOLIB_PIN_TYPE uint8_t 110 #define RADIOLIB_PIN_MODE uint8_t 111 #define RADIOLIB_PIN_STATUS uint8_t 112 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 113 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 114 #define RADIOLIB_NC (0xFF) 115 #define RADIOLIB_DEFAULT_SPI SPI 116 #define RADIOLIB_PROGMEM PROGMEM 117 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 120 #define RADIOLIB_EXCLUDE_ESP8266 124 #define RADIOLIB_PLATFORM "ESP32" 125 #define RADIOLIB_PIN_TYPE uint8_t 126 #define RADIOLIB_PIN_MODE uint8_t 127 #define RADIOLIB_PIN_STATUS uint8_t 128 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 129 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 130 #define RADIOLIB_NC (0xFF) 131 #define RADIOLIB_DEFAULT_SPI SPI 132 #define RADIOLIB_PROGMEM PROGMEM 133 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 134 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 135 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 138 #define RADIOLIB_TONE_UNSUPPORTED 139 #define RADIOLIB_TONE_ESP32_CHANNEL (1) 141 #elif defined(ARDUINO_ARCH_STM32) 143 #define RADIOLIB_PLATFORM "Arduino STM32 (official)" 144 #define RADIOLIB_PIN_TYPE uint32_t 145 #define RADIOLIB_PIN_MODE uint32_t 146 #define RADIOLIB_PIN_STATUS uint32_t 147 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 148 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 149 #define RADIOLIB_NC (0xFFFFFFFF) 150 #define RADIOLIB_DEFAULT_SPI SPI 151 #define RADIOLIB_PROGMEM PROGMEM 152 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 153 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 154 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 157 #define RADIOLIB_SPI_SLOWDOWN 159 #elif defined(SAMD_SERIES) 161 #define RADIOLIB_PLATFORM "Adafruit SAMD" 162 #define RADIOLIB_PIN_TYPE uint32_t 163 #define RADIOLIB_PIN_MODE uint32_t 164 #define RADIOLIB_PIN_STATUS uint32_t 165 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 166 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 167 #define RADIOLIB_NC (0xFFFFFFFF) 168 #define RADIOLIB_DEFAULT_SPI SPI 169 #define RADIOLIB_PROGMEM PROGMEM 170 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 171 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 172 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 175 #define RADIOLIB_SPI_SLOWDOWN 177 #elif defined(ARDUINO_ARCH_SAMD) 179 #define RADIOLIB_PLATFORM "Arduino SAMD" 180 #define RADIOLIB_PIN_TYPE pin_size_t 181 #define RADIOLIB_PIN_MODE PinMode 182 #define RADIOLIB_PIN_STATUS PinStatus 183 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 184 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 185 #define RADIOLIB_NC (0xFF) 186 #define RADIOLIB_DEFAULT_SPI SPI 187 #define RADIOLIB_PROGMEM PROGMEM 188 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 189 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 190 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 192 #elif defined(__SAM3X8E__) 194 #define RADIOLIB_PLATFORM "Arduino Due" 195 #define RADIOLIB_PIN_TYPE uint32_t 196 #define RADIOLIB_PIN_MODE uint32_t 197 #define RADIOLIB_PIN_STATUS uint32_t 198 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 199 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 200 #define RADIOLIB_NC (0xFFFFFFFF) 201 #define RADIOLIB_DEFAULT_SPI SPI 202 #define RADIOLIB_PROGMEM PROGMEM 203 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 204 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 205 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 206 #define RADIOLIB_TONE_UNSUPPORTED 208 #elif (defined(NRF52832_XXAA) || defined(NRF52840_XXAA)) && !defined(ARDUINO_ARDUINO_NANO33BLE) 210 #define RADIOLIB_PLATFORM "Adafruit nRF52" 211 #define RADIOLIB_PIN_TYPE uint32_t 212 #define RADIOLIB_PIN_MODE uint32_t 213 #define RADIOLIB_PIN_STATUS uint32_t 214 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 215 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 216 #define RADIOLIB_NC (0xFFFFFFFF) 217 #define RADIOLIB_DEFAULT_SPI SPI 218 #define RADIOLIB_PROGMEM PROGMEM 219 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 221 #elif defined(ARDUINO_ARC32_TOOLS) 223 #define RADIOLIB_PLATFORM "Intel Curie" 224 #define RADIOLIB_PIN_TYPE uint8_t 225 #define RADIOLIB_PIN_MODE uint8_t 226 #define RADIOLIB_PIN_STATUS uint8_t 227 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 228 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 229 #define RADIOLIB_NC (0xFF) 230 #define RADIOLIB_DEFAULT_SPI SPI 231 #define RADIOLIB_PROGMEM PROGMEM 232 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 234 #elif defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) 236 #define RADIOLIB_PLATFORM "Arduino megaAVR" 237 #define RADIOLIB_PIN_TYPE uint8_t 238 #define RADIOLIB_PIN_MODE PinMode 239 #define RADIOLIB_PIN_STATUS PinStatus 240 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 241 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 242 #define RADIOLIB_NC (0xFF) 243 #define RADIOLIB_DEFAULT_SPI SPI 244 #define RADIOLIB_PROGMEM PROGMEM 245 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 247 #elif defined(ARDUINO_ARCH_APOLLO3) 249 #define RADIOLIB_PLATFORM "Sparkfun Apollo3" 250 #define RADIOLIB_PIN_TYPE pin_size_t 251 #define RADIOLIB_PIN_MODE Arduino_PinMode 252 #define RADIOLIB_PIN_STATUS PinStatus 253 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 254 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 255 #define RADIOLIB_NC (0xFF) 256 #define RADIOLIB_DEFAULT_SPI SPI 257 #define RADIOLIB_PROGMEM PROGMEM 258 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 259 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 260 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 263 #define RADIOLIB_EXCLUDE_ESP8266 266 #define RADIOLIB_SPI_SLOWDOWN 268 #elif defined(ARDUINO_ARDUINO_NANO33BLE) 270 #define RADIOLIB_PLATFORM "Arduino Nano 33 BLE" 271 #define RADIOLIB_PIN_TYPE pin_size_t 272 #define RADIOLIB_PIN_MODE PinMode 273 #define RADIOLIB_PIN_STATUS PinStatus 274 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 275 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 276 #define RADIOLIB_NC (0xFF) 277 #define RADIOLIB_DEFAULT_SPI SPI 278 #define RADIOLIB_PROGMEM PROGMEM 279 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 280 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 281 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 284 #define RADIOLIB_EXCLUDE_ESP8266 286 #elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) 288 #define RADIOLIB_PLATFORM "Portenta H7" 289 #define RADIOLIB_PIN_TYPE pin_size_t 290 #define RADIOLIB_PIN_MODE PinMode 291 #define RADIOLIB_PIN_STATUS PinStatus 292 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 293 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 294 #define RADIOLIB_NC (0xFF) 295 #define RADIOLIB_DEFAULT_SPI SPI 296 #define RADIOLIB_PROGMEM PROGMEM 297 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 298 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 299 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 302 #define RADIOLIB_EXCLUDE_ESP8266 304 #elif defined(__STM32F4__) || defined(__STM32F1__) 306 #define RADIOLIB_PLATFORM "STM32duino (unofficial)" 307 #define RADIOLIB_PIN_TYPE uint8_t 308 #define RADIOLIB_PIN_MODE WiringPinMode 309 #define RADIOLIB_PIN_STATUS uint8_t 310 #define RADIOLIB_INTERRUPT_STATUS ExtIntTriggerMode 311 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 312 #define RADIOLIB_NC (0xFF) 313 #define RADIOLIB_DEFAULT_SPI SPI 314 #define RADIOLIB_PROGMEM PROGMEM 315 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 316 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 317 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 319 #elif defined(ARDUINO_ARCH_MEGAAVR) 321 #define RADIOLIB_PLATFORM "MegaCoreX" 322 #define RADIOLIB_PIN_TYPE uint8_t 323 #define RADIOLIB_PIN_MODE uint8_t 324 #define RADIOLIB_PIN_STATUS uint8_t 325 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 326 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 327 #define RADIOLIB_NC (0xFF) 328 #define RADIOLIB_DEFAULT_SPI SPI 329 #define RADIOLIB_PROGMEM PROGMEM 330 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 334 #define RADIOLIB_PLATFORM "Unknown" 335 #define RADIOLIB_UNKNOWN_PLATFORM 336 #define RADIOLIB_PIN_TYPE uint8_t 337 #define RADIOLIB_PIN_MODE uint8_t 338 #define RADIOLIB_PIN_STATUS uint8_t 339 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 340 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 341 #define RADIOLIB_NC (0xFF) 342 #define RADIOLIB_DEFAULT_SPI SPI 343 #define RADIOLIB_PROGMEM PROGMEM 344 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 361 #define RADIOLIB_DEBUG_PORT Serial 363 #if defined(RADIOLIB_DEBUG) 364 #define RADIOLIB_DEBUG_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); } 365 #define RADIOLIB_DEBUG_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); } 367 #define RADIOLIB_DEBUG_PRINT(...) {} 368 #define RADIOLIB_DEBUG_PRINTLN(...) {} 371 #if defined(RADIOLIB_VERBOSE) 372 #define RADIOLIB_VERBOSE_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); } 373 #define RADIOLIB_VERBOSE_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); } 375 #define RADIOLIB_VERBOSE_PRINT(...) {} 376 #define RADIOLIB_VERBOSE_PRINTLN(...) {} 385 #define RADIOLIB_SPI_PARANOID 394 #define RADIOLIB_CHECK_PARAMS 415 #if !defined(RADIOLIB_STATIC_ARRAY_SIZE) 416 #define RADIOLIB_STATIC_ARRAY_SIZE 256 422 #define RADIOLIB_ASSERT(STATEVAR) { if((STATEVAR) != ERR_NONE) { return(STATEVAR); } } 427 #if defined(RADIOLIB_CHECK_PARAMS) 428 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) { if(!(((VAR) >= (MIN)) && ((VAR) <= (MAX)))) { return(ERR); } } 430 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) {} 434 #define RADIOLIB_VERSION_MAJOR (0x04) 435 #define RADIOLIB_VERSION_MINOR (0x02) 436 #define RADIOLIB_VERSION_PATCH (0x00) 437 #define RADIOLIB_VERSION_EXTRA (0x00) 439 #define RADIOLIB_VERSION ((RADIOLIB_VERSION_MAJOR << 24) | (RADIOLIB_VERSION_MINOR << 16) | (RADIOLIB_VERSION_PATCH << 8) | (RADIOLIB_VERSION_EXTRA))