Skip to content

ports: Various additions and fixes. #11624

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

Merged
merged 4 commits into from
Jun 1, 2023
Merged

Conversation

robert-hh
Copy link
Contributor

@robert-hh robert-hh commented May 25, 2023

  • Fix a regression for MIMXRT PWM, which caused setting duty_u16() behave like duty_ns() when the frequency was changed: the positive pulse duration did not change. That came up during testing for PR ports: mimxrt: Switch to official GitHub SDK (WIP) #11516. Fix an inconsistency when displaying a PWM pin's properties and improve the check for a pin to support PWM.
  • Add the pinout information for the Adafruit Metro M7 board.
  • Add the pinout information for the Adafruit Metro M4 board.

@robert-hh robert-hh force-pushed the ports_sp15 branch 4 times, most recently from c5e18e7 to 9ad6d2e Compare May 26, 2023 07:14
Three bugs have been fixed in this commit:

1. When the duty was set with duty_u16(), changing the freq with pwm.freq()
   would not keep relative duty rate, but the absolute pulse duration.

2. Fix another inconsistency when displaying the PWM pin's properties of a
   QTMR channel.

3. Improve the error checks for the second channel being a PWM pin and pin
   pairs to be a FLEXPWM A/B pair.

Signed-off-by: robert-hh <robert@hammelrath.com>
robert-hh added 3 commits June 1, 2023 12:38
This one sets the flash image length properly for the teensy loader, such
that the file system is not erased.  It was already set in commit
8e54225 but got lost when the MIMXRT1176
board was added.

Signed-off-by: robert-hh <robert@hammelrath.com>
Signed-off-by: robert-hh <robert@hammelrath.com>
Signed-off-by: robert-hh <robert@hammelrath.com>
@dpgeorge dpgeorge merged commit 633408a into micropython:master Jun 1, 2023
@dpgeorge
Copy link
Member

dpgeorge commented Jun 1, 2023

Thank you.

During merge I tweaked the PWM error messages to use "second" instead of "2nd", and "doesn't" instead of "does not" (for consistency with other messages).

@robert-hh
Copy link
Contributor Author

Thank you. May I ask for the state of PR #10233. The changes which you suggested are made.

@robert-hh robert-hh deleted the ports_sp15 branch June 2, 2023 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants