|
|
|
|
|
|
|
|
case 0: flexpwm = &IMXRT_FLEXPWM1; break; |
|
|
case 0: flexpwm = &IMXRT_FLEXPWM1; break; |
|
|
case 1: flexpwm = &IMXRT_FLEXPWM2; break; |
|
|
case 1: flexpwm = &IMXRT_FLEXPWM2; break; |
|
|
case 2: flexpwm = &IMXRT_FLEXPWM3; break; |
|
|
case 2: flexpwm = &IMXRT_FLEXPWM3; break; |
|
|
case 3: flexpwm = &IMXRT_FLEXPWM4; |
|
|
|
|
|
|
|
|
default: flexpwm = &IMXRT_FLEXPWM4; |
|
|
} |
|
|
} |
|
|
flexpwmWrite(flexpwm, info->module & 0x03, info->channel, val); |
|
|
flexpwmWrite(flexpwm, info->module & 0x03, info->channel, val); |
|
|
} else if (info->type == 2) { |
|
|
} else if (info->type == 2) { |
|
|
|
|
|
|
|
|
case 0: qtimer = &IMXRT_TMR1; break; |
|
|
case 0: qtimer = &IMXRT_TMR1; break; |
|
|
case 1: qtimer = &IMXRT_TMR2; break; |
|
|
case 1: qtimer = &IMXRT_TMR2; break; |
|
|
case 2: qtimer = &IMXRT_TMR3; break; |
|
|
case 2: qtimer = &IMXRT_TMR3; break; |
|
|
case 3: qtimer = &IMXRT_TMR4; |
|
|
|
|
|
|
|
|
default: qtimer = &IMXRT_TMR4; |
|
|
} |
|
|
} |
|
|
quadtimerWrite(qtimer, info->module & 0x03, val); |
|
|
quadtimerWrite(qtimer, info->module & 0x03, val); |
|
|
} else { |
|
|
} else { |