This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How can I use APP_TIMER_DEF() in multiple files? I get an error because it is static

I am trying to use an application timer and I want to be able to reference the timer in another source file.

main.c

APP_TIMER_DEF(m_MSG_timer_id);

another.c

extern APP_TIMER_DEF(m_MSG_timer_id);

Parents Reply Children
Related