This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How many one time timer can i make?

Hi. I'm using PCA10028, SDK10.0.0, S130.

I want to make one time timers as below.

APP_TIMER_DEF(one_time_timer_1); APP_TIMER_DEF(one_time_timer_2); APP_TIMER_DEF(one_time_timer_3); ......

err_code = app_timer_create(&one_time_timer_1,
							APP_TIMER_MODE_SINGLE_SHOT,
							timer_1_callback);
APP_ERROR_CHECK(err_code);
err_code = app_timer_create(&one_time_timer_2,
							APP_TIMER_MODE_SINGLE_SHOT,
							timer_2_callback);
APP_ERROR_CHECK(err_code);

......

How many one time timer can i make? I need your help.

Parents
  • How many timer events that can be queued is decided by the OP_QUEUES_SIZE in APP_TIMER_INIT(). As described in the app_timer tutorial:

    OP_QUEUES_SIZE: determines the maximum number of events that can be queued. Let's say you are calling the API function several times in a row to start a single shot timer, this determines how many times you can have queued before the queue gets full.

Reply
  • How many timer events that can be queued is decided by the OP_QUEUES_SIZE in APP_TIMER_INIT(). As described in the app_timer tutorial:

    OP_QUEUES_SIZE: determines the maximum number of events that can be queued. Let's say you are calling the API function several times in a row to start a single shot timer, this determines how many times you can have queued before the queue gets full.

Children
Related