Mirror with some correction
Dependencies: mbed FastIO FastPWM USBDevice
NewPwm/NewPwm.cpp@116:7a67265d7c19, 2021-10-01 (annotated)
- Committer:
- arnoz
- Date:
- Fri Oct 01 08:19:46 2021 +0000
- Revision:
- 116:7a67265d7c19
- Parent:
- 98:4df3c0f7e707
- Correct information regarding your last merge
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mjr | 77:0b96f6867312 | 1 | // New PWM Out implementation |
mjr | 77:0b96f6867312 | 2 | |
mjr | 77:0b96f6867312 | 3 | #include "NewPwm.h" |
mjr | 77:0b96f6867312 | 4 | |
mjr | 77:0b96f6867312 | 5 | // TPM Unit singletons. We have three singletons corresponding |
mjr | 77:0b96f6867312 | 6 | // to the three physical TPM units in the hardware. |
mjr | 77:0b96f6867312 | 7 | NewPwmUnit NewPwmUnit::unit[3]; |
mjr | 77:0b96f6867312 | 8 | |
mjr | 77:0b96f6867312 | 9 | // System clock rate, in Hz |
mjr | 77:0b96f6867312 | 10 | uint32_t NewPwmUnit::sysClock; |
mjr | 77:0b96f6867312 | 11 | |
mjr | 94:0476b3e2b996 | 12 | // Default PWM period for new channels, in seconds |
mjr | 98:4df3c0f7e707 | 13 | float NewPwmUnit::defaultPeriod = 0.001f; |
mjr | 94:0476b3e2b996 | 14 |