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

Declaring timers

I want to include a timer within a structure and also within an array. However the SDK uses a macro to define the declaration of a timer. App_timer.h recommends not to define.

Is there a recommended method that can be used?

Eg.

typedef struct {

  uint16_t anInteger;

  app_timer_t aTimer;

} aStructure_t;

Or

app_timer_t timers[0..TIMERS];

Malcolm

Related