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

generic: spi: Add escape hatch for the ChipSelectPin #529

Merged
merged 1 commit into from
May 4, 2024

Conversation

Rahix
Copy link
Owner

@Rahix Rahix commented Apr 1, 2024

There are situations where the ChipSelectPin abstraction is not enough - for example when a user wants to use the ChipSelectPin as a PWM pin.

To enable such usecases anyway, add an escape hatch for getting back the original Pin<> type that's hidden in the ChipSelectPin. This is unsafe, for obvious reasons.

Related to #442.

There are situations where the `ChipSelectPin` abstraction is not enough -
for example when a user wants to use the `ChipSelectPin` as a PWM pin.

To enable such usecases anyway, add an escape hatch for getting back the
original `Pin<>` type that's hidden in the `ChipSelectPin`.  This is
unsafe, for obvious reasons.
@Rahix Rahix added the hal-generic Related to MCU generic parts of avr-hal label Apr 1, 2024
@Rahix
Copy link
Owner Author

Rahix commented May 4, 2024

Merging this anyway even though #442 should get some more attention.

@Rahix Rahix merged commit 4182fe7 into main May 4, 2024
24 checks passed
@Rahix Rahix deleted the spi-cs-escape-hatch branch May 4, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hal-generic Related to MCU generic parts of avr-hal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant