-
Notifications
You must be signed in to change notification settings - Fork 1k
[RUMBA32] Minor Improvements and Fixes #1092
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
- Fix timer conflicts in PWM pin mapping - Enable PWM on expansion pins - PWM removed from some pins that don't require it
Well, in this case you could redefine it at the sketch level, using the https://github.com/stm32duino/wiki/wiki/Customize-build-options-using-build_opt.h |
Make format consistent with that recommended in board_template when not using NUM_ANALOG_FIRST. Groundwork for enabling further ADC pins in future commit.
Enable analog input on all pins which map to ADC1. Maintain consistency with previous pin mapping of A0 - A6, so should be no impact to existing code that uses this mapping.
Add extra possible configurations from current STM32F446V(C-E)Tx genpinmap PeripheralPins.c file.
User-accessible via EXP1 header.
Default TIMER_SERIAL assignment is to TIM7, which conflicts with TIMER_SERVO.
c84348c
to
28dadd2
Compare
Hmm, it might be worth surrounding each of the timers defined in variant.h with an |
From my point of view there is no issue to add |
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.
LGTM.
Thanks @fpistm. I've noticed a bit of weirdness when using SoftwareSerial with certain pins, and have opened an issue about this (#1093). Hope you can take a look when you get the opportunity. I might hold off on requesting a merge on this until I understand what's happening there, in case it's something I've introduced or can fix in the pin definitions. |
Allow TIMER_TONE, TIMER_SERVO and TIMER_SERIAL to be overridden using built_opt.h or similar.
1dfd0b9
to
f13ec1e
Compare
All right, I'm satisfied with these changes and am happy for the PR to be merged. I'll move it from draft now and it is yours to review @fpistm! |
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.
LGTM
[RUMBA32] Minor Improvements and Fixes
Summary
The fixes relating to timer conflicts are raised as a result of the investigation conducted here: Aus3D/RUMBA32#26
This PR fixes/implements the following changes:
I am curious, does anyone know if there's a way to define the timers in the variant.h file such that they can be overridden by the user's code? For instance, I tried setting up the variant.h file like:
But it seems that the variant.h file gets compiled before anything I do in the Arduino sketch / header, and I see a warning that TIMER_SERIAL is redefined. Is there a way to make this work? Would be quite useful if the TONE, SERVO and SERIAL timers could all be redefined by the user, while still allowing for a variant default.
Validation
Code formatting
Closing issues