When I try basic usage of NRF Queue library I'm getting the following error:
Undefined reference to `nrf_queue_write'
SDK version is 15.3.0.
In sdk_config.h I've enabled the NRF Queue like you can see in the code below:
// <e> NRF_QUEUE_ENABLED - nrf_queue - Queue module //========================================================== #ifndef NRF_QUEUE_ENABLED #define NRF_QUEUE_ENABLED 1 #endif // <q> NRF_QUEUE_CLI_CMDS - Enable CLI commands specific to the module #ifndef NRF_QUEUE_CLI_CMDS #define NRF_QUEUE_CLI_CMDS 1 #endif // </e>
My code of library usage is shown below:
#include "nrf_queue.h"
NRF_QUEUE_DEF(uint8_t, m_events_queue, 200, NRF_QUEUE_MODE_OVERFLOW);
NRF_QUEUE_INTERFACE_DEC(uint8_t, events_queue);
NRF_QUEUE_INTERFACE_DEF(uint8_t, events_queue, &m_events_queue)
ret_code_t ring_buffer_put(char *data, size_t len) {
ret_code_t err_code;
err_code = events_queue_write(data, len);
APP_ERROR_CHECK(err_code);
return err_code;
}