Skip to content

Commit

Permalink
nrfx_nfct: Make the driver compilable outside of nRF5 SDK
Browse files Browse the repository at this point in the history
This patch corrects a few things in nrfx_nfct that made it impossible
to compile this driver outside of the nRF5 SDK. These are:
- call to UNUSED_PARAMETER macro
- memcopy() used without including the proper header file
- call to NRF_LOG_INFO macro

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
  • Loading branch information
anangl authored and kl-cruz committed Sep 25, 2018
1 parent e0d4ecb commit 56e90fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/src/nrfx_nfct.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ static void nrfx_nfct_field_poll(void)

static void nrfx_nfct_field_timer_handler(nrf_timer_event_t event_type, void * p_context)
{
UNUSED_PARAMETER(p_context);
(void)p_context;

if (event_type != NRF_TIMER_EVENT_COMPARE0)
{
Expand Down Expand Up @@ -463,7 +463,7 @@ nrfx_err_t nrfx_nfct_init(nrfx_nfct_config_t const * p_config)
m_nrf52840.eng_bc = nrfx_nfct_type_52840_final_check();
#endif // NRF52840_XXAA

memcpy(&m_nfct_cb.config, p_config, sizeof(nrfx_nfct_config_t));
m_nfct_cb.config = *p_config;
nrfx_nfct_hw_init_setup();

#ifdef USE_TIMER_WORKAROUND
Expand Down Expand Up @@ -572,7 +572,7 @@ nrfx_err_t nrfx_nfct_tx(nrfx_nfct_data_desc_t const * p_tx_data,
nrfx_nfct_rxtx_int_enable(NRFX_NFCT_TX_INT_MASK);
nrf_nfct_task_trigger(NRF_NFCT_TASK_STARTTX);

NRF_LOG_INFO("Tx start");
NRFX_LOG_INFO("Tx start");
return NRFX_SUCCESS;
}

Expand Down

0 comments on commit 56e90fa

Please sign in to comment.