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

SoftwareVBusDetect for USB peripheral #36

Open
pperanich opened this issue Nov 13, 2024 · 1 comment
Open

SoftwareVBusDetect for USB peripheral #36

pperanich opened this issue Nov 13, 2024 · 1 comment

Comments

@pperanich
Copy link

Hi, I am starting to use trouble with a custom device that uses an nrf52840, and would like to have the ability to support both BLE and USB comms. Currently, the main blocker is that both nrf-sdc and embassy-nrf usb vbus both require binding the POWER_CLOCK. There is a SoftwareVbusDetect implementation available that has previously shown working with nrf-softdevice at embassy-rs/nrf-softdevice#194 (comment). Would it be feasible to do something similar in nrf-sdc, and expose a SoftwareVbusDetect static that the library manges? See also embassy-rs/embassy#810

@alexmoon
Copy link
Owner

You can bind the POWER_CLOCK interrupt to multiple handlers using the bind_interrupts! macro. There's no need for SoftwareVbusDetect for the softdevice controller.

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

No branches or pull requests

2 participants