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