This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to operate GPT10_PWM_EVT on WInCE?

gpt10_pwm_evt to try using the PWM control. But the behavior does not. Setting the wrong part or if it has not please let me know.

// Setting

#define CLKSEL_GPT10_MASK (1 << 6)

 OUTREG16(&pConfig->CONTROL_PADCONF_UART2_RTS, (INPUT_DISABLE | PULL_DOWN | MUX_MODE_2));    /*gpt10_pwm_evt*/

 SETREG32(&pCmRegs->CM_FCLKEN1_CORE, CM_CLKEN_GPT10);
 SETREG32(&pCmRegs->CM_ICLKEN1_CORE, CM_CLKEN_GPT10);
 while (INREG32(&pCmRegs->CM_IDLEST1_CORE) & CM_IDLEST_ST_GPT10)
  OALLog(L"CM_IDLEST_ST_GPT10 Wait\r\n");

  pPrcmWkupCM = OALPAtoUA(OMAP_PRCM_WKUP_CM_REGS_PA);
 SETREG32(&pPrcmWkupCM->CM_FCLKEN_WKUP, CM_CLKEN_GPT10);

 tmpvalue = INREG32(&pCmRegs->CM_CLKSEL_CORE);
 tmpvalue |= CLKSEL_GPT10_MASK;
 SETREG32(&pCmRegs->CM_CLKSEL_CORE, tmpvalue);

 pGpt10 = OALPAtoUA(OMAP_GPTIMER10_REGS_PA);

 SETREG32(&pGpt10->TCLR,0); 
 SETREG32(&pGpt10->TCRR,0xFFFE042F); 
 SETREG32(&pGpt10->TLDR,0xFFFE042F); 
 SETREG32(&pGpt10->TMAR,0xFFD853BF); 
 SETREG32(&pGpt10->TCLR,((1<<0)| / //ST
                                                        (1<<1)|  / //AR
                                                        (1<<6)| / //CE
                                              //        (1<<7)| / // SCPWM
                                                       (2<<10)| / //TRG
                                                       (1<<12))); //PT