Hi TI engineer,
I want to use three pwm in my projuct,blow is my code ,GTP0 IS ok. But GPT1 can not work. I would like to know how to configure GPT1,thank you.
void taskFxn(UArg a0, UArg a1) { // Register client for pins in pwmExamplePins array pinHandle = PIN_open(&pinState, pwmExamplePins); // Route LED1 pin on SmartRF06EB to IO event port 0 (0 = Timer0A, 1 = Timer0B, 2 = Timer1A..) PINCC26XX_setMux(pinHandle, PIN_ID(Board_PitchA), IOC_PORT_MCU_PORT_EVENT0); PINCC26XX_setMux(pinHandle, PIN_ID(Board_PitchB), IOC_PORT_MCU_PORT_EVENT1); PIN_registerIntCb(pinHandle, pinCallBack); // Turn on PERIPH power domain and clock for GPT0 Power_setDependency(PERIPH_GPT0); Power_setDependency(PERIPH_GPT1); // timerInitialize(); TimerConfigure(GPT0_BASE, TIMER_CFG_SPLIT_PAIR|TIMER_CFG_A_PWM); TimerLoadSet(GPT0_BASE, TIMER_A, TIMER_LOADSET); TimerMatchSet(GPT0_BASE, TIMER_A, TIMER_MATCH); TimerConfigure(GPT1_BASE, TIMER_CFG_SPLIT_PAIR|TIMER_CFG_A_PWM); TimerLoadSet(GPT1_BASE, TIMER_A, TIMER_LOADSET); TimerMatchSet(GPT1_BASE, TIMER_A, TIMER_MATCH); TimerEnable(GPT0_BASE, TIMER_A); TimerEnable(GPT1_BASE, TIMER_A); while(1) { } }