Commit graph

2219 commits

Author SHA1 Message Date
Jan Gromeš
5974da27de
Merge pull request #795 from alistair23/alistair/tock-readme
Tock: Add a README for the example
2023-07-13 15:11:22 +02:00
Alistair Francis
bb61063810 Tock: Expand the .gitignore
Signed-off-by: Alistair Francis <alistair@alistair23.me>
2023-07-13 22:43:22 +10:00
Alistair Francis
3c7dc7acba Tock: README: Initial commit
Signed-off-by: Alistair Francis <alistair@alistair23.me>
2023-07-13 22:43:22 +10:00
Jan Gromeš
9fa8434e47
Merge pull request #793 from alistair23/alistair/tock
NonArduino: Tock: Fixup some bugs and expand the example
2023-07-11 16:11:05 +02:00
Alistair Francis
5750d88797 Tock: Use \r\n for all new lines
Signed-off-by: Alistair Francis <alistair@alistair23.me>
2023-07-11 13:27:04 +10:00
Alistair Francis
6a6bb8526b Tock: Update Radio config for SparkFun LoRa Thing Plus - expLoRaBLE
Signed-off-by: Alistair Francis <alistair@alistair23.me>
2023-07-11 13:24:19 +10:00
Alistair Francis
a72b549450 Tock: Implement yield()
Signed-off-by: Alistair Francis <alistair@alistair23.me>
2023-07-11 13:23:48 +10:00
Alistair Francis
ae05a4283e Tock: Use Tock's libgcc
The Tock specific version of libgcc is built to be position independent,
so use that instead of the one supplied by the compiler. This fixes a
few odd corner cases when using printf().

Signed-off-by: Alistair Francis <alistair@alistair23.me>
2023-07-11 13:23:34 +10:00
jgromes
89e405eeba [LoRaWAN] Fixes for SX127x series 2023-07-08 09:37:43 +02:00
jgromes
fc983efafb [Crypto] Fixed missing nonvolatile read 2023-07-08 08:51:58 +02:00
jgromes
94861b3db4 Merge branch 'master' of https://github.com/jgromes/RadioLib 2023-07-07 20:48:53 +02:00
jgromes
b139767559 [EXT] Implemented direct transmit (#646) 2023-07-07 20:48:51 +02:00
jgromes
01917ad0c2 [FEC] Implemented static-only memory management 2023-07-07 20:39:00 +02:00
jgromes
ccbec2c7bd [FEC] Fixed memory leak (#646) 2023-07-07 20:33:48 +02:00
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