911// platform properties may be defined here, or somewhere else in the build system
912 #include "noarduino.h"
913
914#endif
915
916/*
917 * Uncomment to enable debug output.
918 * Warning: Debug output will slow down the whole system significantly.
919 * Also, it will result in larger compiled binary.
920 * Levels: debug - only main info
921 * verbose - full transcript of all SPI communication
922 */
923#if !defined(RADIOLIB_DEBUG)
924//#define RADIOLIB_DEBUG
925#endif
926#if !defined(RADIOLIB_VERBOSE)
927//#define RADIOLIB_VERBOSE
928#endif
929
930// set which output port should be used for debug output
931// may be Serial port (on Arduino) or file like stdout or stderr (on generic platforms)
932#if !defined(RADIOLIB_DEBUG_PORT)
933 #define RADIOLIB_DEBUG_PORT Serial
934#endif
935
936/*
937 * Uncomment to enable "paranoid" SPI mode
938 * Every write to an SPI register using SPI set function will be verified by a subsequent read operation.
939 * This improves reliablility, but slightly slows down communication.
940 * Note: Enabled by default.
941 */
942#if !defined(RADIOLIB_SPI_PARANOID)
943 #define RADIOLIB_SPI_PARANOID
944#endif
945
946/*
947 * Uncomment to enable parameter range checking
948 * RadioLib will check provided parameters (such as frequency) against limits determined by the device manufacturer.
949 * It is highly advised to keep this macro defined, removing it will allow invalid values to be set,
950 * possibly leading to bricked module and/or program crashing.
951 * Note: Enabled by default.
952 */
953#if !defined(RADIOLIB_CHECK_PARAMS)
954 #define RADIOLIB_CHECK_PARAMS
955#endif
956
957/*
958 * Uncomment to enable SX127x errata fix
959 * Warning: SX127x errata fix has been reported to cause issues with LoRa bandwidths lower than 62.5 kHz.
960 * It should only be enabled if you really are observing some errata-related issue.
961 * Note: Disabled by default.
962 */
963#if !defined(RADIOLIB_FIX_ERRATA_SX127X)
964//#define RADIOLIB_FIX_ERRATA_SX127X
965#endif
966
967/*
968 * Uncomment to enable god mode - all methods and member variables in all classes will be made public, thus making them accessible from Arduino code.
969 * Warning: Come on, it's called GOD mode - obviously only use this if you know what you're doing.
970 * Failure to heed the above warning may result in bricked module.
971 */
972#if !defined(RADIOLIB_GODMODE)
973//#define RADIOLIB_GODMODE
974#endif
975
976/*
977 * Uncomment to enable low-level hardware access
978 * This will make some hardware methods like SPI get/set accessible from the user sketch - think of it as "god mode lite"
979 * Warning: RadioLib won't stop you from writing invalid stuff into your device, so it's quite easy to brick your module with this.
980 */
981#if !defined(RADIOLIB_LOW_LEVEL)
982//#define RADIOLIB_LOW_LEVEL
983#endif
984
985/*
986 * Uncomment to enable pre-defined modules when using RadioShield.
987 */
988#if !defined(RADIOLIB_RADIOSHIELD)
989//#define RADIOLIB_RADIOSHIELD
990#endif
991
992/*
993 * Uncomment to enable interrupt-based timing control
994 * For details, see https://github.com/jgromes/RadioLib/wiki/Interrupt-Based-Timing
995 */
996#if !defined(RADIOLIB_INTERRUPT_TIMING)
997//#define RADIOLIB_INTERRUPT_TIMING
998#endif
999
1000/*
1001 * Uncomment to enable static-only memory management: no dynamic allocation will be performed.
1002 * Warning: Large static arrays will be created in some methods. It is not advised to send large packets in this mode.
1003 */
1004#if !defined(RADIOLIB_STATIC_ONLY)
1005//#define RADIOLIB_STATIC_ONLY
1006#endif
1007
1008// set the size of static arrays to use
1009#if !defined(RADIOLIB_STATIC_ARRAY_SIZE)
1010 #define RADIOLIB_STATIC_ARRAY_SIZE (256)
1011#endif
1012
1013
1014// This only compiles on STM32 boards with SUBGHZ module, but also