Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makes the PWM interface compatible with constexpr. (#690)
Similar to GPIO classes, we often have many PWM objects allocated for multi-channel output use-cases. By making PWM interface compatible with constexpr, we allow for implementations to build these definitions into read-only memory (flash), reducing the RAM footprint of a multi-channel PWM device. There are specific requirementsfor making a class constexpr in C++11, and the base classes have to comply with them as well. This PR makes the PWM base class comply with these requirements.
- Loading branch information