Paciente8159 / uCNC

µCNC - Universal CNC firmware for microcontrollers
https://github.com/Paciente8159/uCNC/wiki
GNU General Public License v3.0
289 stars 64 forks source link

Fixed PWM configuration macro for STM32 F4x family MCUs #585

Closed patryk3211 closed 9 months ago

patryk3211 commented 9 months ago

The PWM configuration code had hard-coded usage of the PWM0_ENREG and PWM0_APBEN, it now uses the __indirect__ macro to select the correct registers depending on the specified PWM pin.

Paciente8159 commented 9 months ago

Spot on. Thanks