diff --git a/_build_opt_8h_source.html b/_build_opt_8h_source.html
index 8a38e247..3b11c21f 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) 88 #if defined(__AVR__) && !(defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY)) 90 #define RADIOLIB_PLATFORM "Arduino AVR" 91 #define RADIOLIB_PIN_TYPE uint8_t 92 #define RADIOLIB_PIN_MODE uint8_t 93 #define RADIOLIB_PIN_STATUS uint8_t 94 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 95 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 96 #define RADIOLIB_NC (0xFF) 97 #define RADIOLIB_DEFAULT_SPI SPI 98 #define RADIOLIB_PROGMEM PROGMEM 99 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 101 #elif defined(ESP8266) 103 #define RADIOLIB_PLATFORM "ESP8266" 104 #define RADIOLIB_PIN_TYPE uint8_t 105 #define RADIOLIB_PIN_MODE uint8_t 106 #define RADIOLIB_PIN_STATUS uint8_t 107 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 108 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 109 #define RADIOLIB_NC (0xFF) 110 #define RADIOLIB_DEFAULT_SPI SPI 111 #define RADIOLIB_PROGMEM PROGMEM 112 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 115 #define RADIOLIB_EXCLUDE_ESP8266 119 #define RADIOLIB_PLATFORM "ESP32" 120 #define RADIOLIB_PIN_TYPE uint8_t 121 #define RADIOLIB_PIN_MODE uint8_t 122 #define RADIOLIB_PIN_STATUS uint8_t 123 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 124 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 125 #define RADIOLIB_NC (0xFF) 126 #define RADIOLIB_DEFAULT_SPI SPI 127 #define RADIOLIB_PROGMEM PROGMEM 128 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 129 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 130 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 131 #define RADIOLIB_TONE_UNSUPPORTED 133 #elif defined(ARDUINO_ARCH_STM32) 135 #define RADIOLIB_PLATFORM "Arduino STM32 (official)" 136 #define RADIOLIB_PIN_TYPE uint32_t 137 #define RADIOLIB_PIN_MODE uint32_t 138 #define RADIOLIB_PIN_STATUS uint32_t 139 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 140 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(digitalPinToPinName(p)) 141 #define RADIOLIB_NC (0xFFFFFFFF) 142 #define RADIOLIB_DEFAULT_SPI SPI 143 #define RADIOLIB_PROGMEM PROGMEM 144 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 145 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 146 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 148 #elif defined(SAMD_SERIES) 150 #define RADIOLIB_PLATFORM "Arduino/Adafruit SAMD" 151 #define RADIOLIB_PIN_TYPE uint32_t 152 #define RADIOLIB_PIN_MODE uint32_t 153 #define RADIOLIB_PIN_STATUS uint32_t 154 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 155 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 156 #define RADIOLIB_NC (0xFFFFFFFF) 157 #define RADIOLIB_DEFAULT_SPI SPI 158 #define RADIOLIB_PROGMEM PROGMEM 159 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 160 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 161 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 163 #elif defined(__SAM3X8E__) 165 #define RADIOLIB_PLATFORM "Arduino Due" 166 #define RADIOLIB_PIN_TYPE uint32_t 167 #define RADIOLIB_PIN_MODE uint32_t 168 #define RADIOLIB_PIN_STATUS uint32_t 169 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 170 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 171 #define RADIOLIB_NC (0xFFFFFFFF) 172 #define RADIOLIB_DEFAULT_SPI SPI 173 #define RADIOLIB_PROGMEM PROGMEM 174 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 175 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 176 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 177 #define RADIOLIB_TONE_UNSUPPORTED 179 #elif (defined(NRF52832_XXAA) || defined(NRF52840_XXAA)) && !defined(ARDUINO_ARDUINO_NANO33BLE) 181 #define RADIOLIB_PLATFORM "Adafruit nRF52" 182 #define RADIOLIB_PIN_TYPE uint32_t 183 #define RADIOLIB_PIN_MODE uint32_t 184 #define RADIOLIB_PIN_STATUS uint32_t 185 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 186 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 187 #define RADIOLIB_NC (0xFFFFFFFF) 188 #define RADIOLIB_DEFAULT_SPI SPI 189 #define RADIOLIB_PROGMEM PROGMEM 190 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 192 #elif defined(ARDUINO_ARC32_TOOLS) 194 #define RADIOLIB_PLATFORM "Intel Curie" 195 #define RADIOLIB_PIN_TYPE uint8_t 196 #define RADIOLIB_PIN_MODE uint8_t 197 #define RADIOLIB_PIN_STATUS uint8_t 198 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 199 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 200 #define RADIOLIB_NC (0xFF) 201 #define RADIOLIB_DEFAULT_SPI SPI 202 #define RADIOLIB_PROGMEM PROGMEM 203 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 205 #elif defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) 207 #define RADIOLIB_PLATFORM "Arduino megaAVR" 208 #define RADIOLIB_PIN_TYPE uint8_t 209 #define RADIOLIB_PIN_MODE PinMode 210 #define RADIOLIB_PIN_STATUS PinStatus 211 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 212 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 213 #define RADIOLIB_NC (0xFF) 214 #define RADIOLIB_DEFAULT_SPI SPI 215 #define RADIOLIB_PROGMEM PROGMEM 216 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 218 #elif defined(AM_PART_APOLLO3) 220 #define RADIOLIB_PLATFORM "Sparkfun Artemis" 221 #define RADIOLIB_PIN_TYPE uint8_t 222 #define RADIOLIB_PIN_MODE uint8_t 223 #define RADIOLIB_PIN_STATUS uint8_t 224 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 225 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 226 #define RADIOLIB_NC (0xFF) 227 #define RADIOLIB_DEFAULT_SPI SPI 228 #define RADIOLIB_PROGMEM PROGMEM 229 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 230 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 231 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 232 #define RADIOLIB_TONE_UNSUPPORTED 234 #elif defined(ARDUINO_ARDUINO_NANO33BLE) 236 #define RADIOLIB_PLATFORM "Arduino Nano 33 BLE" 237 #define RADIOLIB_PIN_TYPE pin_size_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) 246 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 247 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 250 #define RADIOLIB_EXCLUDE_ESP8266 252 #elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) 254 #define RADIOLIB_PLATFORM "Portenta H7" 255 #define RADIOLIB_PIN_TYPE pin_size_t 256 #define RADIOLIB_PIN_MODE PinMode 257 #define RADIOLIB_PIN_STATUS PinStatus 258 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 259 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 260 #define RADIOLIB_NC (0xFF) 261 #define RADIOLIB_DEFAULT_SPI SPI 262 #define RADIOLIB_PROGMEM PROGMEM 263 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 264 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 265 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 268 #define RADIOLIB_EXCLUDE_ESP8266 270 #elif defined(__STM32F4__) || defined(__STM32F1__) 272 #define RADIOLIB_PLATFORM "STM32duino (unofficial)" 273 #define RADIOLIB_PIN_TYPE uint8_t 274 #define RADIOLIB_PIN_MODE WiringPinMode 275 #define RADIOLIB_PIN_STATUS uint8_t 276 #define RADIOLIB_INTERRUPT_STATUS ExtIntTriggerMode 277 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 278 #define RADIOLIB_NC (0xFF) 279 #define RADIOLIB_DEFAULT_SPI SPI 280 #define RADIOLIB_PROGMEM PROGMEM 281 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 282 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 283 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 284 #define RADIOLIB_TONE_UNSUPPORTED 288 #define RADIOLIB_PLATFORM "Unknown" 289 #define RADIOLIB_UNKNOWN_PLATFORM 290 #define RADIOLIB_PIN_TYPE uint8_t 291 #define RADIOLIB_PIN_MODE uint8_t 292 #define RADIOLIB_PIN_STATUS uint8_t 293 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 294 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 295 #define RADIOLIB_NC (0xFF) 296 #define RADIOLIB_DEFAULT_SPI SPI 297 #define RADIOLIB_PROGMEM PROGMEM 298 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 315 #define RADIOLIB_DEBUG_PORT Serial 317 #if defined(RADIOLIB_DEBUG) 318 #define RADIOLIB_DEBUG_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); } 319 #define RADIOLIB_DEBUG_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); } 321 #define RADIOLIB_DEBUG_PRINT(...) {} 322 #define RADIOLIB_DEBUG_PRINTLN(...) {} 325 #if defined(RADIOLIB_VERBOSE) 326 #define RADIOLIB_VERBOSE_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); } 327 #define RADIOLIB_VERBOSE_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); } 329 #define RADIOLIB_VERBOSE_PRINT(...) {} 330 #define RADIOLIB_VERBOSE_PRINTLN(...) {} 353 #if !defined(RADIOLIB_STATIC_ARRAY_SIZE) 354 #define RADIOLIB_STATIC_ARRAY_SIZE 256 360 #define RADIOLIB_ASSERT(STATEVAR) { if((STATEVAR) != ERR_NONE) { return(STATEVAR); } } 365 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) { if(!(((VAR) >= (MIN)) && ((VAR) <= (MAX)))) { return(ERR); } } 369 #define RADIOLIB_VERSION_MAJOR (0x04) 370 #define RADIOLIB_VERSION_MINOR (0x00) 371 #define RADIOLIB_VERSION_PATCH (0x04) 372 #define RADIOLIB_VERSION_EXTRA (0x00) 374 #define RADIOLIB_VERSION ((RADIOLIB_VERSION_MAJOR << 24) | (RADIOLIB_VERSION_MINOR << 16) | (RADIOLIB_VERSION_PATCH << 8) | (RADIOLIB_VERSION_EXTRA))
+ 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) 88 #if defined(__AVR__) && !(defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY)) 90 #define RADIOLIB_PLATFORM "Arduino AVR" 91 #define RADIOLIB_PIN_TYPE uint8_t 92 #define RADIOLIB_PIN_MODE uint8_t 93 #define RADIOLIB_PIN_STATUS uint8_t 94 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 95 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 96 #define RADIOLIB_NC (0xFF) 97 #define RADIOLIB_DEFAULT_SPI SPI 98 #define RADIOLIB_PROGMEM PROGMEM 99 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 101 #elif defined(ESP8266) 103 #define RADIOLIB_PLATFORM "ESP8266" 104 #define RADIOLIB_PIN_TYPE uint8_t 105 #define RADIOLIB_PIN_MODE uint8_t 106 #define RADIOLIB_PIN_STATUS uint8_t 107 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 108 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 109 #define RADIOLIB_NC (0xFF) 110 #define RADIOLIB_DEFAULT_SPI SPI 111 #define RADIOLIB_PROGMEM PROGMEM 112 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 115 #define RADIOLIB_EXCLUDE_ESP8266 119 #define RADIOLIB_PLATFORM "ESP32" 120 #define RADIOLIB_PIN_TYPE uint8_t 121 #define RADIOLIB_PIN_MODE uint8_t 122 #define RADIOLIB_PIN_STATUS uint8_t 123 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 124 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 125 #define RADIOLIB_NC (0xFF) 126 #define RADIOLIB_DEFAULT_SPI SPI 127 #define RADIOLIB_PROGMEM PROGMEM 128 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 129 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 130 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 131 #define RADIOLIB_TONE_UNSUPPORTED 133 #elif defined(ARDUINO_ARCH_STM32) 135 #define RADIOLIB_PLATFORM "Arduino STM32 (official)" 136 #define RADIOLIB_PIN_TYPE uint32_t 137 #define RADIOLIB_PIN_MODE uint32_t 138 #define RADIOLIB_PIN_STATUS uint32_t 139 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 140 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(digitalPinToPinName(p)) 141 #define RADIOLIB_NC (0xFFFFFFFF) 142 #define RADIOLIB_DEFAULT_SPI SPI 143 #define RADIOLIB_PROGMEM PROGMEM 144 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 145 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 146 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 148 #elif defined(SAMD_SERIES) 150 #define RADIOLIB_PLATFORM "Arduino/Adafruit SAMD" 151 #define RADIOLIB_PIN_TYPE uint32_t 152 #define RADIOLIB_PIN_MODE uint32_t 153 #define RADIOLIB_PIN_STATUS uint32_t 154 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 155 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 156 #define RADIOLIB_NC (0xFFFFFFFF) 157 #define RADIOLIB_DEFAULT_SPI SPI 158 #define RADIOLIB_PROGMEM PROGMEM 159 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 160 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 161 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 163 #elif defined(__SAM3X8E__) 165 #define RADIOLIB_PLATFORM "Arduino Due" 166 #define RADIOLIB_PIN_TYPE uint32_t 167 #define RADIOLIB_PIN_MODE uint32_t 168 #define RADIOLIB_PIN_STATUS uint32_t 169 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 170 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 171 #define RADIOLIB_NC (0xFFFFFFFF) 172 #define RADIOLIB_DEFAULT_SPI SPI 173 #define RADIOLIB_PROGMEM PROGMEM 174 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 175 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 176 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 177 #define RADIOLIB_TONE_UNSUPPORTED 179 #elif (defined(NRF52832_XXAA) || defined(NRF52840_XXAA)) && !defined(ARDUINO_ARDUINO_NANO33BLE) 181 #define RADIOLIB_PLATFORM "Adafruit nRF52" 182 #define RADIOLIB_PIN_TYPE uint32_t 183 #define RADIOLIB_PIN_MODE uint32_t 184 #define RADIOLIB_PIN_STATUS uint32_t 185 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 186 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 187 #define RADIOLIB_NC (0xFFFFFFFF) 188 #define RADIOLIB_DEFAULT_SPI SPI 189 #define RADIOLIB_PROGMEM PROGMEM 190 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 192 #elif defined(ARDUINO_ARC32_TOOLS) 194 #define RADIOLIB_PLATFORM "Intel Curie" 195 #define RADIOLIB_PIN_TYPE uint8_t 196 #define RADIOLIB_PIN_MODE uint8_t 197 #define RADIOLIB_PIN_STATUS uint8_t 198 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 199 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 200 #define RADIOLIB_NC (0xFF) 201 #define RADIOLIB_DEFAULT_SPI SPI 202 #define RADIOLIB_PROGMEM PROGMEM 203 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 205 #elif defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) 207 #define RADIOLIB_PLATFORM "Arduino megaAVR" 208 #define RADIOLIB_PIN_TYPE uint8_t 209 #define RADIOLIB_PIN_MODE PinMode 210 #define RADIOLIB_PIN_STATUS PinStatus 211 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 212 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 213 #define RADIOLIB_NC (0xFF) 214 #define RADIOLIB_DEFAULT_SPI SPI 215 #define RADIOLIB_PROGMEM PROGMEM 216 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 218 #elif defined(AM_PART_APOLLO3) 220 #define RADIOLIB_PLATFORM "Sparkfun Artemis" 221 #define RADIOLIB_PIN_TYPE uint8_t 222 #define RADIOLIB_PIN_MODE uint8_t 223 #define RADIOLIB_PIN_STATUS uint8_t 224 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 225 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 226 #define RADIOLIB_NC (0xFF) 227 #define RADIOLIB_DEFAULT_SPI SPI 228 #define RADIOLIB_PROGMEM PROGMEM 229 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 230 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 231 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 233 #elif defined(ARDUINO_ARDUINO_NANO33BLE) 235 #define RADIOLIB_PLATFORM "Arduino Nano 33 BLE" 236 #define RADIOLIB_PIN_TYPE pin_size_t 237 #define RADIOLIB_PIN_MODE PinMode 238 #define RADIOLIB_PIN_STATUS PinStatus 239 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 240 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 241 #define RADIOLIB_NC (0xFF) 242 #define RADIOLIB_DEFAULT_SPI SPI 243 #define RADIOLIB_PROGMEM PROGMEM 244 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 245 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 246 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 249 #define RADIOLIB_EXCLUDE_ESP8266 251 #elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4) 253 #define RADIOLIB_PLATFORM "Portenta H7" 254 #define RADIOLIB_PIN_TYPE pin_size_t 255 #define RADIOLIB_PIN_MODE PinMode 256 #define RADIOLIB_PIN_STATUS PinStatus 257 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 258 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 259 #define RADIOLIB_NC (0xFF) 260 #define RADIOLIB_DEFAULT_SPI SPI 261 #define RADIOLIB_PROGMEM PROGMEM 262 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 263 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 264 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 267 #define RADIOLIB_EXCLUDE_ESP8266 269 #elif defined(__STM32F4__) || defined(__STM32F1__) 271 #define RADIOLIB_PLATFORM "STM32duino (unofficial)" 272 #define RADIOLIB_PIN_TYPE uint8_t 273 #define RADIOLIB_PIN_MODE WiringPinMode 274 #define RADIOLIB_PIN_STATUS uint8_t 275 #define RADIOLIB_INTERRUPT_STATUS ExtIntTriggerMode 276 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 277 #define RADIOLIB_NC (0xFF) 278 #define RADIOLIB_DEFAULT_SPI SPI 279 #define RADIOLIB_PROGMEM PROGMEM 280 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 281 #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED 282 #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 286 #define RADIOLIB_PLATFORM "Unknown" 287 #define RADIOLIB_UNKNOWN_PLATFORM 288 #define RADIOLIB_PIN_TYPE uint8_t 289 #define RADIOLIB_PIN_MODE uint8_t 290 #define RADIOLIB_PIN_STATUS uint8_t 291 #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS 292 #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) 293 #define RADIOLIB_NC (0xFF) 294 #define RADIOLIB_DEFAULT_SPI SPI 295 #define RADIOLIB_PROGMEM PROGMEM 296 #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr) 313 #define RADIOLIB_DEBUG_PORT Serial 315 #if defined(RADIOLIB_DEBUG) 316 #define RADIOLIB_DEBUG_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); } 317 #define RADIOLIB_DEBUG_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); } 319 #define RADIOLIB_DEBUG_PRINT(...) {} 320 #define RADIOLIB_DEBUG_PRINTLN(...) {} 323 #if defined(RADIOLIB_VERBOSE) 324 #define RADIOLIB_VERBOSE_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); } 325 #define RADIOLIB_VERBOSE_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); } 327 #define RADIOLIB_VERBOSE_PRINT(...) {} 328 #define RADIOLIB_VERBOSE_PRINTLN(...) {} 351 #if !defined(RADIOLIB_STATIC_ARRAY_SIZE) 352 #define RADIOLIB_STATIC_ARRAY_SIZE 256 358 #define RADIOLIB_ASSERT(STATEVAR) { if((STATEVAR) != ERR_NONE) { return(STATEVAR); } } 363 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) { if(!(((VAR) >= (MIN)) && ((VAR) <= (MAX)))) { return(ERR); } } 367 #define RADIOLIB_VERSION_MAJOR (0x04) 368 #define RADIOLIB_VERSION_MINOR (0x00) 369 #define RADIOLIB_VERSION_PATCH (0x04) 370 #define RADIOLIB_VERSION_EXTRA (0x00) 372 #define RADIOLIB_VERSION ((RADIOLIB_VERSION_MAJOR << 24) | (RADIOLIB_VERSION_MINOR << 16) | (RADIOLIB_VERSION_PATCH << 8) | (RADIOLIB_VERSION_EXTRA))