diff --git a/_build_opt_8h_source.html b/_build_opt_8h_source.html index 5ff0341f..7ef5f161 100644 --- a/_build_opt_8h_source.html +++ b/_build_opt_8h_source.html @@ -452,7 +452,7 @@ $(document).ready(function(){initNavTree('_build_opt_8h_source.html',''); initRe
364  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
365  #define RADIOLIB_EXCLUDE_ESP8266
366 
-
367  #elif defined(__ASR6501__)
+
367  #elif defined(__ASR6501__) || defined(ARDUINO_ARCH_ASR650X) || defined(DARDUINO_ARCH_ASR6601)
368  // CubeCell
369  #define RADIOLIB_PLATFORM "CubeCell"
370  #define RADIOLIB_PIN_TYPE uint8_t
@@ -464,145 +464,153 @@ $(document).ready(function(){initNavTree('_build_opt_8h_source.html',''); initRe
376  #define RADIOLIB_DEFAULT_SPI SPI
377  #define RADIOLIB_PROGMEM PROGMEM
378  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
379 
-
380  // CubeCell doesn't seem to define nullptr, let's do something like that now
-
381  #define nullptr NULL
-
382 
-
383  // ... and also defines pinMode() as a macro, which is by far the stupidest thing I have seen on Arduino
-
384  #undef pinMode
-
385 
-
386  // ... and uses an outdated GCC which does not support type aliases
-
387  #define RADIOLIB_TYPE_ALIAS(type, alias) typedef class type alias;
-
388 
-
389  // ... and it also has no tone(). This platform was designed by an idiot.
-
390  #define RADIOLIB_TONE_UNSUPPORTED
-
391 
-
392  #else
-
393  // other platforms not covered by the above list - this may or may not work
-
394  #define RADIOLIB_PLATFORM "Unknown"
-
395  #define RADIOLIB_UNKNOWN_PLATFORM
-
396  #define RADIOLIB_PIN_TYPE uint8_t
-
397  #define RADIOLIB_PIN_MODE uint8_t
-
398  #define RADIOLIB_PIN_STATUS uint8_t
-
399  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
-
400  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
-
401  #define RADIOLIB_NC (0xFF)
-
402  #define RADIOLIB_DEFAULT_SPI SPI
-
403  #define RADIOLIB_PROGMEM PROGMEM
-
404  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
-
405  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
-
406 
-
407  #endif
-
408 #endif
-
409 
-
410 /*
-
411  * Uncomment to enable debug output.
-
412  * Warning: Debug output will slow down the whole system significantly.
-
413  * Also, it will result in larger compiled binary.
-
414  * Levels: debug - only main info
-
415  * verbose - full transcript of all SPI/UART communication
-
416  */
+
379  #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED
+
380  #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1
+
381 
+
382  // CubeCell doesn't seem to define nullptr, let's do something like that now
+
383  #define nullptr NULL
+
384 
+
385  // ... and also defines pinMode() as a macro, which is by far the stupidest thing I have seen on Arduino
+
386  #undef pinMode
+
387 
+
388  // ... and uses an outdated GCC which does not support type aliases
+
389  #define RADIOLIB_TYPE_ALIAS(type, alias) typedef class type alias;
+
390 
+
391  // ... and it also has no tone(). This platform was designed by an idiot.
+
392  #define RADIOLIB_TONE_UNSUPPORTED
+
393 
+
394  // ... AND as the (hopefully) final nail in the coffin, IT F*CKING DEFINES YIELD() AS A MACRO THAT DOES NOTHING!!!
+
395  #define RADIOLIB_YIELD_UNSUPPORTED
+
396  #if defined(yield)
+
397  #undef yield
+
398  #endif
+
399 
+
400  #else
+
401  // other platforms not covered by the above list - this may or may not work
+
402  #define RADIOLIB_PLATFORM "Unknown"
+
403  #define RADIOLIB_UNKNOWN_PLATFORM
+
404  #define RADIOLIB_PIN_TYPE uint8_t
+
405  #define RADIOLIB_PIN_MODE uint8_t
+
406  #define RADIOLIB_PIN_STATUS uint8_t
+
407  #define RADIOLIB_INTERRUPT_STATUS RADIOLIB_PIN_STATUS
+
408  #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p)
+
409  #define RADIOLIB_NC (0xFF)
+
410  #define RADIOLIB_DEFAULT_SPI SPI
+
411  #define RADIOLIB_PROGMEM PROGMEM
+
412  #define RADIOLIB_PROGMEM_READ_BYTE(addr) pgm_read_byte(addr)
+
413  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
414 
+
415  #endif
+
416 #endif
417 
-
418 //#define RADIOLIB_DEBUG
-
419 //#define RADIOLIB_VERBOSE
-
420 
-
421 // set which Serial port should be used for debug output
-
422 #define RADIOLIB_DEBUG_PORT Serial
-
423 
-
424 #if defined(RADIOLIB_DEBUG)
-
425  #define RADIOLIB_DEBUG_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); }
-
426  #define RADIOLIB_DEBUG_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); }
-
427 #else
-
428  #define RADIOLIB_DEBUG_PRINT(...) {}
-
429  #define RADIOLIB_DEBUG_PRINTLN(...) {}
-
430 #endif
+
418 /*
+
419  * Uncomment to enable debug output.
+
420  * Warning: Debug output will slow down the whole system significantly.
+
421  * Also, it will result in larger compiled binary.
+
422  * Levels: debug - only main info
+
423  * verbose - full transcript of all SPI/UART communication
+
424  */
+
425 
+
426 #define RADIOLIB_DEBUG
+
427 //#define RADIOLIB_VERBOSE
+
428 
+
429 // set which Serial port should be used for debug output
+
430 #define RADIOLIB_DEBUG_PORT Serial
431 
-
432 #if defined(RADIOLIB_VERBOSE)
-
433  #define RADIOLIB_VERBOSE_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); }
-
434  #define RADIOLIB_VERBOSE_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); }
+
432 #if defined(RADIOLIB_DEBUG)
+
433  #define RADIOLIB_DEBUG_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); }
+
434  #define RADIOLIB_DEBUG_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); }
435 #else
-
436  #define RADIOLIB_VERBOSE_PRINT(...) {}
-
437  #define RADIOLIB_VERBOSE_PRINTLN(...) {}
+
436  #define RADIOLIB_DEBUG_PRINT(...) {}
+
437  #define RADIOLIB_DEBUG_PRINTLN(...) {}
438 #endif
439 
-
440 /*
-
441  * Uncomment to enable "paranoid" SPI mode
-
442  * Every write to an SPI register using SPI set function will be verified by a subsequent read operation.
-
443  * This improves reliablility, but slightly slows down communication.
-
444  * Note: Enabled by default.
-
445  */
-
446 #define RADIOLIB_SPI_PARANOID
+
440 #if defined(RADIOLIB_VERBOSE)
+
441  #define RADIOLIB_VERBOSE_PRINT(...) { RADIOLIB_DEBUG_PORT.print(__VA_ARGS__); }
+
442  #define RADIOLIB_VERBOSE_PRINTLN(...) { RADIOLIB_DEBUG_PORT.println(__VA_ARGS__); }
+
443 #else
+
444  #define RADIOLIB_VERBOSE_PRINT(...) {}
+
445  #define RADIOLIB_VERBOSE_PRINTLN(...) {}
+
446 #endif
447 
448 /*
-
449  * Uncomment to enable parameter range checking
-
450  * RadioLib will check provided parameters (such as frequency) against limits determined by the device manufacturer.
-
451  * It is highly advised to keep this macro defined, removing it will allow invalid values to be set,
-
452  * possibly leading to bricked module and/or program crashing.
-
453  * Note: Enabled by default.
-
454  */
-
455 #define RADIOLIB_CHECK_PARAMS
-
456 
-
457 /*
-
458  * Uncomment to enable SX127x errata fix
-
459  * Warning: SX127x errata fix has been reported to cause issues with LoRa bandwidths lower than 62.5 kHz.
-
460  * It should only be enabled if you really are observing some errata-related issue.
-
461  * Note: Disabled by default.
+
449  * Uncomment to enable "paranoid" SPI mode
+
450  * Every write to an SPI register using SPI set function will be verified by a subsequent read operation.
+
451  * This improves reliablility, but slightly slows down communication.
+
452  * Note: Enabled by default.
+
453  */
+
454 #define RADIOLIB_SPI_PARANOID
+
455 
+
456 /*
+
457  * Uncomment to enable parameter range checking
+
458  * RadioLib will check provided parameters (such as frequency) against limits determined by the device manufacturer.
+
459  * It is highly advised to keep this macro defined, removing it will allow invalid values to be set,
+
460  * possibly leading to bricked module and/or program crashing.
+
461  * Note: Enabled by default.
462  */
-
463 //#define RADIOLIB_FIX_ERRATA_SX127X
+
463 #define RADIOLIB_CHECK_PARAMS
464 
-
465 #if defined(RADIOLIB_FIX_ERRATA_SX127X)
-
466  #define RADIOLIB_ERRATA_SX127X(...) { errataFix(__VA_ARGS__); }
-
467 #else
-
468  #define RADIOLIB_ERRATA_SX127X(...) {}
-
469 #endif
-
470 
-
471 /*
-
472  * Uncomment to enable god mode - all methods and member variables in all classes will be made public, thus making them accessible from Arduino code.
-
473  * Warning: Come on, it's called GOD mode - obviously only use this if you know what you're doing.
-
474  * Failure to heed the above warning may result in bricked module.
-
475  */
-
476 //#define RADIOLIB_GODMODE
-
477 
-
478 /*
-
479  * Uncomment to enable low-level hardware access
-
480  * This will make some hardware methods like SPI get/set accessible from the user sketch - think of it as "god mode lite"
-
481  * Warning: RadioLib won't stop you from writing invalid stuff into your device, so it's quite easy to brick your module with this.
-
482  */
-
483 //#define RADIOLIB_LOW_LEVEL
-
484 
-
485 /*
-
486  * Uncomment to enable pre-defined modules when using RadioShield.
-
487  */
-
488 //#define RADIOLIB_RADIOSHIELD
-
489 
-
490 /*
-
491  * Uncomment to enable static-only memory management: no dynamic allocation will be performed.
-
492  * Warning: Large static arrays will be created in some methods. It is not advised to send large packets in this mode.
-
493  */
-
494 //#define RADIOLIB_STATIC_ONLY
-
495 
-
496 // set the size of static arrays to use
-
497 #if !defined(RADIOLIB_STATIC_ARRAY_SIZE)
-
498 #define RADIOLIB_STATIC_ARRAY_SIZE 256
-
499 #endif
-
500 
-
504 #define RADIOLIB_ASSERT(STATEVAR) { if((STATEVAR) != ERR_NONE) { return(STATEVAR); } }
-
505 
-
509 #if defined(RADIOLIB_CHECK_PARAMS)
-
510 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) { if(!(((VAR) >= (MIN)) && ((VAR) <= (MAX)))) { return(ERR); } }
-
511 #else
-
512 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) {}
-
513 #endif
-
514 
-
515 // version definitions
-
516 #define RADIOLIB_VERSION_MAJOR (0x04)
-
517 #define RADIOLIB_VERSION_MINOR (0x06)
-
518 #define RADIOLIB_VERSION_PATCH (0x00)
-
519 #define RADIOLIB_VERSION_EXTRA (0x00)
-
520 
-
521 #define RADIOLIB_VERSION ((RADIOLIB_VERSION_MAJOR << 24) | (RADIOLIB_VERSION_MINOR << 16) | (RADIOLIB_VERSION_PATCH << 8) | (RADIOLIB_VERSION_EXTRA))
+
465 /*
+
466  * Uncomment to enable SX127x errata fix
+
467  * Warning: SX127x errata fix has been reported to cause issues with LoRa bandwidths lower than 62.5 kHz.
+
468  * It should only be enabled if you really are observing some errata-related issue.
+
469  * Note: Disabled by default.
+
470  */
+
471 //#define RADIOLIB_FIX_ERRATA_SX127X
+
472 
+
473 #if defined(RADIOLIB_FIX_ERRATA_SX127X)
+
474  #define RADIOLIB_ERRATA_SX127X(...) { errataFix(__VA_ARGS__); }
+
475 #else
+
476  #define RADIOLIB_ERRATA_SX127X(...) {}
+
477 #endif
+
478 
+
479 /*
+
480  * Uncomment to enable god mode - all methods and member variables in all classes will be made public, thus making them accessible from Arduino code.
+
481  * Warning: Come on, it's called GOD mode - obviously only use this if you know what you're doing.
+
482  * Failure to heed the above warning may result in bricked module.
+
483  */
+
484 //#define RADIOLIB_GODMODE
+
485 
+
486 /*
+
487  * Uncomment to enable low-level hardware access
+
488  * This will make some hardware methods like SPI get/set accessible from the user sketch - think of it as "god mode lite"
+
489  * Warning: RadioLib won't stop you from writing invalid stuff into your device, so it's quite easy to brick your module with this.
+
490  */
+
491 //#define RADIOLIB_LOW_LEVEL
+
492 
+
493 /*
+
494  * Uncomment to enable pre-defined modules when using RadioShield.
+
495  */
+
496 //#define RADIOLIB_RADIOSHIELD
+
497 
+
498 /*
+
499  * Uncomment to enable static-only memory management: no dynamic allocation will be performed.
+
500  * Warning: Large static arrays will be created in some methods. It is not advised to send large packets in this mode.
+
501  */
+
502 //#define RADIOLIB_STATIC_ONLY
+
503 
+
504 // set the size of static arrays to use
+
505 #if !defined(RADIOLIB_STATIC_ARRAY_SIZE)
+
506 #define RADIOLIB_STATIC_ARRAY_SIZE 256
+
507 #endif
+
508 
+
512 #define RADIOLIB_ASSERT(STATEVAR) { if((STATEVAR) != ERR_NONE) { return(STATEVAR); } }
+
513 
+
517 #if defined(RADIOLIB_CHECK_PARAMS)
+
518 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) { if(!(((VAR) >= (MIN)) && ((VAR) <= (MAX)))) { return(ERR); } }
+
519 #else
+
520 #define RADIOLIB_CHECK_RANGE(VAR, MIN, MAX, ERR) {}
+
521 #endif
522 
-
523 #endif
+
523 // version definitions
+
524 #define RADIOLIB_VERSION_MAJOR (0x04)
+
525 #define RADIOLIB_VERSION_MINOR (0x06)
+
526 #define RADIOLIB_VERSION_PATCH (0x00)
+
527 #define RADIOLIB_VERSION_EXTRA (0x00)
+
528 
+
529 #define RADIOLIB_VERSION ((RADIOLIB_VERSION_MAJOR << 24) | (RADIOLIB_VERSION_MINOR << 16) | (RADIOLIB_VERSION_PATCH << 8) | (RADIOLIB_VERSION_EXTRA))
+
530 
+
531 #endif