X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fpwm.h;h=f2c651b10df6f1946dd2ee9a146f3dda7ef396d6;hb=46cacdd7cf98dd977225deceb6ec3f08ef11a81f;hp=db9b3a2cae7c2e6137e8a6f05056e33db8d1561c;hpb=6286e79f3da8091ec8da66469488a11035cada11;p=bertos.git diff --git a/bertos/drv/pwm.h b/bertos/drv/pwm.h index db9b3a2c..f2c651b1 100644 --- a/bertos/drv/pwm.h +++ b/bertos/drv/pwm.h @@ -42,13 +42,16 @@ #define DRV_PWM_H #include "hw/pwm_map.h" + +#include + #include CPU_HEADER(pwm) #include #define PWM_MAX_DUTY ((pwm_duty_t)0xFFFF) -#define PWM_MAX_PERIOD 0xFFFF -#define PWM_MAX_PERIOD_LOG2 16 +#define PWM_MAX_PERIOD 0xFFFF +#define PWM_MAX_PERIOD_LOG2 16 /** * PWM type define. @@ -77,7 +80,7 @@ void pwm_init(void); * See pwm_test.c for implemntation of these functions. */ int pwm_testRun(void); -int pwm_testSetup(void); +int pwm_testSetUp(void); int pwm_testTearDown(void); #endif /* DRV_PWM_H */