madison-embedded / gcc-builds

For projects built with the GNU toolchain.
GNU General Public License v3.0
11 stars 8 forks source link

STM32 Nucleo 144 F767ZI: Input Capture / PWM Driver via Timer Interface #30

Open vkottler opened 7 years ago

vkottler commented 7 years ago

The various general-purpose timers in the silicon can be used for dozens of purposes.

Create an interface that easily exposes the ability to drive a PWM signal or measure pulses via the input capture feature.

Pins that will be used for these functions will be defined and imported today

csgreen3 commented 7 years ago

Sticking with EXTI instead of input capture. (input capture only has 16 bit register) PWM is implemented and tested with TIM1

vkottler commented 7 years ago

Let's get a PWM command going that only works with pins we have categorized as PWM-capable

pwm <pin> [duty cycle] where if you don't specify duty cycle it just goes to 50%

vkottler commented 7 years ago

When you get a chance if you could summarize where this is at that would be sweet