Skip to content

Instantly share code, notes, and snippets.

@teburd
Created July 11, 2018 15:01
Show Gist options
  • Save teburd/00f83c00a85341174aab7d8a12ba752b to your computer and use it in GitHub Desktop.
Save teburd/00f83c00a85341174aab7d8a12ba752b to your computer and use it in GitHub Desktop.
In file included from /home/tburdick/src/zephyr/ext/hal/nordic/nrfx/nrfx.h:36,
from /home/tburdick/src/zephyr/ext/hal/nordic/nrfx/drivers/include/nrfx_timer.h:35,
from ../src/pitch.c:23:
/home/tburdick/src/zephyr/ext/hal/nordic/nrfx/drivers/include/nrfx_timer.h:64:39: error: 'NRF_TIMERNRFX_TIMER3_INST_IDX' undeclared here (not in a function); did you mean 'NRFX_TIMER3_INST_IDX'?
.p_reg = NRFX_CONCAT_2(NRF_TIMER, id), \
^~~~~~~~~
/home/tburdick/src/zephyr/ext/hal/nordic/nrfx/drivers/nrfx_common.h:85:37: note: in definition of macro 'NRFX_CONCAT_2_'
#define NRFX_CONCAT_2_(p1, p2) p1 ## p2
^~
/home/tburdick/src/zephyr/ext/hal/nordic/nrfx/drivers/include/nrfx_timer.h:64:25: note: in expansion of macro 'NRFX_CONCAT_2'
.p_reg = NRFX_CONCAT_2(NRF_TIMER, id), \
^~~~~~~~~~~~~
../src/pitch.c:370:26: note: in expansion of macro 'NRFX_TIMER_INSTANCE'
static nrfx_timer_t t3 = NRFX_TIMER_INSTANCE(NRFX_TIMER3_INST_IDX);
^~~~~~~~~~~~~~~~~~~
/home/tburdick/src/zephyr/ext/hal/nordic/nrfx/drivers/include/nrfx_timer.h:65:39: error: 'NRFX_TIMERNRFX_TIMER3_INST_IDX_INST_IDX' undeclared here (not in a function); did you mean 'NRFX_TIMER3_INST_IDX'?
.instance_id = NRFX_CONCAT_3(NRFX_TIMER, id, _INST_IDX), \
^~~~~~~~~~
/home/tburdick/src/zephyr/ext/hal/nordic/nrfx/drivers/nrfx_common.h:108:37: note: in definition of macro 'NRFX_CONCAT_3_'
#define NRFX_CONCAT_3_(p1, p2, p3) p1 ## p2 ## p3
^~
/home/tburdick/src/zephyr/ext/hal/nordic/nrfx/drivers/include/nrfx_timer.h:65:25: note: in expansion of macro 'NRFX_CONCAT_3'
.instance_id = NRFX_CONCAT_3(NRFX_TIMER, id, _INST_IDX), \
^~~~~~~~~~~~~
../src/pitch.c:370:26: note: in expansion of macro 'NRFX_TIMER_INSTANCE'
static nrfx_timer_t t3 = NRFX_TIMER_INSTANCE(NRFX_TIMER3_INST_IDX);
^~~~~~~~~~~~~~~~~~~
/home/tburdick/src/zephyr/ext/hal/nordic/nrfx/hal/nrf_timer.h:87:55: error: 'TIMERNRFX_TIMER3_INST_IDX_CC_NUM' undeclared here (not in a function); did you mean 'NRFX_TIMER3_INST_IDX'?
#define NRF_TIMER_CC_CHANNEL_COUNT(id) NRFX_CONCAT_3(TIMER, id, _CC_NUM)
^~~~~
/home/tburdick/src/zephyr/ext/hal/nordic/nrfx/drivers/nrfx_common.h:108:37: note: in definition of macro 'NRFX_CONCAT_3_'
#define NRFX_CONCAT_3_(p1, p2, p3) p1 ## p2 ## p3
^~
/home/tburdick/src/zephyr/ext/hal/nordic/nrfx/hal/nrf_timer.h:87:41: note: in expansion of macro 'NRFX_CONCAT_3'
#define NRF_TIMER_CC_CHANNEL_COUNT(id) NRFX_CONCAT_3(TIMER, id, _CC_NUM)
^~~~~~~~~~~~~
/home/tburdick/src/zephyr/ext/hal/nordic/nrfx/drivers/include/nrfx_timer.h:66:25: note: in expansion of macro 'NRF_TIMER_CC_CHANNEL_COUNT'
.cc_channel_count = NRF_TIMER_CC_CHANNEL_COUNT(id), \
^~~~~~~~~~~~~~~~~~~~~~~~~~
../src/pitch.c:370:26: note: in expansion of macro 'NRFX_TIMER_INSTANCE'
static nrfx_timer_t t3 = NRFX_TIMER_INSTANCE(NRFX_TIMER3_INST_IDX);
^~~~~~~~~~~~~~~~~~~
[13/155] Building C object zephyr/CMakeFiles/zephyr.dir/ext/lib/crypto/tinycrypt/source/cmac_mode.c.obj
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment