762// platform properties may be defined here, or somewhere else in the build system
763
764#endif
765
766/*
767 * Uncomment to enable debug output.
768 * Warning: Debug output will slow down the whole system significantly.
769 * Also, it will result in larger compiled binary.
770 * Levels: debug - only main info
771 * verbose - full transcript of all SPI communication
772 */
773#if !defined(RADIOLIB_DEBUG)
774//#define RADIOLIB_DEBUG
775#endif
776#if !defined(RADIOLIB_VERBOSE)
777//#define RADIOLIB_VERBOSE
778#endif
779
780// set which output port should be used for debug output
781// may be Serial port (on Arduino) or file like stdout or stderr (on generic platforms)
782#if !defined(RADIOLIB_DEBUG_PORT)
783 #define RADIOLIB_DEBUG_PORT Serial
784#endif
785
786/*
787 * Uncomment to enable "paranoid" SPI mode
788 * Every write to an SPI register using SPI set function will be verified by a subsequent read operation.
789 * This improves reliablility, but slightly slows down communication.
790 * Note: Enabled by default.
791 */
792#if !defined(RADIOLIB_SPI_PARANOID)
793 #define RADIOLIB_SPI_PARANOID
794#endif
795
796/*
797 * Uncomment to enable parameter range checking
798 * RadioLib will check provided parameters (such as frequency) against limits determined by the device manufacturer.
799 * It is highly advised to keep this macro defined, removing it will allow invalid values to be set,
800 * possibly leading to bricked module and/or program crashing.
801 * Note: Enabled by default.
802 */
803#if !defined(RADIOLIB_CHECK_PARAMS)
804 #define RADIOLIB_CHECK_PARAMS
805#endif
806
807/*
808 * Uncomment to enable SX127x errata fix
809 * Warning: SX127x errata fix has been reported to cause issues with LoRa bandwidths lower than 62.5 kHz.
810 * It should only be enabled if you really are observing some errata-related issue.
811 * Note: Disabled by default.
812 */
813#if !defined(RADIOLIB_FIX_ERRATA_SX127X)
814//#define RADIOLIB_FIX_ERRATA_SX127X
815#endif
816
817/*
818 * Uncomment to enable god mode - all methods and member variables in all classes will be made public, thus making them accessible from Arduino code.
819 * Warning: Come on, it's called GOD mode - obviously only use this if you know what you're doing.
820 * Failure to heed the above warning may result in bricked module.
821 */
822#if !defined(RADIOLIB_FIX_ERRATA_SX127X)
823//#define RADIOLIB_GODMODE
824#endif
825
826/*
827 * Uncomment to enable low-level hardware access
828 * This will make some hardware methods like SPI get/set accessible from the user sketch - think of it as "god mode lite"
829 * Warning: RadioLib won't stop you from writing invalid stuff into your device, so it's quite easy to brick your module with this.
830 */
831#if !defined(RADIOLIB_FIX_ERRATA_SX127X)
832//#define RADIOLIB_LOW_LEVEL
833#endif
834
835/*
836 * Uncomment to enable pre-defined modules when using RadioShield.
837 */
838#if !defined(RADIOLIB_FIX_ERRATA_SX127X)
839//#define RADIOLIB_RADIOSHIELD
840#endif
841
842/*
843 * Uncomment to enable static-only memory management: no dynamic allocation will be performed.
844 * Warning: Large static arrays will be created in some methods. It is not advised to send large packets in this mode.