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

Drop global BoardType enum in favor of driver-specific configuration struct #37

Merged
merged 6 commits into from
Oct 31, 2023

Conversation

plaes
Copy link
Contributor

@plaes plaes commented Oct 20, 2023

Refactor to get rid of global BoardType and ChipType enum in favor of interface-specific board configuration struct.

NB! Breaks existing APIs:

plaes added 6 commits October 26, 2023 12:23
Instead of using lora-phy's BoardType/ChipType enum, switch to
driver-specific configuration struct.
Instead of using lora-phy's BoardType/ChipType enum, switch to
driver-specific configuration struct.
Now that all drivers are using board configuration structure, we
can drop global ChipType enum.
Now that all drivers are using board configuration structure, we
can drop global BoardType enum.
Now that BoardType/ChipType has been removed, we can drop
unused BoardTypeUnsupportedForRadioKind error kind.
Copy link
Collaborator

@lucasgranberg lucasgranberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this on stm32wl. these changes clears up the API a lot. lgtm!

@lucasgranberg lucasgranberg merged commit 8d561d8 into embassy-rs:main Oct 31, 2023
1 check passed
@plaes plaes deleted the rework-boardtype branch November 1, 2023 10:18
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.

2 participants