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