Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Split GPIO registers into named bit fields #5

Open
MabezDev opened this issue Dec 22, 2019 · 2 comments
Open

Split GPIO registers into named bit fields #5

MabezDev opened this issue Dec 22, 2019 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@MabezDev
Copy link
Member

Would be nice to have a nicer api instead of manually bit shifting, e.g

Replace

gpio_reg_x.write(|w| unsafe { w.bits(0x1 << 0) });

With, or similar

gpio_reg_x.write(|w| w.gpio0().set_bit())
@MabezDev MabezDev added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Dec 22, 2019
@davidkern
Copy link
Contributor

Hey thanks for getting an SVD up yesterday. I was in progress of building out a register set for the ESP32, but have stopped in preference to using this.

Is the work for this ticket still required to split out the registers into individual fields? I can work on it if needed.

@MabezDev
Copy link
Member Author

@davidkern that would be great!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants