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

Patch SVD file for all tasks and events #3

Open
jamesmunns opened this issue Mar 21, 2019 · 3 comments
Open

Patch SVD file for all tasks and events #3

jamesmunns opened this issue Mar 21, 2019 · 3 comments
Labels
nrf52832 Affects `nrf52832-pac`

Comments

@jamesmunns
Copy link
Member

Currently it is annoying to use the unsafe bits() function when writing to tasks or clearing events.

I think the best way to approach this is to patch the SVD for any field with the name task_ or event_. Since for all these fields the behavior is consistent, we could probably get pretty far with a simple regex replace.

CC @sajattack @hannobraun

@hannobraun
Copy link

I'm fine with this.

Does anyone have experience with upstreaming such changes to Nordic?

@jamesmunns
Copy link
Member Author

Maybe we could ping @terjesc?

@jonas-schievink jonas-schievink transferred this issue from nrf-rs/nrf52832-pac Aug 6, 2021
@jonas-schievink jonas-schievink added the nrf52832 Affects `nrf52832-pac` label Aug 6, 2021
@dvdsk
Copy link

dvdsk commented Aug 6, 2021

I needed such a patch to get the ADC working on the 52832 and made a python script to patch the sdv here https://github.com/dskleingeld/nrf52832-pac/blob/master/fix_svd.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nrf52832 Affects `nrf52832-pac`
Projects
None yet
Development

No branches or pull requests

4 participants