Skip to content

Enable code generation in the absence of register reset values. #175

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

Closed

Conversation

ecstatic-morse
Copy link

@ecstatic-morse ecstatic-morse commented Feb 7, 2018

The second commit also generates reset for write-only registers. Previously it was only generated for read-write registers. I'm not sure if the previous behavior was intended. This resolves #174.

Copy link
Member

@Emilgardis Emilgardis left a comment

Choose a reason for hiding this comment

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

This commit (d6d4b82) is unrelated to #174

Could you remove it?

In case no reset value is defined for a register, we suppress generation
of the `write`, `reset`, and `reset_value` functions. Register values can still be
safely changed using `modify`.
@ecstatic-morse
Copy link
Author

Sorry, removed offending commit.
I could also update the Travis CI tests to run on Atmel targets, but you might want to only uncomment a fraction of them.

@japaric
Copy link
Member

japaric commented Feb 13, 2018

@ecstatic-morse could you uncomment some of the Atmel SVD files to test this change?

@Emilgardis
Copy link
Member

Emilgardis commented Mar 1, 2018

@ecstatic-morse are you still working on this?

I was misinformed with why d6d4b82 was (not) needed. Could you enable tests for ~3 Atmel SVD files?

@Disasm
Copy link
Member

Disasm commented Feb 20, 2019

I hope we can close this PR in favor of #258
Thank you! Feel free to open new PR if you want to continue working on this.

@Disasm Disasm closed this Feb 20, 2019
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.

Handle SVD files which don't define register reset values
4 participants