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