My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Enumerations | Functions
secure_timer.h File Reference
#include <sw_types.h>

Go to the source code of this file.

Macros

#define FREE_RUNNING_CNTR   0
 
#define TICK_TIMER   1
 

Enumerations

enum  timer_mode {
  MODE_FREE_RUNNING, MODE_PERIODIC, MODE_ONESHOT, MODE_FREE_RUNNING,
  MODE_PERIODIC, MODE_ONESHOT
}
 

Functions

void secure_timer_init (u32 timer_base)
 Secure timer initialization. More...
 
void secure_timer_clearirq (u32 timer_base, u32 timer_module_index)
 Clears the interrupt register of the secure timer. More...
 
void secure_timer_disable (u32 timer_base, u32 timer_module_index)
 Enable the Secure timer. More...
 
void secure_timer_enable (u32 timer_base, u32 timer_module_index)
 Disable the secure timer. More...
 
u32 secure_timer_read_mis (u32 timer_base, u32 tim_mod_index)
 Reads the masked interrupt status register of SP804 timer. More...
 
u32 secure_timer_read_ris (u32 timer_base, u32 tim_mod_index)
 Reads the Raw interrupt status register of SP804 timer. More...
 
void secure_set_timer (u32 timer_base, u32 tim_mod_index, u32 mode, u32 usecs)
 Sets the requested timer base value based on the mode. More...
 
u32 secure_read_timer (u32 timer_base, u32 tim_mod_index)
 Reads the timer value of the requested timer base. More...
 
void secure_timer_irq_handler (int irq)
 Handler for secure timer interrupt request. More...
 

Macro Definition Documentation

#define FREE_RUNNING_CNTR   0
#define TICK_TIMER   1

Enumeration Type Documentation

enum timer_mode
Enumerator
MODE_FREE_RUNNING 
MODE_PERIODIC 
MODE_ONESHOT 
MODE_FREE_RUNNING 
MODE_PERIODIC 
MODE_ONESHOT 

Function Documentation

u32 secure_read_timer ( u32  timer_base,
u32  tim_mod_index 
)

Reads the timer value of the requested timer base.

Parameters
timer_base
tim_mod_index
Returns
void secure_set_timer ( u32  timer_base,
u32  tim_mod_index,
u32  mode,
u32  usecs 
)

Sets the requested timer base value based on the mode.

Parameters
timer_base
tim_mod_index
mode
usecs
void secure_timer_clearirq ( u32  timer_base,
u32  timer_module_index 
)

Clears the interrupt register of the secure timer.

Parameters
timer_base
timer_module_index
void secure_timer_disable ( u32  timer_base,
u32  timer_module_index 
)

Enable the Secure timer.

Parameters
timer_base
timer_module_index
void secure_timer_enable ( u32  timer_base,
u32  timer_module_index 
)

Disable the secure timer.

Parameters
timer_base
timer_module_index
void secure_timer_init ( u32  timer_base)

Secure timer initialization.

Parameters
timer_base
void secure_timer_irq_handler ( int  irq)

Handler for secure timer interrupt request.

Parameters
irq
Returns
Parameters
irq
data
u32 secure_timer_read_mis ( u32  timer_base,
u32  tim_mod_index 
)

Reads the masked interrupt status register of SP804 timer.

Parameters
timer_base
tim_mod_index
Returns
u32 secure_timer_read_ris ( u32  timer_base,
u32  tim_mod_index 
)

Reads the Raw interrupt status register of SP804 timer.

Parameters
timer_base
tim_mod_index
Returns