-
Notifications
You must be signed in to change notification settings - Fork 1k
Add Sparky V1 Variant, modify boards.txt #432
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 @geosmall |
Hi @fpistm There are so many STM32 based flight controllers out there, I targeted this specific board as it is open source and documented so I would propose specific nomenclature to avoid confusion. |
Thanks @geosmall |
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. See my comments.
Hi @fpistm , I've updated to the requested changes, now appear to be failing an AStyle check, unsure how to best resolve. Thanks, |
Thanks @geosmall Simply install astyle: |
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.
Still duplicated pins to comment and apply astyle formatting
If this can help, I've rebased and format your PR: Note: I do not comment duplicated pins line. |
Haha, I'm amused that Astyle is catching you out also @fpistm |
I know this will require some support/question but I think is a necessary evil 😈 |
Ok I am a bit familiar with AStyle and will work to directions above. Thanks for the help :) On peripheral pins, let me make sure I'm thinking it correctly: Some exposed board pins may be used for more than one function when considered across multiple sketches. For example PA2 might be used as analog input in one sketch (using ADC1_IN3), as PWM input measurement pin in another sketch (using TIM2_CH3), and as hardware USART TX output in a third sketch (using USART2_TX). So it would be expected for PA2 to have multiple uncommented options in PeripheralPins.c. Does this sound correct? This is why I have some pins with duplicate uncommented out definition lines. Does this sound correct? Thanks, |
Across all array this is not a problem. One pins can have several feature (I2C, UART, SPI, TIM,...)
The core will search if PA7 has TIM capabilities then it will get the first one defined. PA7 with TIM1. All other will be ignored but consume memory space for nothing.
|
Ah, ok thanks will fix that. |
I believe I have completed the requested changes and successfully passed CI checks. |
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.
Still 2 lines changed while they should not.
Else it is ok.
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.
Sorry @geosmall
I would like to merge and view 2 small issues which required to be fixed.
Thanks in advance.
Thanks for merging @fpistm , and thanks for the patience (first GitHub PR :) |
Welcome. |
Summary
Pull Request to add Sparky V1 Variant. First documented here http://www.stm32duino.com/viewtopic.php?f=49&t=4542
This PR fixes/implements the following bugs/features
Motivation for making this change:
I would like to propose a new STM core variant based on Sparky V1 Flight Controller. This would enable support for open source drone flight controller development and sharing. It would also enabledevelopment of higher performance open source UAVCAN nodes for drone use.
Reasons for targeting this design:
Validation:
See http://www.stm32duino.com/viewtopic.php?p=53147#p53147