timer.h File Reference

#include <routix/system.h>
#include <routix/task.h>

Go to the source code of this file.

Classes

Defines

Typedefs

Functions

Variables


Define Documentation

#define SECURE_TIMER_OPER
 

Definition at line 15 of file timer.h.

#define TIMER_DATA  )     ((t)->data)
 

Definition at line 32 of file timer.h.

Referenced by create_timer().

#define TIMER_FUNCTION  )     ((t)->func)
 

Definition at line 31 of file timer.h.

Referenced by actualizar_timers(), and create_timer().

#define TIMER_PROCESS  )     ((t)->process)
 

Definition at line 30 of file timer.h.

Referenced by create_timer(), despertar(), and timer_dump().

#define TIMER_STATE  )     ((t)->state)
 

Definition at line 33 of file timer.h.

#define TIMER_TICKS  )     ((t)->ticks)
 

Definition at line 29 of file timer.h.

Referenced by actualizar_timers(), create_timer(), and insert_timer().

#define TIMER_USEGUNDOS segundos   )     (segundos/10000)
 

Definition at line 43 of file timer.h.

#define USECONDS_TO_TICKS useconds   )     ((useconds)/10000)
 

Definition at line 44 of file timer.h.

Referenced by error(), leer_escribir_new(), motor_on_new(), read_sector_new(), recalibrate_new(), seek_new(), and sys_usleep().


Typedef Documentation

typedef struct timer_t timer_t
 


Function Documentation

void actualizar_timers void   ) 
 

Definition at line 101 of file timer.c.

int clean_timer timer_t timer  )  [inline]
 

Definition at line 305 of file timer.c.

Referenced by actualizar_timers(), leer_escribir_new(), read_sector_block_new(), recalibrate_block_new(), and seek_block_new().

timer_t* create_timer dword  ticks,
task_struct_t proceso,
void(*  func)(struct timer_t *info),
void *  data
[inline]
 

Definition at line 288 of file timer.c.

Referenced by error(), leer_escribir_new(), motor_on_new(), read_sector_new(), recalibrate_new(), seek_new(), and sys_usleep().

void timer_dump void   )  [inline]
 

Solo para debug, imprime en pantalla el listado de timers activos.

Definition at line 326 of file timer.c.

Referenced by main(), and sys_timer_dump().


Variable Documentation

dword jiffies
 

Definition at line 10 of file timer.h.

Referenced by actualizar_timers(), create_timer(), LIST_NEW(), and time_debug().


Generated on Sun May 30 18:38:37 2004 for Routix OS by doxygen 1.3.6