833// platform properties may be defined here, or somewhere else in the build system
834
835#endif
836
837/*
838 * Uncomment to enable debug output.
839 * Warning: Debug output will slow down the whole system significantly.
840 * Also, it will result in larger compiled binary.
841 * Levels: debug - only main info
842 * verbose - full transcript of all SPI communication
843 */
844#if !defined(RADIOLIB_DEBUG)
845//#define RADIOLIB_DEBUG
846#endif
847#if !defined(RADIOLIB_VERBOSE)
848//#define RADIOLIB_VERBOSE
849#endif
850
851// set which output port should be used for debug output
852// may be Serial port (on Arduino) or file like stdout or stderr (on generic platforms)
853#if !defined(RADIOLIB_DEBUG_PORT)
854 #define RADIOLIB_DEBUG_PORT Serial
855#endif
856
857/*
858 * Uncomment to enable "paranoid" SPI mode
859 * Every write to an SPI register using SPI set function will be verified by a subsequent read operation.
860 * This improves reliablility, but slightly slows down communication.
861 * Note: Enabled by default.
862 */
863#if !defined(RADIOLIB_SPI_PARANOID)
864 #define RADIOLIB_SPI_PARANOID
865#endif
866
867/*
868 * Uncomment to enable parameter range checking
869 * RadioLib will check provided parameters (such as frequency) against limits determined by the device manufacturer.
870 * It is highly advised to keep this macro defined, removing it will allow invalid values to be set,
871 * possibly leading to bricked module and/or program crashing.
872 * Note: Enabled by default.
873 */
874#if !defined(RADIOLIB_CHECK_PARAMS)
875 #define RADIOLIB_CHECK_PARAMS
876#endif
877
878/*
879 * Uncomment to enable SX127x errata fix
880 * Warning: SX127x errata fix has been reported to cause issues with LoRa bandwidths lower than 62.5 kHz.
881 * It should only be enabled if you really are observing some errata-related issue.
882 * Note: Disabled by default.
883 */
884#if !defined(RADIOLIB_FIX_ERRATA_SX127X)
885//#define RADIOLIB_FIX_ERRATA_SX127X
886#endif
887
888/*
889 * Uncomment to enable god mode - all methods and member variables in all classes will be made public, thus making them accessible from Arduino code.
890 * Warning: Come on, it's called GOD mode - obviously only use this if you know what you're doing.
891 * Failure to heed the above warning may result in bricked module.
892 */
893#if !defined(RADIOLIB_GODMODE)
894//#define RADIOLIB_GODMODE
895#endif
896
897/*
898 * Uncomment to enable low-level hardware access
899 * This will make some hardware methods like SPI get/set accessible from the user sketch - think of it as "god mode lite"
900 * Warning: RadioLib won't stop you from writing invalid stuff into your device, so it's quite easy to brick your module with this.
901 */
902#if !defined(RADIOLIB_LOW_LEVEL)
903//#define RADIOLIB_LOW_LEVEL
904#endif
905
906/*
907 * Uncomment to enable pre-defined modules when using RadioShield.
908 */
909#if !defined(RADIOLIB_RADIOSHIELD)
910//#define RADIOLIB_RADIOSHIELD
911#endif
912
913/*
914 * Uncomment to enable static-only memory management: no dynamic allocation will be performed.
915 * Warning: Large static arrays will be created in some methods. It is not advised to send large packets in this mode.