Skip to content

stm32f4: pwm_init returns wrong value #4439

@A-Paul

Description

@A-Paul

In cpu/stm32f4/periph/pwm.c pwm_init is returning the requested input value.
It should return a frequency that is calculated based on actual clock and prescaler values.

Metadata

Metadata

Assignees

Labels

Area: driversArea: Device driversPlatform: ARMPlatform: This PR/issue effects ARM-based platformsType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions