Hi,
I am trying to add the SAADC to an existing project. SDK 14.2 - Softdevice.
I quickly changed the existing code as follows:
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
static void saadc_callback(nrf_drv_saadc_evt_t const *p_event) {
uint32_t err_code;
NRF_LOG_DEBUG("saadc_callback");
}
int main(void) {
bool erase_bonds;
ret_code_t err_code;
// Initialize.
timers_init();
buttons_leds_init(&erase_bonds);
ble_stack_init();
gap_params_init(configuration.board_name);
gatt_init();
services_init();
Unfortunately, the callback gets never been called.
Please, what am I doing wrong?
Thanks