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

NRF_TIMER0 is undefined. Visual Studio Code GPIOTE example.

Hello.

I'm playing around with GPIOTE example. I have all the include paths correct and the project can build fine. But I'm having error in the line 

static nrf_drv_timer_t timer = NRF_DRV_TIMER_INSTANCE(0);

The error is at NRF_DRV_TIMER_INSTANCE. Intellisense is telling me:

identifier "NRF_TIMER0" is undefined
 
Screenshot: 
What define do I have to make for this? This is all the definition I have for the IDE (Visual Studio Code)
_DEBUG
UNICODE
_UNICODE
__STATIC_INLINE=static inline
GPIO_OUTPUT_PIN_NUMBER=0
Thank you very much and best regards.
Parents Reply Children
No Data
Related