#pragma once #define PRESCALER_FACTOR 200 // motor时钟挂在ahb上 上面还挂了别的外设 最好不分频200 就在pwm设0~2500比较值的时候乘200 #define WAVE_INV