I am working on a project using a ble nano (nrf51822) using the Nordic SDK 8.1. I am trying to use PWM to control a buzzer. To do this I included the following files into my main.c:
#include "nrf_delay.h" #include "app_pwm.h"
Then I went into the makefile and added the following lines:
C_SOURCE_FILES += \ ../../../../../../components/drivers_nrf/timer/nrf_drv_timer.c \ ../../../../../../components/libraries/pwm/app_pwm.c \
and
INC_PATHS += -I../../../../../../components/libraries/timer
Yet when I run my build commands I get the following error: "Compiling file: nrf_drv_timer.c
Compiling file: app_pwm.c
In file included from ../../../../../../components/libraries/pwm/app_pwm.c:13:0:
../../../../../../components/libraries/pwm/app_pwm.h:32:27: fatal error: nrf_drv_timer.h: No such file or directory
#include "nrf_drv_timer.h"
"
How can I properly include the files for PWM?