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

Error to include lib to use interrupt

Hi,

I am trying to add interruption on light switch example. So, eu studied the gpiote example from SDK14.

When I add PPI, GPIOTE and TIMER libraries, on light switch example the segger show me an error:

components\drivers_nrf\ppi\nrf_drv_ppi.c:51:29: error: 'ppi' undeclared (first use in this function)
1> ../../../log/nrf_log_internal.h:106:34: note: in definition of macro 'LOG_INTERNAL_2'
1> ../../../log/nrf_log_internal.h:117:41: note: in expansion of macro 'LOG_INTERNAL_X'
1> ../../../log/nrf_log_internal.h:157:9: note: in expansion of macro 'LOG_INTERNAL'
1> ../../../log/nrf_log_internal.h:124:52: note: in expansion of macro 'NRF_LOG_MODULE_NAME'
1> ../../../log/nrf_log_internal.h:157:42: note: in expansion of macro 'LOG_INFO_PREFIX'
1> ../../../log/nrf_log.h:129:48: note: in expansion of macro 'NRF_LOG_INTERNAL_INFO'

this error is referent the ppi variable presents on nrf_drv_ppi.c

#define NRF_LOG_MODULE_NAME ppi

I already add the source file on the project diretory and the path on the project. I also aneble these functions on the sdk_config.h

Anyone can help me to resolve this question?

Parents Reply Children
No Data
Related