Commit graph

2205 commits

Author SHA1 Message Date
Jan Gromeš
dd53ed9658
Merge pull request #792 from nicklasb/patch-1
Add parenthesis for compatibility
2023-07-06 22:51:25 +02:00
Nicklas Börjesson
d9538f959a
Add parenthesis for compatibility
Hi,
I am getting a compile error on ESP-IDF/Platformio:
```
managed_components/RadioLib/src/protocols/LoRaWAN/LoRaWAN.cpp: In member function 'int16_t LoRaWANNode::beginOTAA(uint64_t, uint64_t, uint8_t*, uint8_t*, bool)':
managed_components/RadioLib/src/protocols/LoRaWAN/LoRaWAN.cpp:125:61: error: suggest parentheses around comparison in operand of '&' [-Werror=parentheses]
  125 |   if(joinAcceptMsgEnc[0] & RADIOLIB_LORAWAN_MHDR_MTYPE_MASK != RADIOLIB_LORAWAN_MHDR_MTYPE_JOIN_ACCEPT) {
cc1plus: some warnings being treated as errors
*** [.pio/build/TTGO-LoRa32-v1/managed_components/RadioLib/src/protocols/LoRaWAN/LoRaWAN.o] Error 1

I propose adding a parenthesis, for clarity and compatibility.
2023-07-06 22:43:33 +02:00
jgromes
a78c415616 [LoRaWAN] Fixed loop comparison 2023-07-06 19:00:41 +02:00
jgromes
f354903864 [LoRaWAN] Added rev 1.1 checking 2023-07-06 18:50:04 +02:00
jgromes
a27d54716c [LoRaWAN] Added all official bands 2023-07-06 18:38:20 +02:00
jgromes
0d2ef419bf [LoRaWAN] Added basic LoRaWAN support (#58) 2023-07-06 13:41:31 +02:00
jgromes
3012185af4 [Crypto] Added AES key size macro 2023-07-06 13:30:56 +02:00
jgromes
df691db0a5 [HAL] Updated persistent management 2023-07-06 13:30:29 +02:00
jgromes
d725215e20 [HAL] Added persistent parameters to buildopt 2023-07-06 11:19:44 +02:00
jgromes
e486829b8f [HAL] Implemented basic persistent storage 2023-07-06 11:19:18 +02:00
jgromes
d5ce384bda [SX127x] Implemented new common PHY methods 2023-07-06 11:17:29 +02:00
jgromes
d561d41e95 [SX126x] Implemented new common PHY methods 2023-07-06 11:14:44 +02:00
jgromes
91787eb269 [PHY] Implemented more common methods 2023-07-06 11:10:20 +02:00
jgromes
47f9ab8463 Fixed typo in README 2023-07-05 09:46:12 +02:00
jgromes
bea5e70d0a [LLCC68] Changed default crystal to XTAL (#784) 2023-07-01 09:03:42 +02:00
jgromes
ac15b9ae7d [SX126x] Added comments about TCXO/XTAL (#784) 2023-07-01 09:02:43 +02:00
Jan Gromeš
a9a125a385
Merge pull request #782 from alistair23/alistair/tock
examples: NonArduino: Tock: Initial commit
2023-06-30 17:17:29 +02:00
Alistair Francis
a8172308fe examples: NonArduino: Tock: Initial commit
Add support for running RadioLib on Tock.

Tock is an embedded operating system designed for running multiple
concurrent, mutually distrustful applications on Cortex-M and RISC-V
based embedded platforms (https://github.com/tock/tock).

This PR uses libtock-c (https://github.com/tock/libtock-c) to add
support to running RadioLib as a Tock userspace application.

This has been tested on the SparkFun LoRa Thing Plus - expLoRaBLE board
(https://github.com/tock/tock/tree/master/boards/apollo3/lora_things_plus)
but will work on any LoRa compatible Tock board (currently only the
expLoRaBLE board).

Signed-off-by: Alistair Francis <alistair@alistair23.me>
2023-06-29 09:54:30 +10:00
Jan Gromeš
6622a14726
Merge pull request #781 from alistair23/alistair/lora-fix2
Module: Get status from first byte after the command
2023-06-28 17:24:14 +02:00
Alistair Francis
e88cf386d6 Module: Get status from first byte after the command
Instead of getting the status from the very first byte in the input
buffer, which will be what we read when we send the first byte. Let's
instead get the status from the first byte after the command. This
provides a more accurate status value.

Signed-off-by: Alistair Francis <alistair@alistair23.me>
2023-06-28 20:43:28 +10:00
jgromes
3359907fa5 [SX128x] Fixed getStatus (#779) 2023-06-27 17:35:50 +02:00
Jan Gromeš
f6203e5036
Merge pull request #779 from alistair23/alistair/spi-status
modules: Don't read excess status data
2023-06-27 17:34:20 +02:00
Alistair Francis
445bc01450 modules: Don't read excess status data
The SX126x get status command returns a single status byte. The status
byte is automatically read in the `Module::SPItransferStream()` function
when we increment buffLen (see
https://github.com/jgromes/RadioLib/blob/master/src/Module.cpp#L259).

By setting numBytes we incorrectly end up reading 2 bytes. Instead set
numBytes to zero so we only read the single status byte.

Signed-off-by: Alistair Francis <alistair@alistair23.me>
2023-06-27 21:29:02 +10:00
jgromes
9c2d457eeb [CI] Added Uno R4 to matrix 2023-06-27 07:30:36 +02:00
jgromes
d1f7c18240 Added support for Arduino Uno R4 2023-06-27 07:28:57 +02:00
jgromes
58c9e9fe03 Fixed String counters in examples (CI_BUILD_ALL) 2023-06-26 20:39:33 +02:00
jgromes
64b9c669dd [CI] Skip Pager for Arduino Leonardo 2023-06-26 20:22:32 +02:00
jgromes
523f28fd6b Bump version to 6.1.0 2023-06-26 20:18:01 +02:00
jgromes
1881381caa [CI] Fix missing pipe 2023-06-26 19:56:28 +02:00
jgromes
a4dbae03a3 [MOD] Fixed missing cast (#776) 2023-06-26 19:41:12 +02:00
jgromes
f4f11a35d3 [Mod] Updated examples to use buffered SPI (#776) 2023-06-26 19:39:10 +02:00
jgromes
a01b02fae2 [MOD] Rework for buffered SPI (#776) 2023-06-26 19:36:45 +02:00
jgromes
8acaca4884 [SX127x] Swap Tx IQ inversion (#778) 2023-06-25 09:33:17 +02:00
jgromes
43ff5906c2 [SX127x] Added missing counter 2023-06-24 22:24:49 +02:00
jgromes
4949d10b00 [CI] Fixed CodeQL build example 2023-06-24 22:23:14 +02:00
jgromes
4975828d03 [SX126x] Fixed debug print format 2023-06-24 22:22:56 +02:00
jgromes
2dafa83058 [SX1231] Renamed basic examples to _Blocking 2023-06-24 22:18:59 +02:00
jgromes
3a07f0aa02 [SX128x] Renamed basic examples to _Blocking 2023-06-24 22:17:13 +02:00
jgromes
c919185849 [SX127x] Renamed basic examples to _Blocking 2023-06-24 22:12:53 +02:00
jgromes
24be1747d0 [SX126x] Renamed basic examples to _Blocking 2023-06-24 22:12:11 +02:00
jgromes
9bad00ed39 [STM32WL] Renamed basic examples to _Blocking 2023-06-24 22:03:28 +02:00
jgromes
06529844c3 [Si443x] Renamed basic examples to _Blocking 2023-06-24 21:59:18 +02:00
jgromes
18307f478d [RF69] Renamed basic examples to _Blocking 2023-06-24 21:55:20 +02:00
jgromes
be97ba8543 [nRF24] Added packet counter 2023-06-24 21:51:20 +02:00
jgromes
4981ce9934 [CC1101] Added packet counter 2023-06-24 21:50:30 +02:00
jgromes
90368db27a [nRF24] Renamed basic examples to _Blocking 2023-06-24 21:48:25 +02:00
jgromes
ac78f31532 [CC1101] Renamed basic examples to _Blocking 2023-06-24 19:51:09 +02:00
jgromes
36530b00fc [SX128x] Fixed blocking receive 2023-06-24 19:23:26 +02:00
jgromes
7f40ee49c6 [SX126x] Fixed blocking receive (#777) 2023-06-24 19:23:09 +02:00
jgromes
9472d5b635 [PHY] Added interface showcase example (#773) 2023-06-21 22:25:31 +02:00