PWM_PRD_MASK
if (div - 1 > PWM_PRD_MASK)
if (div - 1 <= PWM_PRD_MASK)
#define PWM_REG_PRD(reg) ((((reg) >> 16) & PWM_PRD_MASK) + 1)