From 4a8f9cbea4da12244c9d500525a96a09ba6c9352 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 11 Jan 2025 08:32:50 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=209a8af?= =?UTF-8?q?fde8e0b3d66ff91016dad0da9ef03d41eb3=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _build_opt_8h_source.html | 742 +++++++++++++++++++------------------- 1 file changed, 371 insertions(+), 371 deletions(-) diff --git a/_build_opt_8h_source.html b/_build_opt_8h_source.html index 6b38b9b6..201b7f6a 100644 --- a/_build_opt_8h_source.html +++ b/_build_opt_8h_source.html @@ -117,413 +117,413 @@ $(document).ready(function(){initNavTree('_build_opt_8h_source.html',''); initRe
29 // set which output port should be used for debug output
30 // may be Serial port (on Arduino) or file like stdout or stderr (on generic platforms)
31 #if !defined(RADIOLIB_DEBUG_PORT)
-
32  #define RADIOLIB_DEBUG_PORT Serial
-
33 #endif
-
34 
-
35 /*
-
36  * Comment to disable "paranoid" SPI mode, or set RADIOLIB_SPI_PARANOID to 0
-
37  * Every write to an SPI register using SPI set function will be verified by a subsequent read operation.
-
38  * This improves reliability, but slightly slows down communication.
-
39  * Note: Enabled by default.
-
40  */
-
41 #if !defined(RADIOLIB_SPI_PARANOID)
-
42  #define RADIOLIB_SPI_PARANOID (1)
-
43 #endif
-
44 
-
45 /*
-
46  * Comment to disable parameter range checking
-
47  * RadioLib will check provided parameters (such as frequency) against limits determined by the device manufacturer.
-
48  * It is highly advised to keep this macro defined, removing it will allow invalid values to be set,
-
49  * possibly leading to bricked module and/or program crashing.
-
50  * Note: Enabled by default.
-
51  */
-
52 #if !defined(RADIOLIB_CHECK_PARAMS)
-
53  #define RADIOLIB_CHECK_PARAMS (1)
-
54 #endif
-
55 
-
56 /*
-
57  * SX127x errata fix enable
-
58  * Warning: SX127x errata fix has been reported to cause issues with LoRa bandwidths lower than 62.5 kHz.
-
59  * It should only be enabled if you really are observing some errata-related issue.
-
60  * Note: Disabled by default.
-
61  */
-
62 #if !defined(RADIOLIB_FIX_ERRATA_SX127X)
-
63  #define RADIOLIB_FIX_ERRATA_SX127X (0)
-
64 #endif
-
65 
-
66 /*
-
67  * God mode enable - all methods and member variables in all classes will be made public, thus making them accessible from Arduino code.
-
68  * Warning: Come on, it's called GOD mode - obviously only use this if you know what you're doing.
-
69  * Failure to heed the above warning may result in bricked module.
-
70  */
-
71 #if !defined(RADIOLIB_GODMODE)
-
72  #define RADIOLIB_GODMODE (0)
-
73 #endif
-
74 
-
75 /*
-
76  * Low-level hardware access enable
-
77  * This will make some hardware methods like SPI get/set accessible from the user sketch - think of it as "god mode lite"
-
78  * Warning: RadioLib won't stop you from writing invalid stuff into your device, so it's quite easy to brick your module with this.
-
79  */
-
80 #if !defined(RADIOLIB_LOW_LEVEL)
-
81  #define RADIOLIB_LOW_LEVEL (0)
-
82 #endif
-
83 
-
84 /*
-
85  * Enable interrupt-based timing control
-
86  * For details, see https://github.com/jgromes/RadioLib/wiki/Interrupt-Based-Timing
-
87  */
-
88 #if !defined(RADIOLIB_INTERRUPT_TIMING)
-
89  #define RADIOLIB_INTERRUPT_TIMING (0)
-
90 #endif
-
91 
-
92 /*
-
93  * Enable static-only memory management: no dynamic allocation will be performed.
-
94  * Warning: Large static arrays will be created in some methods. It is not advised to send large packets in this mode.
-
95  */
-
96 #if !defined(RADIOLIB_STATIC_ONLY)
-
97  #define RADIOLIB_STATIC_ONLY (0)
-
98 #endif
-
99 
-
100 // set the size of static arrays to use
-
101 #if !defined(RADIOLIB_STATIC_ARRAY_SIZE)
-
102  #define RADIOLIB_STATIC_ARRAY_SIZE (256)
-
103 #endif
-
104 
-
105 /*
-
106  * Uncomment on boards whose clock runs too slow or too fast
-
107  * Set the value according to the following scheme:
-
108  * Enable timestamps on your terminal
-
109  * Print something to terminal, wait 1000 milliseconds, print something again
-
110  * If the difference is e.g. 1014 milliseconds between the prints, set this value to 14
-
111  * Or, for more accuracy, wait for 100,000 milliseconds and divide the total drift by 100
-
112  */
-
113 #if !defined(RADIOLIB_CLOCK_DRIFT_MS)
-
114  //#define RADIOLIB_CLOCK_DRIFT_MS (0)
-
115 #endif
-
116 
-
117 #if ARDUINO >= 100
-
118  // Arduino build
-
119  #include "Arduino.h"
-
120  #define RADIOLIB_BUILD_ARDUINO
-
121 #else
-
122  // generic build
-
123  #include <stdio.h>
-
124  #define RADIOLIB_BUILD_GENERIC
-
125 #endif
-
126 
-
127 #if defined(RADIOLIB_BUILD_ARDUINO)
-
128 /*
-
129  * Platform-specific configuration.
-
130  *
-
131  * RADIOLIB_PLATFORM - platform name, used in debugging to quickly check the correct platform is detected.
-
132  * RADIOLIB_NC - alias for unused pin, usually the largest possible value of uint32_t.
-
133  * RADIOLIB_DEFAULT_SPI - default SPIClass instance to use.
-
134  * RADIOLIB_NONVOLATILE - macro to place variable into program storage (usually Flash).
-
135  * RADIOLIB_NONVOLATILE_READ_BYTE - function/macro to read variables saved in program storage (usually Flash).
-
136  * RADIOLIB_TYPE_ALIAS - construct to create an alias for a type, usually via the `using` keyword.
-
137  * RADIOLIB_TONE_UNSUPPORTED - some platforms do not have tone()/noTone(), which is required for AFSK.
-
138  *
-
139  * Users may also specify their own configuration by uncommenting the RADIOLIB_CUSTOM_ARDUINO,
-
140  * and then specifying all platform parameters in the section below. This will override automatic
-
141  * platform detection.
-
142  */
-
143 
-
144  // uncomment to enable custom platform definition
-
145  //#define RADIOLIB_CUSTOM_ARDUINO
-
146 
-
147 #if defined(RADIOLIB_CUSTOM_ARDUINO)
-
148  // name for your platform
-
149  #define RADIOLIB_PLATFORM "Custom"
+
32  #if ARDUINO >= 100
+
33  #define RADIOLIB_DEBUG_PORT Serial
+
34  #else
+
35  #define RADIOLIB_DEBUG_PORT stdout
+
36  #endif
+
37 #endif
+
38 
+
39 /*
+
40  * Comment to disable "paranoid" SPI mode, or set RADIOLIB_SPI_PARANOID to 0
+
41  * Every write to an SPI register using SPI set function will be verified by a subsequent read operation.
+
42  * This improves reliability, but slightly slows down communication.
+
43  * Note: Enabled by default.
+
44  */
+
45 #if !defined(RADIOLIB_SPI_PARANOID)
+
46  #define RADIOLIB_SPI_PARANOID (1)
+
47 #endif
+
48 
+
49 /*
+
50  * Comment to disable parameter range checking
+
51  * RadioLib will check provided parameters (such as frequency) against limits determined by the device manufacturer.
+
52  * It is highly advised to keep this macro defined, removing it will allow invalid values to be set,
+
53  * possibly leading to bricked module and/or program crashing.
+
54  * Note: Enabled by default.
+
55  */
+
56 #if !defined(RADIOLIB_CHECK_PARAMS)
+
57  #define RADIOLIB_CHECK_PARAMS (1)
+
58 #endif
+
59 
+
60 /*
+
61  * SX127x errata fix enable
+
62  * Warning: SX127x errata fix has been reported to cause issues with LoRa bandwidths lower than 62.5 kHz.
+
63  * It should only be enabled if you really are observing some errata-related issue.
+
64  * Note: Disabled by default.
+
65  */
+
66 #if !defined(RADIOLIB_FIX_ERRATA_SX127X)
+
67  #define RADIOLIB_FIX_ERRATA_SX127X (0)
+
68 #endif
+
69 
+
70 /*
+
71  * God mode enable - all methods and member variables in all classes will be made public, thus making them accessible from Arduino code.
+
72  * Warning: Come on, it's called GOD mode - obviously only use this if you know what you're doing.
+
73  * Failure to heed the above warning may result in bricked module.
+
74  */
+
75 #if !defined(RADIOLIB_GODMODE)
+
76  #define RADIOLIB_GODMODE (0)
+
77 #endif
+
78 
+
79 /*
+
80  * Low-level hardware access enable
+
81  * This will make some hardware methods like SPI get/set accessible from the user sketch - think of it as "god mode lite"
+
82  * Warning: RadioLib won't stop you from writing invalid stuff into your device, so it's quite easy to brick your module with this.
+
83  */
+
84 #if !defined(RADIOLIB_LOW_LEVEL)
+
85  #define RADIOLIB_LOW_LEVEL (0)
+
86 #endif
+
87 
+
88 /*
+
89  * Enable interrupt-based timing control
+
90  * For details, see https://github.com/jgromes/RadioLib/wiki/Interrupt-Based-Timing
+
91  */
+
92 #if !defined(RADIOLIB_INTERRUPT_TIMING)
+
93  #define RADIOLIB_INTERRUPT_TIMING (0)
+
94 #endif
+
95 
+
96 /*
+
97  * Enable static-only memory management: no dynamic allocation will be performed.
+
98  * Warning: Large static arrays will be created in some methods. It is not advised to send large packets in this mode.
+
99  */
+
100 #if !defined(RADIOLIB_STATIC_ONLY)
+
101  #define RADIOLIB_STATIC_ONLY (0)
+
102 #endif
+
103 
+
104 // set the size of static arrays to use
+
105 #if !defined(RADIOLIB_STATIC_ARRAY_SIZE)
+
106  #define RADIOLIB_STATIC_ARRAY_SIZE (256)
+
107 #endif
+
108 
+
109 /*
+
110  * Uncomment on boards whose clock runs too slow or too fast
+
111  * Set the value according to the following scheme:
+
112  * Enable timestamps on your terminal
+
113  * Print something to terminal, wait 1000 milliseconds, print something again
+
114  * If the difference is e.g. 1014 milliseconds between the prints, set this value to 14
+
115  * Or, for more accuracy, wait for 100,000 milliseconds and divide the total drift by 100
+
116  */
+
117 #if !defined(RADIOLIB_CLOCK_DRIFT_MS)
+
118  //#define RADIOLIB_CLOCK_DRIFT_MS (0)
+
119 #endif
+
120 
+
121 #if ARDUINO >= 100
+
122  // Arduino build
+
123  #include "Arduino.h"
+
124  #define RADIOLIB_BUILD_ARDUINO
+
125 #else
+
126  // generic build
+
127  #include <stdio.h>
+
128  #define RADIOLIB_BUILD_GENERIC
+
129 #endif
+
130 
+
131 #if defined(RADIOLIB_BUILD_ARDUINO)
+
132 /*
+
133  * Platform-specific configuration.
+
134  *
+
135  * RADIOLIB_PLATFORM - platform name, used in debugging to quickly check the correct platform is detected.
+
136  * RADIOLIB_NC - alias for unused pin, usually the largest possible value of uint32_t.
+
137  * RADIOLIB_DEFAULT_SPI - default SPIClass instance to use.
+
138  * RADIOLIB_NONVOLATILE - macro to place variable into program storage (usually Flash).
+
139  * RADIOLIB_NONVOLATILE_READ_BYTE - function/macro to read variables saved in program storage (usually Flash).
+
140  * RADIOLIB_TYPE_ALIAS - construct to create an alias for a type, usually via the `using` keyword.
+
141  * RADIOLIB_TONE_UNSUPPORTED - some platforms do not have tone()/noTone(), which is required for AFSK.
+
142  *
+
143  * Users may also specify their own configuration by uncommenting the RADIOLIB_CUSTOM_ARDUINO,
+
144  * and then specifying all platform parameters in the section below. This will override automatic
+
145  * platform detection.
+
146  */
+
147 
+
148  // uncomment to enable custom platform definition
+
149  //#define RADIOLIB_CUSTOM_ARDUINO
150 
-
151  // the following must be defined if the Arduino core does not support tone or yield function
-
152  //#define RADIOLIB_TONE_UNSUPPORTED
-
153  //#define RADIOLIB_YIELD_UNSUPPORTED
+
151 #if defined(RADIOLIB_CUSTOM_ARDUINO)
+
152  // name for your platform
+
153  #define RADIOLIB_PLATFORM "Custom"
154 
-
155  // in addition, the following macros may be defined if the Arduino core differs from the defaults
-
156  #define RADIOLIB_NC (0xFFFFFFFF)
-
157  #define RADIOLIB_DEFAULT_SPI SPI
-
158  #define RADIOLIB_DEFAULT_SPI_SETTINGS SPISettings(2000000, MSBFIRST, SPI_MODE0)
-
159  #define RADIOLIB_NONVOLATILE PROGMEM
-
160  #define RADIOLIB_NONVOLATILE_READ_BYTE(addr) pgm_read_byte(addr)
-
161  #define RADIOLIB_NONVOLATILE_READ_DWORD(addr) pgm_read_dword(addr)
-
162  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
-
163 
-
164  // you might also have to define these if the Arduino core has some uncommon pin mode/status types
-
165  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST
-
166  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST
-
167  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST
-
168 
-
169  // some of RadioLib drivers may be excluded, to prevent collisions with platforms (or to speed up build process)
-
170  // the following is a complete list of all possible exclusion macros, uncomment any of them to disable that driver
-
171  // NOTE: Some of the exclusion macros are dependent on each other. For example, it is not possible to exclude RF69
-
172  // while keeping SX1231 (because RF69 is the base class for SX1231). The dependency is always uni-directional,
-
173  // so excluding SX1231 and keeping RF69 is valid.
-
174  //#define RADIOLIB_EXCLUDE_CC1101 (1)
-
175  //#define RADIOLIB_EXCLUDE_NRF24 (1)
-
176  //#define RADIOLIB_EXCLUDE_RF69 (1)
-
177  //#define RADIOLIB_EXCLUDE_SX1231 (1) // dependent on RADIOLIB_EXCLUDE_RF69
-
178  //#define RADIOLIB_EXCLUDE_SI443X (1)
-
179  //#define RADIOLIB_EXCLUDE_RFM2X (1) // dependent on RADIOLIB_EXCLUDE_SI443X
-
180  //#define RADIOLIB_EXCLUDE_SX127X (1)
-
181  //#define RADIOLIB_EXCLUDE_SX126X (1)
-
182  //#define RADIOLIB_EXCLUDE_STM32WLX (1) // dependent on RADIOLIB_EXCLUDE_SX126X
-
183  //#define RADIOLIB_EXCLUDE_SX128X (1)
-
184  //#define RADIOLIB_EXCLUDE_AFSK (1)
-
185  //#define RADIOLIB_EXCLUDE_AX25 (1)
-
186  //#define RADIOLIB_EXCLUDE_HELLSCHREIBER (1)
-
187  //#define RADIOLIB_EXCLUDE_MORSE (1)
-
188  //#define RADIOLIB_EXCLUDE_RTTY (1)
-
189  //#define RADIOLIB_EXCLUDE_SSTV (1)
-
190  //#define RADIOLIB_EXCLUDE_DIRECT_RECEIVE (1)
-
191 
-
192 #elif defined(__AVR__) && !(defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) || defined(ARDUINO_ARCH_MEGAAVR))
-
193  // Arduino AVR boards (except for megaAVR) - Uno, Mega etc.
-
194  #define RADIOLIB_PLATFORM "Arduino AVR"
+
155  // the following must be defined if the Arduino core does not support tone or yield function
+
156  //#define RADIOLIB_TONE_UNSUPPORTED
+
157  //#define RADIOLIB_YIELD_UNSUPPORTED
+
158 
+
159  // in addition, the following macros may be defined if the Arduino core differs from the defaults
+
160  #define RADIOLIB_NC (0xFFFFFFFF)
+
161  #define RADIOLIB_DEFAULT_SPI SPI
+
162  #define RADIOLIB_DEFAULT_SPI_SETTINGS SPISettings(2000000, MSBFIRST, SPI_MODE0)
+
163  #define RADIOLIB_NONVOLATILE PROGMEM
+
164  #define RADIOLIB_NONVOLATILE_READ_BYTE(addr) pgm_read_byte(addr)
+
165  #define RADIOLIB_NONVOLATILE_READ_DWORD(addr) pgm_read_dword(addr)
+
166  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
167 
+
168  // you might also have to define these if the Arduino core has some uncommon pin mode/status types
+
169  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST
+
170  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST
+
171  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST
+
172 
+
173  // some of RadioLib drivers may be excluded, to prevent collisions with platforms (or to speed up build process)
+
174  // the following is a complete list of all possible exclusion macros, uncomment any of them to disable that driver
+
175  // NOTE: Some of the exclusion macros are dependent on each other. For example, it is not possible to exclude RF69
+
176  // while keeping SX1231 (because RF69 is the base class for SX1231). The dependency is always uni-directional,
+
177  // so excluding SX1231 and keeping RF69 is valid.
+
178  //#define RADIOLIB_EXCLUDE_CC1101 (1)
+
179  //#define RADIOLIB_EXCLUDE_NRF24 (1)
+
180  //#define RADIOLIB_EXCLUDE_RF69 (1)
+
181  //#define RADIOLIB_EXCLUDE_SX1231 (1) // dependent on RADIOLIB_EXCLUDE_RF69
+
182  //#define RADIOLIB_EXCLUDE_SI443X (1)
+
183  //#define RADIOLIB_EXCLUDE_RFM2X (1) // dependent on RADIOLIB_EXCLUDE_SI443X
+
184  //#define RADIOLIB_EXCLUDE_SX127X (1)
+
185  //#define RADIOLIB_EXCLUDE_SX126X (1)
+
186  //#define RADIOLIB_EXCLUDE_STM32WLX (1) // dependent on RADIOLIB_EXCLUDE_SX126X
+
187  //#define RADIOLIB_EXCLUDE_SX128X (1)
+
188  //#define RADIOLIB_EXCLUDE_AFSK (1)
+
189  //#define RADIOLIB_EXCLUDE_AX25 (1)
+
190  //#define RADIOLIB_EXCLUDE_HELLSCHREIBER (1)
+
191  //#define RADIOLIB_EXCLUDE_MORSE (1)
+
192  //#define RADIOLIB_EXCLUDE_RTTY (1)
+
193  //#define RADIOLIB_EXCLUDE_SSTV (1)
+
194  //#define RADIOLIB_EXCLUDE_DIRECT_RECEIVE (1)
195 
-
196  #if !(defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
-
197  #define RADIOLIB_LOWEND_PLATFORM
-
198  #endif
+
196 #elif defined(__AVR__) && !(defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) || defined(ARDUINO_ARCH_MEGAAVR))
+
197  // Arduino AVR boards (except for megaAVR) - Uno, Mega etc.
+
198  #define RADIOLIB_PLATFORM "Arduino AVR"
199 
-
200 #elif defined(ESP8266)
-
201  // ESP8266 boards
-
202  #define RADIOLIB_PLATFORM "ESP8266"
+
200  #if !(defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
+
201  #define RADIOLIB_LOWEND_PLATFORM
+
202  #endif
203 
-
204 #elif defined(ESP32) || defined(ARDUINO_ARCH_ESP32)
-
205  #define RADIOLIB_ESP32
-
206 
-
207  // ESP32 boards
-
208  #define RADIOLIB_PLATFORM "ESP32"
-
209 
-
210  // ESP32 doesn't support tone(), but it can be emulated via LED control peripheral
-
211  #define RADIOLIB_TONE_UNSUPPORTED
-
212  #define RADIOLIB_TONE_ESP32_CHANNEL (1)
-
213 
-
214 #elif defined(ARDUINO_ARCH_STM32)
-
215  // official STM32 Arduino core (https://github.com/stm32duino/Arduino_Core_STM32)
-
216  #define RADIOLIB_PLATFORM "Arduino STM32 (official)"
+
204 #elif defined(ESP8266)
+
205  // ESP8266 boards
+
206  #define RADIOLIB_PLATFORM "ESP8266"
+
207 
+
208 #elif defined(ESP32) || defined(ARDUINO_ARCH_ESP32)
+
209  #define RADIOLIB_ESP32
+
210 
+
211  // ESP32 boards
+
212  #define RADIOLIB_PLATFORM "ESP32"
+
213 
+
214  // ESP32 doesn't support tone(), but it can be emulated via LED control peripheral
+
215  #define RADIOLIB_TONE_UNSUPPORTED
+
216  #define RADIOLIB_TONE_ESP32_CHANNEL (1)
217 
-
218 #elif defined(SAMD_SERIES)
-
219  // Adafruit SAMD boards (M0 and M4)
-
220  #define RADIOLIB_PLATFORM "Adafruit SAMD"
+
218 #elif defined(ARDUINO_ARCH_STM32)
+
219  // official STM32 Arduino core (https://github.com/stm32duino/Arduino_Core_STM32)
+
220  #define RADIOLIB_PLATFORM "Arduino STM32 (official)"
221 
-
222 #elif defined(ARDUINO_ARCH_SAMD)
-
223  // Arduino SAMD (Zero, MKR, etc.)
-
224  #define RADIOLIB_PLATFORM "Arduino SAMD"
-
225  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
-
226  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
-
227  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
-
228 
-
229 #elif defined(__SAM3X8E__)
-
230  // Arduino Due
-
231  #define RADIOLIB_PLATFORM "Arduino Due"
-
232  #define RADIOLIB_TONE_UNSUPPORTED
-
233 
-
234 #elif (defined(NRF52832_XXAA) || defined(NRF52840_XXAA)) && !defined(ARDUINO_ARDUINO_NANO33BLE)
-
235  // Adafruit nRF52 boards
-
236  #define RADIOLIB_PLATFORM "Adafruit nRF52"
+
222 #elif defined(SAMD_SERIES)
+
223  // Adafruit SAMD boards (M0 and M4)
+
224  #define RADIOLIB_PLATFORM "Adafruit SAMD"
+
225 
+
226 #elif defined(ARDUINO_ARCH_SAMD)
+
227  // Arduino SAMD (Zero, MKR, etc.)
+
228  #define RADIOLIB_PLATFORM "Arduino SAMD"
+
229  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
+
230  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
+
231  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
+
232 
+
233 #elif defined(__SAM3X8E__)
+
234  // Arduino Due
+
235  #define RADIOLIB_PLATFORM "Arduino Due"
+
236  #define RADIOLIB_TONE_UNSUPPORTED
237 
-
238 #elif defined(ARDUINO_ARC32_TOOLS)
-
239  // Intel Curie
-
240  #define RADIOLIB_PLATFORM "Intel Curie"
+
238 #elif (defined(NRF52832_XXAA) || defined(NRF52840_XXAA)) && !defined(ARDUINO_ARDUINO_NANO33BLE)
+
239  // Adafruit nRF52 boards
+
240  #define RADIOLIB_PLATFORM "Adafruit nRF52"
241 
-
242 #elif defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) || defined(PORTDUINO)
-
243  // Arduino megaAVR boards - Uno Wifi Rev.2, Nano Every
-
244  #define RADIOLIB_PLATFORM "Arduino megaAVR"
-
245  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
-
246  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
-
247  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
-
248 
-
249 #elif defined(ARDUINO_ARCH_APOLLO3)
-
250  // Sparkfun Apollo3 boards
-
251  #define RADIOLIB_PLATFORM "Sparkfun Apollo3"
-
252  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (Arduino_PinMode)
-
253  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
-
254  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
-
255 
-
256 #elif defined(ARDUINO_ARDUINO_NANO33BLE)
-
257  // Arduino Nano 33 BLE
-
258  #define RADIOLIB_PLATFORM "Arduino Nano 33 BLE"
-
259  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
-
260  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
-
261  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
-
262 
-
263  // Arduino mbed OS boards have a really bad tone implementation which will crash after a couple seconds
-
264  #define RADIOLIB_TONE_UNSUPPORTED
-
265  #define RADIOLIB_MBED_TONE_OVERRIDE
+
242 #elif defined(ARDUINO_ARC32_TOOLS)
+
243  // Intel Curie
+
244  #define RADIOLIB_PLATFORM "Intel Curie"
+
245 
+
246 #elif defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined(ARDUINO_AVR_NANO_EVERY) || defined(PORTDUINO)
+
247  // Arduino megaAVR boards - Uno Wifi Rev.2, Nano Every
+
248  #define RADIOLIB_PLATFORM "Arduino megaAVR"
+
249  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
+
250  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
+
251  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
+
252 
+
253 #elif defined(ARDUINO_ARCH_APOLLO3)
+
254  // Sparkfun Apollo3 boards
+
255  #define RADIOLIB_PLATFORM "Sparkfun Apollo3"
+
256  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (Arduino_PinMode)
+
257  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
+
258  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
+
259 
+
260 #elif defined(ARDUINO_ARDUINO_NANO33BLE)
+
261  // Arduino Nano 33 BLE
+
262  #define RADIOLIB_PLATFORM "Arduino Nano 33 BLE"
+
263  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
+
264  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
+
265  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
266 
-
267 #elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
-
268  // Arduino Portenta H7
-
269  #define RADIOLIB_PLATFORM "Portenta H7"
-
270  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
-
271  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
-
272  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
-
273 
-
274  // Arduino mbed OS boards have a really bad tone implementation which will crash after a couple seconds
-
275  #define RADIOLIB_TONE_UNSUPPORTED
-
276  #define RADIOLIB_MBED_TONE_OVERRIDE
+
267  // Arduino mbed OS boards have a really bad tone implementation which will crash after a couple seconds
+
268  #define RADIOLIB_TONE_UNSUPPORTED
+
269  #define RADIOLIB_MBED_TONE_OVERRIDE
+
270 
+
271 #elif defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_PORTENTA_H7_M4)
+
272  // Arduino Portenta H7
+
273  #define RADIOLIB_PLATFORM "Portenta H7"
+
274  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
+
275  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
+
276  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
277 
-
278 #elif defined(__STM32F4__) || defined(__STM32F1__)
-
279  // Arduino STM32 core by Roger Clark (https://github.com/rogerclarkmelbourne/Arduino_STM32)
-
280  #define RADIOLIB_PLATFORM "STM32duino (unofficial)"
-
281  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (WiringPinMode)
-
282  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (ExtIntTriggerMode)
-
283 
-
284 #elif defined(ARDUINO_ARCH_MEGAAVR)
-
285  // MegaCoreX by MCUdude (https://github.com/MCUdude/MegaCoreX)
-
286  #define RADIOLIB_PLATFORM "MegaCoreX"
+
278  // Arduino mbed OS boards have a really bad tone implementation which will crash after a couple seconds
+
279  #define RADIOLIB_TONE_UNSUPPORTED
+
280  #define RADIOLIB_MBED_TONE_OVERRIDE
+
281 
+
282 #elif defined(__STM32F4__) || defined(__STM32F1__)
+
283  // Arduino STM32 core by Roger Clark (https://github.com/rogerclarkmelbourne/Arduino_STM32)
+
284  #define RADIOLIB_PLATFORM "STM32duino (unofficial)"
+
285  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (WiringPinMode)
+
286  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (ExtIntTriggerMode)
287 
-
288 #elif defined(ARDUINO_ARCH_MBED_RP2040)
-
289  // Raspberry Pi Pico (official mbed core)
-
290  #define RADIOLIB_PLATFORM "Raspberry Pi Pico"
-
291  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
-
292  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
-
293  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
-
294 
-
295  // Arduino mbed OS boards have a really bad tone implementation which will crash after a couple seconds
-
296  #define RADIOLIB_TONE_UNSUPPORTED
-
297  #define RADIOLIB_MBED_TONE_OVERRIDE
+
288 #elif defined(ARDUINO_ARCH_MEGAAVR)
+
289  // MegaCoreX by MCUdude (https://github.com/MCUdude/MegaCoreX)
+
290  #define RADIOLIB_PLATFORM "MegaCoreX"
+
291 
+
292 #elif defined(ARDUINO_ARCH_MBED_RP2040)
+
293  // Raspberry Pi Pico (official mbed core)
+
294  #define RADIOLIB_PLATFORM "Raspberry Pi Pico"
+
295  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
+
296  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
+
297  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
298 
-
299 #elif defined(ARDUINO_ARCH_RP2040)
-
300  // Raspberry Pi Pico (unofficial core)
-
301  #define RADIOLIB_PLATFORM "Raspberry Pi Pico (unofficial)"
-
302  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
-
303  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
-
304  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
-
305 
-
306 #elif defined(__ASR6501__) || defined(ARDUINO_ARCH_ASR650X) || defined(DARDUINO_ARCH_ASR6601)
-
307  // CubeCell
-
308  #define RADIOLIB_PLATFORM "CubeCell"
-
309  #define RADIOLIB_DEFAULT_SPI_SETTINGS SPISettings(1000000, MSBFIRST, SPI_MODE0) // see issue #709
-
310  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PINMODE)
-
311  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (IrqModes)
-
312 
-
313  // CubeCell doesn't seem to define nullptr, let's do something like that now
-
314  #define nullptr NULL
-
315 
-
316  // ... and also defines pinMode() as a macro, which is by far the stupidest thing I have seen on Arduino
-
317  #undef pinMode
-
318 
-
319  // ... and uses an outdated GCC which does not support type aliases
-
320  #define RADIOLIB_TYPE_ALIAS(type, alias) typedef class type alias;
-
321 
-
322  // ... and it also has no tone(). This platform was designed by an idiot.
-
323  #define RADIOLIB_TONE_UNSUPPORTED
-
324 
-
325  // ... AND as the (hopefully) final nail in the coffin, IT F*CKING DEFINES YIELD() AS A MACRO THAT DOES NOTHING!!!
-
326  #define RADIOLIB_YIELD_UNSUPPORTED
-
327  #if defined(yield)
-
328  #undef yield
-
329  #endif
-
330 
-
331 #elif defined(RASPI)
-
332  // RaspiDuino framework (https://github.com/me-no-dev/RasPiArduino)
-
333  #define RADIOLIB_PLATFORM "RasPiArduino"
+
299  // Arduino mbed OS boards have a really bad tone implementation which will crash after a couple seconds
+
300  #define RADIOLIB_TONE_UNSUPPORTED
+
301  #define RADIOLIB_MBED_TONE_OVERRIDE
+
302 
+
303 #elif defined(ARDUINO_ARCH_RP2040)
+
304  // Raspberry Pi Pico (unofficial core)
+
305  #define RADIOLIB_PLATFORM "Raspberry Pi Pico (unofficial)"
+
306  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
+
307  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
+
308  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
+
309 
+
310 #elif defined(__ASR6501__) || defined(ARDUINO_ARCH_ASR650X) || defined(DARDUINO_ARCH_ASR6601)
+
311  // CubeCell
+
312  #define RADIOLIB_PLATFORM "CubeCell"
+
313  #define RADIOLIB_DEFAULT_SPI_SETTINGS SPISettings(1000000, MSBFIRST, SPI_MODE0) // see issue #709
+
314  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PINMODE)
+
315  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (IrqModes)
+
316 
+
317  // CubeCell doesn't seem to define nullptr, let's do something like that now
+
318  #define nullptr NULL
+
319 
+
320  // ... and also defines pinMode() as a macro, which is by far the stupidest thing I have seen on Arduino
+
321  #undef pinMode
+
322 
+
323  // ... and uses an outdated GCC which does not support type aliases
+
324  #define RADIOLIB_TYPE_ALIAS(type, alias) typedef class type alias;
+
325 
+
326  // ... and it also has no tone(). This platform was designed by an idiot.
+
327  #define RADIOLIB_TONE_UNSUPPORTED
+
328 
+
329  // ... AND as the (hopefully) final nail in the coffin, IT F*CKING DEFINES YIELD() AS A MACRO THAT DOES NOTHING!!!
+
330  #define RADIOLIB_YIELD_UNSUPPORTED
+
331  #if defined(yield)
+
332  #undef yield
+
333  #endif
334 
-
335  // let's start off easy - no tone on this platform, that can happen
-
336  #define RADIOLIB_TONE_UNSUPPORTED
-
337 
-
338  // hmm, no yield either - weird on something like Raspberry PI, but sure, we can handle it
-
339  #define RADIOLIB_YIELD_UNSUPPORTED
-
340 
-
341  // aight, getting to the juicy stuff - PGM_P seems missing, that's the first time
-
342  #define PGM_P const char *
-
343 
-
344  // ... and for the grand finale, we have millis() and micros() DEFINED AS MACROS!
-
345  #if defined(millis)
-
346  #undef millis
-
347  inline RadioLibTime_t millis() { return((RadioLibTime_t)(STCV / 1000)); };
-
348  #endif
-
349 
-
350  #if defined(micros)
-
351  #undef micros
-
352  inline RadioLibTime_t micros() { return((RadioLibTime_t)(STCV)); };
-
353  #endif
-
354 
-
355 #elif defined(TEENSYDUINO)
-
356  // Teensy
-
357  #define RADIOLIB_PLATFORM "Teensy"
+
335 #elif defined(RASPI)
+
336  // RaspiDuino framework (https://github.com/me-no-dev/RasPiArduino)
+
337  #define RADIOLIB_PLATFORM "RasPiArduino"
+
338 
+
339  // let's start off easy - no tone on this platform, that can happen
+
340  #define RADIOLIB_TONE_UNSUPPORTED
+
341 
+
342  // hmm, no yield either - weird on something like Raspberry PI, but sure, we can handle it
+
343  #define RADIOLIB_YIELD_UNSUPPORTED
+
344 
+
345  // aight, getting to the juicy stuff - PGM_P seems missing, that's the first time
+
346  #define PGM_P const char *
+
347 
+
348  // ... and for the grand finale, we have millis() and micros() DEFINED AS MACROS!
+
349  #if defined(millis)
+
350  #undef millis
+
351  inline RadioLibTime_t millis() { return((RadioLibTime_t)(STCV / 1000)); };
+
352  #endif
+
353 
+
354  #if defined(micros)
+
355  #undef micros
+
356  inline RadioLibTime_t micros() { return((RadioLibTime_t)(STCV)); };
+
357  #endif
358 
-
359 #elif defined(ARDUINO_ARCH_RENESAS)
-
360  // Arduino Renesas (UNO R4)
-
361  #define RADIOLIB_PLATFORM "Arduino Renesas (UNO R4)"
-
362  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
-
363  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
-
364  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
-
365 
-
366 #elif defined(ARDUINO_ARCH_SILABS)
-
367  // Silicon Labs Arduino
-
368  #define RADIOLIB_PLATFORM "Arduino Silicon Labs"
-
369  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
-
370  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
-
371  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
-
372 
-
373 #else
-
374  // other Arduino platforms not covered by the above list - this may or may not work
-
375  #define RADIOLIB_PLATFORM "Unknown Arduino"
-
376  #define RADIOLIB_UNKNOWN_PLATFORM
-
377 
-
378 #endif
-
379 
-
380  // set the default values for all macros
-
381  // these will be applied if they were not defined above
-
382  #if !defined(RADIOLIB_NC)
-
383  #define RADIOLIB_NC (0xFFFFFFFF)
-
384  #endif
-
385 
-
386  #if !defined(RADIOLIB_DEFAULT_SPI)
-
387  #define RADIOLIB_DEFAULT_SPI SPI
+
359 #elif defined(TEENSYDUINO)
+
360  // Teensy
+
361  #define RADIOLIB_PLATFORM "Teensy"
+
362 
+
363 #elif defined(ARDUINO_ARCH_RENESAS)
+
364  // Arduino Renesas (UNO R4)
+
365  #define RADIOLIB_PLATFORM "Arduino Renesas (UNO R4)"
+
366  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
+
367  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
+
368  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
+
369 
+
370 #elif defined(ARDUINO_ARCH_SILABS)
+
371  // Silicon Labs Arduino
+
372  #define RADIOLIB_PLATFORM "Arduino Silicon Labs"
+
373  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST (PinMode)
+
374  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST (PinStatus)
+
375  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST (PinStatus)
+
376 
+
377 #else
+
378  // other Arduino platforms not covered by the above list - this may or may not work
+
379  #define RADIOLIB_PLATFORM "Unknown Arduino"
+
380  #define RADIOLIB_UNKNOWN_PLATFORM
+
381 
+
382 #endif
+
383 
+
384  // set the default values for all macros
+
385  // these will be applied if they were not defined above
+
386  #if !defined(RADIOLIB_NC)
+
387  #define RADIOLIB_NC (0xFFFFFFFF)
388  #endif
389 
-
390  #if !defined(RADIOLIB_DEFAULT_SPI_SETTINGS)
-
391  #define RADIOLIB_DEFAULT_SPI_SETTINGS SPISettings(2000000, MSBFIRST, SPI_MODE0)
+
390  #if !defined(RADIOLIB_DEFAULT_SPI)
+
391  #define RADIOLIB_DEFAULT_SPI SPI
392  #endif
393 
-
394  #if !defined(RADIOLIB_NONVOLATILE)
-
395  #define RADIOLIB_NONVOLATILE PROGMEM
+
394  #if !defined(RADIOLIB_DEFAULT_SPI_SETTINGS)
+
395  #define RADIOLIB_DEFAULT_SPI_SETTINGS SPISettings(2000000, MSBFIRST, SPI_MODE0)
396  #endif
397 
-
398  #if !defined(RADIOLIB_NONVOLATILE_PTR)
-
399  #define RADIOLIB_NONVOLATILE_PTR PGM_P
+
398  #if !defined(RADIOLIB_NONVOLATILE)
+
399  #define RADIOLIB_NONVOLATILE PROGMEM
400  #endif
401 
-
402  #if !defined(RADIOLIB_NONVOLATILE_READ_BYTE)
-
403  #define RADIOLIB_NONVOLATILE_READ_BYTE(addr) pgm_read_byte(addr)
+
402  #if !defined(RADIOLIB_NONVOLATILE_PTR)
+
403  #define RADIOLIB_NONVOLATILE_PTR PGM_P
404  #endif
405 
-
406  #if !defined(RADIOLIB_NONVOLATILE_READ_DWORD)
-
407  #define RADIOLIB_NONVOLATILE_READ_DWORD(addr) pgm_read_dword(addr)
+
406  #if !defined(RADIOLIB_NONVOLATILE_READ_BYTE)
+
407  #define RADIOLIB_NONVOLATILE_READ_BYTE(addr) pgm_read_byte(addr)
408  #endif
409 
-
410  #if !defined(RADIOLIB_TYPE_ALIAS)
-
411  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
+
410  #if !defined(RADIOLIB_NONVOLATILE_READ_DWORD)
+
411  #define RADIOLIB_NONVOLATILE_READ_DWORD(addr) pgm_read_dword(addr)
412  #endif
413 
-
414  #if !defined(RADIOLIB_ARDUINOHAL_PIN_MODE_CAST)
-
415  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST
+
414  #if !defined(RADIOLIB_TYPE_ALIAS)
+
415  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
416  #endif
417 
-
418  #if !defined(RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST)
-
419  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST
+
418  #if !defined(RADIOLIB_ARDUINOHAL_PIN_MODE_CAST)
+
419  #define RADIOLIB_ARDUINOHAL_PIN_MODE_CAST
420  #endif
421 
-
422  #if !defined(RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST)
-
423  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST
+
422  #if !defined(RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST)
+
423  #define RADIOLIB_ARDUINOHAL_PIN_STATUS_CAST
424  #endif
425 
-
426 #else
-
427  // generic non-Arduino platform
-
428  #define RADIOLIB_PLATFORM "Generic"
+
426  #if !defined(RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST)
+
427  #define RADIOLIB_ARDUINOHAL_INTERRUPT_MODE_CAST
+
428  #endif
429 
-
430  #define RADIOLIB_NC (0xFFFFFFFF)
-
431  #define RADIOLIB_NONVOLATILE
-
432  #define RADIOLIB_NONVOLATILE_READ_BYTE(addr) (*((uint8_t *)(void *)(addr)))
-
433  #define RADIOLIB_NONVOLATILE_READ_DWORD(addr) (*((uint32_t *)(void *)(addr)))
-
434  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
-
435 
-
436  #if !defined(RADIOLIB_DEBUG_PORT)
-
437  #define RADIOLIB_DEBUG_PORT stdout
-
438  #endif
+
430 #else
+
431  // generic non-Arduino platform
+
432  #define RADIOLIB_PLATFORM "Generic"
+
433 
+
434  #define RADIOLIB_NC (0xFFFFFFFF)
+
435  #define RADIOLIB_NONVOLATILE
+
436  #define RADIOLIB_NONVOLATILE_READ_BYTE(addr) (*((uint8_t *)(void *)(addr)))
+
437  #define RADIOLIB_NONVOLATILE_READ_DWORD(addr) (*((uint32_t *)(void *)(addr)))
+
438  #define RADIOLIB_TYPE_ALIAS(type, alias) using alias = type;
439 
440  #define DEC 10
441  #define HEX 16