-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
esp32/MCPWM: Add motor control MCPWM driver. #12345
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
base: master
Are you sure you want to change the base?
Conversation
a368f67
to
de1eb9b
Compare
Code size report:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #12345 +/- ##
=======================================
Coverage 98.57% 98.57%
=======================================
Files 164 164
Lines 21345 21345
=======================================
Hits 21040 21040
Misses 305 305 ☔ View full report in Codecov by Sentry. |
d6e9338
to
95e91aa
Compare
First results: Rising Delay on PWMA and Bypass Dead Time for PWMB Falling Delay on PWMB and Bypass Dead Time for PWMA Rising and Falling Delay on PWMB and Bypass Dead Time for PWMA |
03df564
to
eab9827
Compare
df782c1
to
521fab7
Compare
9172bfb
to
e88200f
Compare
This is an automated heads-up that we've just merged a Pull Request See #13763 A search suggests this PR might apply the STATIC macro to some C code. If it Although this is an automated message, feel free to @-reply to me directly if |
4d61f96
to
e6218be
Compare
cc47c95
to
1f41bcd
Compare
esp32/mphalport: Add __FUNCTION__, __LINE__, __FILE__ info to check_esp_err(). Signed-off-by: Ihor Nehrutsa <IhorNehrutsa@gmail.com>
esp32/MCPWM: Add complementary PWMs. Signed-off-by: Ihor Nehrutsa <Ihor.Nehrutsa@gmail.com> Co-Authored-By: bskp <bskp@posteo.ch> Co-Authored-By: Robert Hammelrath <12476868+robert-hh@users.noreply.github.com>
py/mpprint.h: Rename MP_PRN to MP_DEBUG_PRINT. Move MP_DEBUG_PRINT_XXX constants upper to the #if MICROPY_INCLUDED_PY_MPPRINT_H/#endif block. Co-Authored-By: Andrew Leech <3318786+andrewleech@users.noreply.github.com> py/mpprint.h: Fix typo. py/mpprint.h: Move HOWTO upper. Add gaps between MP_DEBUG_PRINT_XXX levels. Move `How to use:` upper before #define MP_DEBUG_PRINT(). Print level names instead of the numbers. Signed-off-by: Ihor Nehrutsa <IhorNehrutsa@gmail.com> py/mpprint.h: Move HOWTO upper. Add gaps between MP_DEBUG_PRINT_XXX levels. Move `How to use:` upper before #define MP_DEBUG_PRINT(). Print level names instead of the numbers. Signed-off-by: Ihor Nehrutsa <IhorNehrutsa@gmail.com> py/mpprint.h: Fix typo. py/mpprint.h: Rename MP_PRN to MP_DEBUG_PRINT. Move MP_DEBUG_PRINT_XXX constants upper to the #if MICROPY_INCLUDED_PY_MPPRINT_H/#endif block. py/mpprint.h: Add MP_PRN() macro. Co-Authored-By: Andrew Leech <3318786+andrewleech@users.noreply.github.com>
1f41bcd
to
7964650
Compare
If possible, this will be full support for the ESP32 MCPWM peripheral according to the
Motor Control Pulse Width Modulator (MCPWM)
In the future,
esp32.MCPWM
will allow the development of common cross-portmachine.COMPLEMENTARY_PWM
,Space Vector PWM
,machine.CAPTURE
etc.Based on Basic MCPWM support #5818
Some code is taken from https://github.com/micropython/micropython/blob/master/ports/mimxrt/machine_pwm.c @robert-hh
The
py/mpprint.h
file from #8050, theports/esp32/mphalport.c
andports/esp32/mphalport.h
files from #10888 will be removed from this PR when development is complete.