Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

timer interrupt

hi,

 i am working on timer example in peripheral folder. i am including this example in ble_uart example in ble_peripheral folder.  i am getting error " 'NRFX_TIMER0_INST_IDX' undeclared here (not in a function); did you mean 'NRFX_TIMER_INSTANCE'? "

Parents Reply
  • Could you share the main file, so I can take a closer look into this, please?

    Otherwise, make sure you have done the following things:

    - Include paths to the nrfx_timer library in the project settings

    - Add nrfx_timer.c to your project files

    - #include nrfx_timer.h in the main file

    - Declare TIMER instance: const nrf_drv_timer_t TIMER_INST_EXAMPLE = NRF_DRV_TIMER_INSTANCE(0);

Children
No Data
Related