Mirror with some correction
Dependencies: mbed FastIO FastPWM USBDevice
NewPwm/NewPwm.cpp
- Committer:
- arnoz
- Date:
- 2021-10-01
- Revision:
- 116:7a67265d7c19
- Parent:
- 98:4df3c0f7e707
File content as of revision 116:7a67265d7c19:
// New PWM Out implementation #include "NewPwm.h" // TPM Unit singletons. We have three singletons corresponding // to the three physical TPM units in the hardware. NewPwmUnit NewPwmUnit::unit[3]; // System clock rate, in Hz uint32_t NewPwmUnit::sysClock; // Default PWM period for new channels, in seconds float NewPwmUnit::defaultPeriod = 0.001f;