![]() |
EVE 1.0
|
#include <stdint.h>#include <stdbool.h>#include <stdio.h>#include <sys/clock.h>#include <core/mwork.h>#include "app_error.h"#include "app_util.h"#include "compiler_abstraction.h"

Go to the source code of this file.
Macros | |
| #define | APP_TIMER_CLOCK_FREQ CLOCK_SECOND |
| #define | APP_TIMER_MIN_TIMEOUT_TICKS 1 |
| #define | APP_TIMER_TICKS(MS, PRESCALER) MS_TO_TICKS(MS) |
| Convert milliseconds to timer ticks. More... | |
| #define | APP_TIMER_DEF(timer_id) |
| Create a timer identifier and statically allocate memory for the timer. More... | |
| #define | APP_TIMER_INIT(PRESCALER, OP_QUEUES_SIZE, SCHEDULER_FUNC) |
| Initialize the application timer module. More... | |
Typedefs | |
| typedef struct app_timer_t * | app_timer_id_t |
| Timer ID type. Never declare a variable of this type, but use the macro APP_TIMER_DEF instead. | |
| typedef void(* | app_timer_timeout_handler_t) (void *p_context) |
| Application time-out handler type. | |
| typedef uint32_t(* | app_timer_evt_schedule_func_t) (app_timer_timeout_handler_t timeout_handler, void *p_context) |
| Type of function for passing events from the timer module to the scheduler. | |
Enumerations |
Functions | |
| uint32_t | app_timer_init (app_timer_evt_schedule_func_t evt_schedule_func) |
| Function for initializing the timer module. More... | |
| uint32_t | app_timer_create (app_timer_id_t const *p_timer_id, app_timer_mode_t mode, app_timer_timeout_handler_t timeout_handler) |
| Function for creating a timer instance. More... | |
| uint32_t | app_timer_start (app_timer_id_t timer_id, uint32_t timeout_ticks, void *p_context) |
| Function for starting a timer. More... | |
| uint32_t | app_timer_stop (app_timer_id_t timer_id) |
| Function for stopping the specified timer. More... | |
| uint32_t | app_timer_stop_all (void) |
| Function for stopping all running timers. More... | |
| uint32_t | app_timer_cnt_get (uint32_t *p_ticks) |
| Function for returning the current value of the RTC1 counter. More... | |
| uint32_t | app_timer_cnt_diff_compute (uint32_t ticks_to, uint32_t ticks_from, uint32_t *p_ticks_diff) |
| Function for computing the difference between two RTC1 counter values. More... | |