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