Datasheet
1
#define UBYTE uint8_t
#define UWORD uint16_t
#define UDOUBLE uint32_t
module initialization and exit
void DEV_Module_Init(void);
void DEV_Module_Exit(void);
PWM initialization:
void PWM_initialization();
interrupt handler function:
void on_pwm_wrap();
Define the channel used
#define CHANNE_N 0xFFFF // 0x0001 means 0 channel is open, 0x0000
means all channels are closed
Angles of rotation
#define ROTATE_0 1700 //rotate to 0°
#define ROTATE_45 3300 //rotate to 45°
#define ROTATE_90 4940 //rotate to 90°
#define ROTATE_135 6600 //rotate to 135°
#define ROTATE_180 8250 //rotate to 180°










