-
Notifications
You must be signed in to change notification settings - Fork 244
Added some new enumerations for G4's RCC #528
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
Conversation
Hi, thanks for the PR! Your changes look good, but we try to keep describing field variants (this sort of change) to the Please shout if anything doesn't make sense, I know it's not the easiest thing to understand from scratch. |
Gotcha; understood about the division of field variants vs field fixes (kinda sad that ST makes us fix so much, ya? :). Though I haven't gone through the H7 reference manual just yet, I did check the clock config on the STM32CubeMX and compared it to the G4's. It seems like there's enough difference - particularly in the PLL domain - that I'd be concerned with me breaking any existing H7 users by changing field names and/or APIs (divisor enums vs ranges, etc) if I were to modify the I've moved the changes into a new |
Thanks! Ok, fair enough on the H7 one, no problem having a new rcc_g4.yaml. I'll try to get this fully reviewed at the weekend, but in the meantime could you move the include to be done from each device file instead of from the common_patches file? It just helps make it easier to find out where files are being included if there aren't too many layers of indirection, especially across the "patch"/"peripheral" split. |
Sounds good! No hurry on the review; just have it workin' in my own local repo so I figured I'd share it with the rest of the community :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for the PR! I've fully reviewed it and it basically all looks good to me, I just had three minor comments then we're good to merge:
Oof, sorry for the delay, been a nutty spring. I think I got all the requested changes, but please do double-check; was trying out the VSCode Pull Request extension and things went sideways in a hurry 😅 |
…dded CCIFR/2 enums
I've got a few more sequential updates to other various G4 peripherals. Do you prefer submitting those as individual PRs, or is one larger update better/easier to review? No preference either way :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, sorry, I missed the earlier commit. I'll merge these now and then let's put the new changes in a separate PR.
bors merge
Heya!
Adding a few new enum fields to the G4 RCC. Let me know if there's a better place to organize/put these.
Note: I only have access to the STM32G474, but I suspect that these enumerations are common across the G4 family seeing as the only differences appear to be RAM/ROM; they all share the same max frequency AFAICT.