Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add native SPI LoRa APRS driver (SX1276/SX1262) for LoRa APRS tx and rx, and SDR LoRa APRS receive path #638
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
base: dev
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Add native SPI LoRa APRS driver (SX1276/SX1262) for LoRa APRS tx and rx, and SDR LoRa APRS receive path #638
Changes from 1 commit
620eba5f2bc2def7299cadac57f30b04f89661818256b7d1eFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Introduces loraspi.c — a native Linux SPI/GPIO driver for SX1276 and SX1262 LoRa chips — as a new channel medium alongside MEDIUM_RADIO, MEDIUM_NETTNC, and MEDIUM_SERTNC. New source files: src/loraspi.c — driver: chip init, rx_thread (dlq_rec_frame injection), tx_thread (AX.25 → TNC2 → LoRa preamble → SPI TX), hardware profile table (loraspi_apply_profile) src/loraspi.h — public API: loraspi_init, loraspi_send_packet, loraspi_apply_profile Modified source files: src/audio.h — MEDIUM_LORA added to enum medium_e; ~18 lora_*[] config fields added to struct audio_s src/config.c — LCHANNEL, LORAHW, LORAFREQ, LORASF, LORABW, LORACR, LORASW, LORATXPOWER directives parsed; all chan_medium validity checks extended for MEDIUM_LORA src/direwolf.c — loraspi_init() called at startup after sertnc_init() src/tq.c — transmit queue routes MEDIUM_LORA packets to loraspi_send_packet() src/beacon.c — MEDIUM_LORA accepted for PBEACON/OBEACON channels src/digipeater.c — MEDIUM_LORA accepted as valid receive channel src/cdigipeater.c — MEDIUM_LORA accepted; bounds check widened from MAX_RADIO_CHANS to MAX_TOTAL_CHANS for virtual channels src/CMakeLists.txt — loraspi.c added to direwolf source list The driver is Linux-only; non-Linux platforms get empty stubs so the build is unconditional. A per-channel pthread_mutex_t serialises SPI access between the rx and tx threads. The chip is re-armed to continuous RX mode after each transmission (SX1276 drops to STDBY on TX_DONE). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Uh oh!
There was an error while loading. Please reload this page.