I am trying to add A/D conversion to my project which is a modified version of the ble_peripheral/ble_app_uart/pca10040e example.
I have:
- Added "nrfx_saadc.c" to the "nRF_Drivers" group
- Added #include "nrf_drv_saadc.h" to my main.c
- Used "CMSIS_Configuration_Wizard" to enable the "nrfx_saadc" in sdk_config.h
But still the #if NRFX_CHECK(NRFX_SAADC_ENABLED) in nrfx_saadc.c thinks that the A/D converter is not enabled.
I have checked how it's done in the examples/peripheral/saadc/pca10040e project and there the NRFX_CHECK(NRFX_SAADC_ENABLED) thinks that the A/D converter is enabled.
The actual part in my sdk_config.h looks like this:
// <e> NRFX_SAADC_ENABLED - nrfx_saadc - SAADC peripheral driver
//==========================================================
#ifndef NRFX_SAADC_ENABLED
#define NRFX_SAADC_ENABLED 1
#endif
- What am I supposed to do to make the NRFX_CHECK(NRFX_SAADC_ENABLED) in nrfx_saadc.c think that I have enabled the adc module?