Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Add support for sx1272 chip to existing sx1276_7_8_9 driver #34

Merged
merged 10 commits into from Nov 10, 2023

Conversation

plaes
Copy link
Contributor

@plaes plaes commented Oct 10, 2023

This is initial RFC PR for sx1272 support added into existing sx1276+ driver.

It's now good enough to rx/tx P2P packets, but there's some work still left to deal with preamble support (will be handled in separate PR).

While implementing support, I have ran into following issues where each of these probably warrants its own design discussion:

  1. Tcxo support - currently it is assumed to be always enabled, but instead it should be handled via board configuration (see the final commit).
  2. Tx output routing is board specific and on some chips depends on selected frequency as well (This is currently breaking LoRa for me as rust-lorawan currently calls phy with boost disabled (lora.prepare_for_tx(..))
  3. Dio configuration - should allow more pins.. ? - Handled via interface.
  4. Type leakage.. (ie I had to add BoardType::GenericSx1272 into sx1261_2 driver)

@plaes plaes mentioned this pull request Oct 17, 2023
@plaes plaes force-pushed the wip-sx1272 branch 2 times, most recently from 36f6b01 to d90b0d3 Compare October 26, 2023 10:55
@plaes plaes changed the title RFC: Add support for sx1272 chip Add support for sx1272 chip to existing sx1276_7_8_9 driver Nov 8, 2023
As set_tx_continuous_wave_mode touches some of the chip-specific
registers, branch out the implementation.
@lucasgranberg lucasgranberg merged commit 9c7c810 into embassy-rs:main Nov 10, 2023
1 check passed
@plaes plaes deleted the wip-sx1272 branch November 10, 2023 15:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants