sync amplitude pwm
This commit is contained in:
parent
d849a2d1fb
commit
176d6011ad
1 changed files with 2 additions and 1 deletions
|
@ -1,8 +1,9 @@
|
|||
#include "generator.h"
|
||||
#include "pwmclass.h"
|
||||
#include "utils.h"
|
||||
|
||||
static constexpr unsigned W_TB = 8u;
|
||||
static constexpr double AMPL = 3000.0;
|
||||
static constexpr double AMPL = MAXPWM >> 1;
|
||||
static constexpr int ULEN = 1 << W_TB;
|
||||
|
||||
static constexpr uint16_t u16_sin (const int x) {
|
||||
|
|
Loading…
Reference in a new issue