cc3200 sdk - pmw
时间:10-02
整理:3721RD
点击:
我运行了sdk里边的pmw例程,但是没看懂下边这段代码是怎么指向各个GPIO引脚的,能帮忙解释下吗?谢谢!
//
// TIMERA2 (TIMER B) as RED of RGB light. GPIO 9 --> PWM_5
//
SetupTimerPWMMode(TIMERA2_BASE, TIMER_B,
(TIMER_CFG_SPLIT_PAIR | TIMER_CFG_B_PWM), 1);
//
// TIMERA3 (TIMER B) as YELLOW of RGB light. GPIO 10 --> PWM_6
//
SetupTimerPWMMode(TIMERA3_BASE, TIMER_A,
(TIMER_CFG_SPLIT_PAIR | TIMER_CFG_A_PWM | TIMER_CFG_B_PWM), 1);
//
// TIMERA3 (TIMER A) as GREEN of RGB light. GPIO 11 --> PWM_7
//
SetupTimerPWMMode(TIMERA3_BASE, TIMER_B,
(TIMER_CFG_SPLIT_PAIR | TIMER_CFG_A_PWM | TIMER_CFG_B_PWM), 1);
指的是板子上面的GP09-GP11。也就是板子左下角的那三个LED灯。
谢谢