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.

[参考译文] RTOS/CC2650:CC2650 Launchpad 中的 PWM 驱动程序不工作?

Guru**** 2587345 points
Other Parts Discussed in Thread: CC2650

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/713533/rtos-cc2650-pwm-driver-not-working-in-cc2650-launchpad

器件型号:CC2650

工具/软件:TI-RTOS

我尝试包含类似这样的 PWM 代码

 if (pCharData->data[0]= 8){


         PWM_Handle pwm1;
          PWM_PARAMS 参数;
          uint16_t  pwmPeriod = 1000000;    //以微秒为单位的周期和占空比
          uint16_t  Duty = 0;
          uint16_t  dutyInc = 1;

          PWM_PARAMS_INIT (params);

          params.dutyUnits = PWM_Duty_US;
          params.dutyValue = 0;
          params.periodUnits = PWM_PERIOD_US;
          params.periodValue = pwmPeriod;
          pwm1 = PWM_OPEN (CC2650_LAUNCHXL_ADC0,params);
          IF (pwm1)
           {
               LOG_info0 ("已完成初始化 PWM");
               PWM_START (pwm1);
           }



     }

因此、如果我尝试这样做、我会遇到错误、例如

未解析的符号 PWM_PARAMS_INIT

未解析的符号 PWM_OPEN


未解析的符号 PWM_START

我还包含了#include 虽然认为这可以解决问题,但却无法解决问题

请帮我提前感谢