EM-ODP  3.7.0
Event Machine on ODP
event_machine_timer_hw_specific.h File Reference
This graph shows which files directly or indirectly include this file:

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_tem_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 }
 
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)
 

Detailed Description

EM ODP specific timer definitions

Definition in file event_machine_timer_hw_specific.h.

Macro Definition Documentation

◆ EM_TIMER_CLKSRC_CPU

#define EM_TIMER_CLKSRC_CPU   EM_TIMER_CLKSRC_0

Backwards compatible macro.

Deprecated:
Temporary backwards compatibility, will be removed later

Definition at line 111 of file event_machine_timer_hw_specific.h.

◆ EM_TIMER_CLKSRC_DEFAULT

#define EM_TIMER_CLKSRC_DEFAULT   EM_TIMER_CLKSRC_0

portable default clock

Examples
timer_test.c, and timer_test_periodic.c.

Definition at line 106 of file event_machine_timer_hw_specific.h.

◆ EM_TIMER_CLKSRC_EXT

#define EM_TIMER_CLKSRC_EXT   EM_TIMER_CLKSRC_2

Backwards compatible macro.

Deprecated:
Temporary backwards compatibility, will be removed later

Definition at line 115 of file event_machine_timer_hw_specific.h.

◆ EM_TIMER_UNDEF

#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

Examples
timer_hello.c, timer_test.c, timer_test_periodic.c, and timer_test_ring.c.

Definition at line 120 of file event_machine_timer_hw_specific.h.

◆ EM_TMO_FLAG_DEFAULT

#define EM_TMO_FLAG_DEFAULT   EM_TMO_FLAG_ONESHOT

default timeout is oneshot

Definition at line 86 of file event_machine_timer_hw_specific.h.

◆ EM_TMO_UNDEF

#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

Examples
timer_hello.c, timer_test.c, timer_test_periodic.c, and timer_test_ring.c.

Definition at line 125 of file event_machine_timer_hw_specific.h.

◆ PRI_TMO

#define PRI_TMO   "p"

em_tmo_t printf format

Definition at line 72 of file event_machine_timer_hw_specific.h.

◆ PRI_TMR

#define PRI_TMR   PRI_HDL

em_timer_t printf format

Examples
timer_hello.c, timer_test.c, timer_test_periodic.c, and timer_test_ring.c.

Definition at line 49 of file event_machine_timer_hw_specific.h.

Function Documentation

◆ EM_HANDLE_T()

EM_HANDLE_T ( em_timer_t  )

em_timer_t (timer handle) needs to be defined by the EM implementation.