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

Improved HFCLK management on nRF5x #2071

Open
1 task done
Matt-prog opened this issue May 20, 2023 · 0 comments
Open
1 task done

Improved HFCLK management on nRF5x #2071

Matt-prog opened this issue May 20, 2023 · 0 comments

Comments

@Matt-prog
Copy link

Related area

device controller driver

Hardware specification

nRF5x

Is your feature request related to a problem?

When SoftDevice is not present or is disabled, HFCLK activation/deactivation is managed by TinyUSB. This can cause problems, when other peripherials, such as Radio, needs HFCLK to run properly.

Describe the solution you'd like

I have improved HFCLK management for nRF5x with weak functions, the user can override and implement it's own HFCLK management, when other peripherials, such as Radio needs it.

User can override those functions:
void dcd_enable_hfclk(void); - called, when dcd requests HFCLK activation
void dcd_disable_hfclk(void); - called, when dcd requests HFCLK deactivation

If the functions are not overridden, HFCLK will be activated and deactivated by TinyUSB.

I have implemented this feature, see Pull Request.

I have checked existing issues, dicussion and documentation

  • I confirm I have checked existing issues, dicussion and documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant