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

support "extends" from embassy data. #351

Merged
merged 6 commits into from
Jan 18, 2025
Merged

Conversation

taylorh140
Copy link
Contributor

Attempted to support "extends" syntax in register json files.

The added functions aggregate the extends and injects them into the Json.Value parsed from the register files.

it works by traveling down the "extends" and bringing a dictionary with it adding new "items" or "fields" as it travels down the ancestor's lineage.

I expect I'll have to clean up some stuff. but I was just glad I could get it to work.

It does use a arena allocator for the json injections. so they can be cleaned up at the same time.

Copy link
Contributor

@mattnite mattnite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I stopped after a couple comments, please use snake case for variable and function names

port/stmicro/stm32/src/generate.zig Outdated Show resolved Hide resolved
port/stmicro/stm32/src/generate.zig Outdated Show resolved Hide resolved
port/stmicro/stm32/src/generate.zig Outdated Show resolved Hide resolved
port/stmicro/stm32/src/generate.zig Outdated Show resolved Hide resolved
Copy link
Contributor

@mattnite mattnite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some more changes needed

port/stmicro/stm32/src/generate.zig Outdated Show resolved Hide resolved
port/stmicro/stm32/src/generate.zig Outdated Show resolved Hide resolved
port/stmicro/stm32/src/generate.zig Outdated Show resolved Hide resolved
port/stmicro/stm32/src/generate.zig Outdated Show resolved Hide resolved
port/stmicro/stm32/src/generate.zig Outdated Show resolved Hide resolved
port/stmicro/stm32/src/generate.zig Outdated Show resolved Hide resolved
port/stmicro/stm32/src/generate.zig Outdated Show resolved Hide resolved
port/stmicro/stm32/src/generate.zig Outdated Show resolved Hide resolved
port/stmicro/stm32/src/generate.zig Outdated Show resolved Hide resolved
@taylorh140 taylorh140 requested a review from mattnite January 17, 2025 23:13
@mattnite mattnite enabled auto-merge (squash) January 17, 2025 23:19
@mattnite mattnite merged commit 88b3f5a into ZigEmbeddedGroup:main Jan 18, 2025
11 checks passed
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.

2 participants