Skip to content

Change ADC_Commont's group name from ADC to ADC_Common #7

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
wants to merge 1 commit into from

Conversation

cpunion
Copy link

@cpunion cpunion commented Mar 20, 2022

See tinygo-org/tinygo#2717

I want to fix those things in generated files of tinygo:

  1. ADC_Common must has a different type to ADC1/ADC2/etc, by change to a different groupName.
  2. ADC_Type must have a correct structure
  3. Fix ADC_Common's name in some files

bors bot added a commit to stm32-rs/stm32-rs 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 bot added a commit to stm32-rs/stm32-rs 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>
Co-authored-by: Adam Greig <adam@adamgreig.com>
@cpunion
Copy link
Author

cpunion commented Jul 4, 2022

Don't need because changed in stm32-rs/stm32-rs#719

@cpunion cpunion closed this Jul 4, 2022
@cpunion cpunion deleted the fix-adc-common branch July 4, 2022 06:09
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