diff --git a/_build_opt_8h_source.html b/_build_opt_8h_source.html index 1ef2000f..8bb2a6e2 100644 --- a/_build_opt_8h_source.html +++ b/_build_opt_8h_source.html @@ -418,117 +418,133 @@ $(document).ready(function(){initNavTree('_build_opt_8h_source.html',''); initRe
330  #define RADIOLIB_PROGMEM PROGMEM
331  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
332 
-
333  #else
-
334  // other platforms not covered by the above list - this may or may not work
-
335  #define RADIOLIB_PLATFORM "Unknown"
-
336  #define RADIOLIB_UNKNOWN_PLATFORM
-
337  #define RADIOLIB_PIN_TYPE uint8_t
-
338  #define RADIOLIB_PIN_MODE uint8_t
-
339  #define RADIOLIB_PIN_STATUS uint8_t
-
340  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
341  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
342  #define RADIOLIB_NC (0xFF)
-
343  #define RADIOLIB_DEFAULT_SPI SPI
-
344  #define RADIOLIB_PROGMEM PROGMEM
-
345  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
346 
-
347  #endif
-
348 #endif
-
349 
-
350 /*
-
351  * Uncomment to enable debug output.
-
352  * Warning: Debug output will slow down the whole system significantly.
-
353  * Also, it will result in larger compiled binary.
-
354  * Levels: debug - only main info
-
355  * verbose - full transcript of all SPI/UART communication
-
356  */
-
357 
-
358 //#define RADIOLIB_DEBUG
-
359 //#define RADIOLIB_VERBOSE
-
360 
-
361 // set which Serial port should be used for debug output
-
362 #define RADIOLIB_DEBUG_PORT Serial
-
363 
-
364 #if defined(RADIOLIB_DEBUG)
-
365  #define RADIOLIB_DEBUG_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); }
-
366  #define RADIOLIB_DEBUG_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); }
-
367 #else
-
368  #define RADIOLIB_DEBUG_PRINT(...) {}
-
369  #define RADIOLIB_DEBUG_PRINTLN(...) {}
-
370 #endif
-
371 
-
372 #if defined(RADIOLIB_VERBOSE)
-
373  #define RADIOLIB_VERBOSE_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); }
-
374  #define RADIOLIB_VERBOSE_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); }
-
375 #else
-
376  #define RADIOLIB_VERBOSE_PRINT(...) {}
-
377  #define RADIOLIB_VERBOSE_PRINTLN(...) {}
-
378 #endif
+
333  #elif defined(ARDUINO_ARCH_RP2040)
+
334  // Raspberry Pi Pico
+
335  #define RADIOLIB_PLATFORM "Raspberry Pi Pico"
+
336  #define RADIOLIB_PIN_TYPE pin_size_t
+
337  #define RADIOLIB_PIN_MODE PinMode
+
338  #define RADIOLIB_PIN_STATUS PinStatus
+
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)
+
345  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
+
346  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
+
347  #define RADIOLIB_EXCLUDE_ESP8266
+
348 
+
349  #else
+
350  // other platforms not covered by the above list - this may or may not work
+
351  #define RADIOLIB_PLATFORM "Unknown"
+
352  #define RADIOLIB_UNKNOWN_PLATFORM
+
353  #define RADIOLIB_PIN_TYPE uint8_t
+
354  #define RADIOLIB_PIN_MODE uint8_t
+
355  #define RADIOLIB_PIN_STATUS uint8_t
+
356  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
357  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
358  #define RADIOLIB_NC (0xFF)
+
359  #define RADIOLIB_DEFAULT_SPI SPI
+
360  #define RADIOLIB_PROGMEM PROGMEM
+
361  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
362 
+
363  #endif
+
364 #endif
+
365 
+
366 /*
+
367  * Uncomment to enable debug output.
+
368  * Warning: Debug output will slow down the whole system significantly.
+
369  * Also, it will result in larger compiled binary.
+
370  * Levels: debug - only main info
+
371  * verbose - full transcript of all SPI/UART communication
+
372  */
+
373 
+
374 //#define RADIOLIB_DEBUG
+
375 //#define RADIOLIB_VERBOSE
+
376 
+
377 // set which Serial port should be used for debug output
+
378 #define RADIOLIB_DEBUG_PORT Serial
379 
-
380 /*
-
381  * Uncomment to enable "paranoid" SPI mode
-
382  * Every write to an SPI register using SPI set function will be verified by a subsequent read operation.
-
383  * This improves reliablility, but slightly slows down communication.
-
384  * Note: Enabled by default.
-
385  */
-
386 #define RADIOLIB_SPI_PARANOID
+
380 #if defined(RADIOLIB_DEBUG)
+
381  #define RADIOLIB_DEBUG_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); }
+
382  #define RADIOLIB_DEBUG_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); }
+
383 #else
+
384  #define RADIOLIB_DEBUG_PRINT(...) {}
+
385  #define RADIOLIB_DEBUG_PRINTLN(...) {}
+
386 #endif
387 
-
388 /*
-
389  * Uncomment to enable parameter range checking
-
390  * RadioLib will check provided parameters (such as frequency) against limits determined by the device manufacturer.
-
391  * It is highly advised to keep this macro defined, removing it will allow invalid values to be set,
-
392  * possibly leading to bricked module and/or program crashing.
-
393  * Note: Enabled by default.
-
394  */
-
395 #define RADIOLIB_CHECK_PARAMS
-
396 
-
397 /*
-
398  * Uncomment to enable god mode - all methods and member variables in all classes will be made public, thus making them accessible from Arduino code.
-
399  * Warning: Come on, it's called GOD mode - obviously only use this if you know what you're doing.
-
400  * Failure to heed the above warning may result in bricked module.
+
388 #if defined(RADIOLIB_VERBOSE)
+
389  #define RADIOLIB_VERBOSE_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); }
+
390  #define RADIOLIB_VERBOSE_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); }
+
391 #else
+
392  #define RADIOLIB_VERBOSE_PRINT(...) {}
+
393  #define RADIOLIB_VERBOSE_PRINTLN(...) {}
+
394 #endif
+
395 
+
396 /*
+
397  * Uncomment to enable "paranoid" SPI mode
+
398  * Every write to an SPI register using SPI set function will be verified by a subsequent read operation.
+
399  * This improves reliablility, but slightly slows down communication.
+
400  * Note: Enabled by default.
401  */
-
402 //#define RADIOLIB_GODMODE
+
402 #define RADIOLIB_SPI_PARANOID
403 
404 /*
-
405  * Uncomment to enable low-level hardware access
-
406  * This will make some hardware methods like SPI get/set accessible from the user sketch - think of it as "god mode lite"
-
407  * Warning: RadioLib won't stop you from writing invalid stuff into your device, so it's quite easy to brick your module with this.
-
408  */
-
409 //#define RADIOLIB_LOW_LEVEL
-
410 
-
411 /*
-
412  * Uncomment to enable pre-defined modules when using RadioShield.
-
413  */
-
414 //#define RADIOLIB_RADIOSHIELD
-
415 
-
416 /*
-
417  * Uncomment to enable static-only memory management: no dynamic allocation will be performed.
-
418  * Warning: Large static arrays will be created in some methods. It is not advised to send large packets in this mode.
-
419  */
-
420 //#define RADIOLIB_STATIC_ONLY
-
421 
-
422 // set the size of static arrays to use
-
423 #if !defined(RADIOLIB_STATIC_ARRAY_SIZE)
-
424 #define RADIOLIB_STATIC_ARRAY_SIZE 256
-
425 #endif
+
405  * Uncomment to enable parameter range checking
+
406  * RadioLib will check provided parameters (such as frequency) against limits determined by the device manufacturer.
+
407  * It is highly advised to keep this macro defined, removing it will allow invalid values to be set,
+
408  * possibly leading to bricked module and/or program crashing.
+
409  * Note: Enabled by default.
+
410  */
+
411 #define RADIOLIB_CHECK_PARAMS
+
412 
+
413 /*
+
414  * Uncomment to enable god mode - all methods and member variables in all classes will be made public, thus making them accessible from Arduino code.
+
415  * Warning: Come on, it's called GOD mode - obviously only use this if you know what you're doing.
+
416  * Failure to heed the above warning may result in bricked module.
+
417  */
+
418 //#define RADIOLIB_GODMODE
+
419 
+
420 /*
+
421  * Uncomment to enable low-level hardware access
+
422  * This will make some hardware methods like SPI get/set accessible from the user sketch - think of it as "god mode lite"
+
423  * Warning: RadioLib won't stop you from writing invalid stuff into your device, so it's quite easy to brick your module with this.
+
424  */
+
425 //#define RADIOLIB_LOW_LEVEL
426 
-
430 #define RADIOLIB_ASSERT(STATEVAR) { if((STATEVAR) != ERR_NONE) { return(STATEVAR); } }
+
427 /*
+
428  * Uncomment to enable pre-defined modules when using RadioShield.
+
429  */
+
430 //#define RADIOLIB_RADIOSHIELD
431 
-
435 #if defined(RADIOLIB_CHECK_PARAMS)
-
436 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) { if(!(((VAR) >= (MIN)) && ((VAR) <= (MAX)))) { return(ERR); } }
-
437 #else
-
438 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) {}
-
439 #endif
-
440 
-
441 // version definitions
-
442 #define RADIOLIB_VERSION_MAJOR (0x04)
-
443 #define RADIOLIB_VERSION_MINOR (0x05)
-
444 #define RADIOLIB_VERSION_PATCH (0x00)
-
445 #define RADIOLIB_VERSION_EXTRA (0x00)
-
446 
-
447 #define RADIOLIB_VERSION ((RADIOLIB_VERSION_MAJOR << 24) | (RADIOLIB_VERSION_MINOR << 16) | (RADIOLIB_VERSION_PATCH << 8) | (RADIOLIB_VERSION_EXTRA))
-
448 
-
449 #endif
+
432 /*
+
433  * Uncomment to enable static-only memory management: no dynamic allocation will be performed.
+
434  * Warning: Large static arrays will be created in some methods. It is not advised to send large packets in this mode.
+
435  */
+
436 //#define RADIOLIB_STATIC_ONLY
+
437 
+
438 // set the size of static arrays to use
+
439 #if !defined(RADIOLIB_STATIC_ARRAY_SIZE)
+
440 #define RADIOLIB_STATIC_ARRAY_SIZE 256
+
441 #endif
+
442 
+
446 #define RADIOLIB_ASSERT(STATEVAR) { if((STATEVAR) != ERR_NONE) { return(STATEVAR); } }
+
447 
+
451 #if defined(RADIOLIB_CHECK_PARAMS)
+
452 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) { if(!(((VAR) >= (MIN)) && ((VAR) <= (MAX)))) { return(ERR); } }
+
453 #else
+
454 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) {}
+
455 #endif
+
456 
+
457 // version definitions
+
458 #define RADIOLIB_VERSION_MAJOR (0x04)
+
459 #define RADIOLIB_VERSION_MINOR (0x05)
+
460 #define RADIOLIB_VERSION_PATCH (0x00)
+
461 #define RADIOLIB_VERSION_EXTRA (0x00)
+
462 
+
463 #define RADIOLIB_VERSION ((RADIOLIB_VERSION_MAJOR << 24) | (RADIOLIB_VERSION_MINOR << 16) | (RADIOLIB_VERSION_PATCH << 8) | (RADIOLIB_VERSION_EXTRA))
+
464 
+
465 #endif