Skip to content

Change the groupName of ADC_Common from ADC to ADC_Common #719

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

Merged
merged 2 commits into from
Jul 3, 2022

Conversation

cpunion
Copy link
Contributor

@cpunion cpunion commented Apr 17, 2022

In the https://github.com/tinygo-org/stm32-svd project, it depends this project and generates types by the peripheral's groupName. Because the ADC_Common's groupName is ADC, it can't generate the types ADC and ADC_Common correctly. I want to change the ADC_Common's groupName to ADC to make it work fine. See tinygo-org/tinygo#2717 , tinygo-org/stm32-svd#7 , but those are not good way.

I checked the generated rust code, it's not changed after apply this change and run make, seems it doesn't depend groupName. So can you accept this PR?

@github-actions
Copy link

Memory map comparison

adamgreig
adamgreig previously approved these changes Jul 3, 2022
Copy link
Member

@adamgreig adamgreig left a comment

Choose a reason for hiding this comment

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

Sure, I think this is fine. We don't use groupName at the moment, but we might if rust-embedded/svd2rust#617 lands.

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 3, 2022

Merge conflict.

@adamgreig adamgreig force-pushed the change-adc-common-group-name branch from f6997a9 to 7dc2f2a Compare July 3, 2022 20:56
@adamgreig
Copy link
Member

Rebased to resolve merge conflict.

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 3, 2022

👎 Rejected by too few approved reviews

adamgreig
adamgreig previously approved these changes Jul 3, 2022
Copy link
Member

@adamgreig adamgreig left a comment

Choose a reason for hiding this comment

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

bors r+

bors bot added a commit that referenced this pull request Jul 3, 2022
719: Change the groupName of ADC_Common from ADC to ADC_Common r=adamgreig a=cpunion

In the https://github.com/tinygo-org/stm32-svd project, it depends this project and generates types by the peripheral's groupName. Because the ADC_Common's groupName is ADC, it can't generate the types ADC and ADC_Common correctly. I want to change the ADC_Common's groupName to ADC to make it work fine.  See tinygo-org/tinygo#2717 , tinygo-org/stm32-svd#7 , but those are not good way.

I checked the generated rust code, it's not changed after apply this change and run make, seems it doesn't depend groupName. So can you accept this PR? 

Co-authored-by: Li Jie <cpunion@gmail.com>
@bors
Copy link
Contributor

bors bot commented Jul 3, 2022

Build failed:

Copy link
Member

@adamgreig adamgreig left a comment

Choose a reason for hiding this comment

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

bors r+

@github-actions
Copy link

github-actions bot commented Jul 3, 2022

Memory map comparison

@bors
Copy link
Contributor

bors bot commented Jul 3, 2022

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants