Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lora: Add support for a LoRa capsule #317

Merged
merged 1 commit into from Jun 7, 2023
Merged

Conversation

alistair23
Copy link
Contributor

This adds userspace support for the new Tock LoRaMac capsule

@alistair23
Copy link
Contributor Author

Updated to support the latest version of tock/tock#3360

@alistair23 alistair23 changed the title loramac_node: Add support for a LoRa capsule lora: Add support for a LoRa capsule Apr 21, 2023
bors bot added a commit to tock/tock that referenced this pull request May 2, 2023
3360: lora-phy: Add support for a LoRa capsule r=hudson-ayers a=alistair23

### Pull Request Overview

This builds on top of #3330 and adds a LoRa capsule.

The capsule is pretty simple and mostly just exposes the SPI device and some GPIO pins. This could pretty much all be done with the current SPI and GPIO capsules, but this has a few advantages.

 * It allows us to expose other SPI busses to userspace
 * It hides the GPIO numbering so that it doesn't change per board. This allows the userspace code to be board independent

With this PR, support in libtock-c and LoRaMac-node we can run LoRa code on Tock

### Testing Strategy

I have tested communicating and interfacing with the LoRa device, using [libtock-c](tock/libtock-c#317)

### TODO or Help Wanted

### Documentation Updated

- [X] Updated the relevant files in `/docs`, or no updates are required.

### Formatting

- [X] Ran `make prepush`.


Co-authored-by: Alistair Francis <alistair@alistair23.me>
@alistair23
Copy link
Contributor Author

The Tock changes are in, this is also ready to go

Signed-off-by: Alistair Francis <alistair@alistair23.me>
@alistair23
Copy link
Contributor Author

I have updated the names to match the kernel. Can this be merged?

@bradjc
Copy link
Contributor

bradjc commented Jun 7, 2023

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 7, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit 1c1f4c0 into tock:master Jun 7, 2023
3 checks passed
@alistair23 alistair23 deleted the alistair/lora branch June 7, 2023 23:36
tyler-potyondy pushed a commit to tyler-potyondy/libtock-c that referenced this pull request Mar 13, 2024
317: lora: Add support for a LoRa capsule r=bradjc a=alistair23

This adds userspace support for the new Tock [LoRaMac capsule](tock/tock#3360)

Co-authored-by: Alistair Francis <alistair@alistair23.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants