This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

app_pwm.h and PWM Examples won't compile

I'm trying to get the PWM example to compile in SDK 10. However I cannot get app_pwm.h to compile. I get the following errors:

  1. expected expression before '{' token ble_app_hrs line 70, external location: C:\Nordic_Semi_SDK_10\SDK_v10_Package\components\libraries\pwm\app_pwm.h

This is on the first { in the #define APP_PWM_DEFAULT_CONFIG_2CH(period_in_us, pin0, pin1)

  1. Type 'APP_PWM_INSTANCE(PWM1,1)' could not be resolved I'm included app_pwm.h into project include paths as well as in the makefile (along with app_pwm.c). I don't get any other errors on app_pwm function calls except this MACRO.

Thanks guys,

-DC

Related