Skip to content

core: Mmio helpers and raw access cleanup#990

Open
piotrfila wants to merge 13 commits into
ZigEmbeddedGroup:mainfrom
piotrfila:mmio-cleanup
Open

core: Mmio helpers and raw access cleanup#990
piotrfila wants to merge 13 commits into
ZigEmbeddedGroup:mainfrom
piotrfila:mmio-cleanup

Conversation

@piotrfila

Copy link
Copy Markdown
Contributor

This PR adds helper functions for manipulating Mmio and replaces references to Mmio.raw with raw.read() and raw.write()
This is a prerequisite to making Mmio aware of register access type.

I also tried to generally improve the code I touched by removing direct .raw access.

This made me aware that there is a lot of duplicate code in gpio drivers, maybe we can consolidate them somehow? At least for similar families like stm32/gd32/ch32v

@piotrfila

Copy link
Copy Markdown
Contributor Author

Looks like the esp examples work on debug builds but break with --release=small?? I'll take a look tommorow

@piotrfila

Copy link
Copy Markdown
Contributor Author

Main branch has the same issue:(

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

Successfully merging this pull request may close these issues.

1 participant