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.

cc2640 pwm

Dear TI engineer,

I have a question now.When I use pwm driver ,I call the function of pwm driver ,but the project can not pass compile. Blow are my code and errors.I have seen the use guide .I don't know what does this "

To enable this driver, add the following statement to your application’s *.cfg file.
TIRTOS.usePWM = true;"  mean .

When I put this code in appBLE.cfg(I use sensor tag application ). The project can not pass compile. Thank you.

"

MY CODE

#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/knl/Semaphore.h>
#include <ti/sysbios/knl/Task.h>
#include <ti/sysbios/family/arm/cc26xx/Power.h>
#include "type.h"


#include <ti/drivers/i2c/I2CCC26XX.h>

#include <driverlib/prcm.h>
#include <ti/drivers/PWM.h>

#include "Board.h"
#include "sensor.h"

//#include "bsp_pwm.h"

PWM_Handle handle;
PWM_Params params;
uint8_t pwmOutputNumber = 0;
extern void PWM_Params_init(PWM_Params *params);
//au();
PWM_Params_init(&params);

ERRORS

Error[Pe079]: expected a type specifier 

Error[Pe260]: explicit type is missing ("int" assumed) 

Error[Pe147]: declaration is incompatible with "__interwork __softfp void PWM_Params_init(PWM_Params *)" (declared at line 467 of "C:\ti\tirtos_simplelink_2_13_00_06\ C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\SensorTag\CC26xx\Source\Application\Board_patch\Interfaces\bsp_pwm.c 65