![]() |
EM-ODP 4.4.0
Event Machine on ODP
|
#include <event_machine/api/event_machine_config.h>#include <event_machine/api/event_machine_types.h>

Go to the source code of this file.
Macros | |
| #define | PRI_TMR PRI_HDL |
| #define | EM_TIMER_FLAG_DEFAULT EM_TIMER_FLAG_NONE |
| #define | PRI_TMO "p" |
| #define | EM_TMO_FLAG_DEFAULT EM_TMO_FLAG_ONESHOT |
| #define | EM_TIMER_CLKSRC_DEFAULT EM_TIMER_CLKSRC_0 |
| #define | EM_TIMER_CLKSRC_CPU EM_TIMER_CLKSRC_0 |
| #define | EM_TIMER_CLKSRC_EXT EM_TIMER_CLKSRC_2 |
| #define | EM_TIMER_UNDEF EM_STATIC_CAST(em_timer_t, EM_HDL_UNDEF) |
| #define | EM_TMO_UNDEF EM_STATIC_CAST(em_tmo_t, EM_UNDEF_PTR) |
| #define | EM_TIMER_NAME_LEN 16 |
Typedefs | |
| typedef enum em_timer_flag_t | em_timer_flag_t |
| typedef struct em_timer_timeout_t * | em_tmo_t |
| typedef enum em_tmo_flag_t | em_tmo_flag_t |
| typedef enum em_timer_clksrc_t | em_timer_clksrc_t |
Enumerations | |
| enum | em_timer_flag_t { EM_TIMER_FLAG_NONE = 0 , EM_TIMER_FLAG_PRIVATE = 1 , EM_TIMER_FLAG_RING = 2 , EM_TIMER_FLAG_RING_FREQ = 4 } |
| enum | em_tmo_flag_t { EM_TMO_FLAG_ONESHOT = 1 , EM_TMO_FLAG_PERIODIC = 2 , EM_TMO_FLAG_NOSKIP = 4 } |
| enum | em_timer_clksrc_t { EM_TIMER_CLKSRC_0 , EM_TIMER_CLKSRC_1 , EM_TIMER_CLKSRC_2 , EM_TIMER_CLKSRC_3 , EM_TIMER_CLKSRC_4 , EM_TIMER_CLKSRC_5 , EM_TIMER_NUM_CLKSRC } |
Functions | |
| EM_HANDLE_T (em_timer_t) | |
EM ODP specific timer definitions
Definition in file event_machine_timer_hw_specific.h.
| #define EM_TIMER_CLKSRC_CPU EM_TIMER_CLKSRC_0 |
Backwards compatible macro.
Definition at line 116 of file event_machine_timer_hw_specific.h.
| #define EM_TIMER_CLKSRC_DEFAULT EM_TIMER_CLKSRC_0 |
portable default clock
Definition at line 111 of file event_machine_timer_hw_specific.h.
| #define EM_TIMER_CLKSRC_EXT EM_TIMER_CLKSRC_2 |
Backwards compatible macro.
Definition at line 120 of file event_machine_timer_hw_specific.h.
| #define EM_TIMER_FLAG_DEFAULT EM_TIMER_FLAG_NONE |
Definition at line 70 of file event_machine_timer_hw_specific.h.
| #define EM_TIMER_NAME_LEN 16 |
Definition at line 135 of file event_machine_timer_hw_specific.h.
| #define EM_TIMER_UNDEF EM_STATIC_CAST(em_timer_t, EM_HDL_UNDEF) |
EM_TIMER_UNDEF value must be defined here and should normally be 0
Definition at line 125 of file event_machine_timer_hw_specific.h.
| #define EM_TMO_FLAG_DEFAULT EM_TMO_FLAG_ONESHOT |
default timeout is oneshot
Definition at line 91 of file event_machine_timer_hw_specific.h.
| #define EM_TMO_UNDEF EM_STATIC_CAST(em_tmo_t, EM_UNDEF_PTR) |
EM_TMO_UNDEF value must be defined here and should normally be 0
Definition at line 130 of file event_machine_timer_hw_specific.h.
| #define PRI_TMO "p" |
em_tmo_t printf format
Definition at line 77 of file event_machine_timer_hw_specific.h.
| #define PRI_TMR PRI_HDL |
em_timer_t printf format
Definition at line 52 of file event_machine_timer_hw_specific.h.
| typedef struct em_timer_timeout_t* em_tmo_t |
em_tmo_t (timeout handle) needs to be defined by the EM implementation
Definition at line 75 of file event_machine_timer_hw_specific.h.
| enum em_timer_clksrc_t |
Definition at line 100 of file event_machine_timer_hw_specific.h.
| enum em_timer_flag_t |
Definition at line 60 of file event_machine_timer_hw_specific.h.
| enum em_tmo_flag_t |
| Enumerator | |
|---|---|
| EM_TMO_FLAG_ONESHOT | to select one-shot |
| EM_TMO_FLAG_PERIODIC | to select periodic |
| EM_TMO_FLAG_NOSKIP | see periodic ack |
Definition at line 85 of file event_machine_timer_hw_specific.h.
| EM_HANDLE_T | ( | em_timer_t | ) |
em_timer_t (timer handle) needs to be defined by the EM implementation.