AdaCore / Ada_Drivers_Library

Ada source code and complete sample GNAT projects for selected bare-board platforms supported by GNAT.
BSD 3-Clause "New" or "Revised" License
236 stars 141 forks source link

STM32: Allow specifying the GPIO speed on PWM pins #337

Closed WickedShell closed 4 years ago

WickedShell commented 4 years ago

This allows you to set the GPIO output speed using the PWM wrapper package, rather then use the hard coded maximum output speed. It's done as an optional argument, so this shouldn't be a breaking or behavioral change for anyone.

I tested this on a STM32F405, using a 10KHz PWM at a variety of duty cycles, and saw the expected change in output slew speed. I can provide some scope captures if needed.

Before the CLA bot complains, I had e-mailed in the signed CLA.

CLAassistant commented 4 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Fabien-Chouteau commented 4 years ago

Thanks for your contribution @WickedShell,

Before the CLA bot complains, I had e-mailed in the signed CLA.

CLA bot will always complain :) but thanks for tell us that you send a CLA. Can you reminding me you name, I didn't register the GitHub nicknames with the CLA.

WickedShell commented 4 years ago

@Fabien-Chouteau I sorta figured the bot would complain either way :) My name is Michael du Breuil.

Fabien-Chouteau commented 4 years ago

Thank you @WickedShell !