888// platform properties may be defined here, or somewhere else in the build system
889
890#endif
891
892/*
893 * Uncomment to enable debug output.
894 * Warning: Debug output will slow down the whole system significantly.
895 * Also, it will result in larger compiled binary.
896 * Levels: debug - only main info
897 * verbose - full transcript of all SPI communication
898 */
899#if !defined(RADIOLIB_DEBUG)
900//#define RADIOLIB_DEBUG
901#endif
902#if !defined(RADIOLIB_VERBOSE)
903//#define RADIOLIB_VERBOSE
904#endif
905
906// set which output port should be used for debug output
907// may be Serial port (on Arduino) or file like stdout or stderr (on generic platforms)
908#if !defined(RADIOLIB_DEBUG_PORT)
909 #define RADIOLIB_DEBUG_PORT Serial
910#endif
911
912/*
913 * Uncomment to enable "paranoid" SPI mode
914 * Every write to an SPI register using SPI set function will be verified by a subsequent read operation.
915 * This improves reliablility, but slightly slows down communication.
916 * Note: Enabled by default.
917 */
918#if !defined(RADIOLIB_SPI_PARANOID)
919 #define RADIOLIB_SPI_PARANOID
920#endif
921
922/*
923 * Uncomment to enable parameter range checking
924 * RadioLib will check provided parameters (such as frequency) against limits determined by the device manufacturer.
925 * It is highly advised to keep this macro defined, removing it will allow invalid values to be set,
926 * possibly leading to bricked module and/or program crashing.
927 * Note: Enabled by default.
928 */
929#if !defined(RADIOLIB_CHECK_PARAMS)
930 #define RADIOLIB_CHECK_PARAMS
931#endif
932
933/*
934 * Uncomment to enable SX127x errata fix
935 * Warning: SX127x errata fix has been reported to cause issues with LoRa bandwidths lower than 62.5 kHz.
936 * It should only be enabled if you really are observing some errata-related issue.
937 * Note: Disabled by default.
938 */
939#if !defined(RADIOLIB_FIX_ERRATA_SX127X)
940//#define RADIOLIB_FIX_ERRATA_SX127X
941#endif
942
943/*
944 * Uncomment to enable god mode - all methods and member variables in all classes will be made public, thus making them accessible from Arduino code.
945 * Warning: Come on, it's called GOD mode - obviously only use this if you know what you're doing.
946 * Failure to heed the above warning may result in bricked module.
947 */
948#if !defined(RADIOLIB_GODMODE)
949//#define RADIOLIB_GODMODE
950#endif
951
952/*
953 * Uncomment to enable low-level hardware access
954 * This will make some hardware methods like SPI get/set accessible from the user sketch - think of it as "god mode lite"
955 * Warning: RadioLib won't stop you from writing invalid stuff into your device, so it's quite easy to brick your module with this.
956 */
957#if !defined(RADIOLIB_LOW_LEVEL)
958//#define RADIOLIB_LOW_LEVEL
959#endif
960
961/*
962 * Uncomment to enable pre-defined modules when using RadioShield.
963 */
964#if !defined(RADIOLIB_RADIOSHIELD)
965//#define RADIOLIB_RADIOSHIELD
966#endif
967
968/*
969 * Uncomment to enable static-only memory management: no dynamic allocation will be performed.
970 * Warning: Large static arrays will be created in some methods. It is not advised to send large packets in this mode.