Main Page   Modules   Data Structures   File List   Globals  

time.c File Reference

Time handling functions. More...

#include <avr/signal.h>
#include <stddef.h>
#include <avr/interrupt.h>
#include "otos_cfg.h"
#include "otos_def.h"
#include "types.h"
#include "task.h"
#include "time.h"

Go to the source code of this file.

Defines

#define OTOS_TIMER_IRQ   SIG_OUTPUT_COMPARE0

Functions

uint32_t otosGetTicks (void)
 Get the system tick counter.

void otosSleep (uint32_t ticks)
 Block running task for specified number of ticks.

void otosDelay (uint32_t ticks)
 Delay running task for specified number of ticks (wait actively, don't block task!).

void otosSetTickHook (void(*pFunc)(void))
 Set tick hook function.

uint32_t otosGetTickDiff (uint32_t earlier)
 Calculate time difference between an earlier time and now.

 SIGNAL (OTOS_TIMER_IRQ)
 The system timer tick handler.


Variables

uint32_t volatile g_ticks
void(* g_pTickHook )(void)


Detailed Description

Time handling functions.

Definition in file time.c.


Generated on Sat Jan 25 18:41:43 2003 for otOS by doxygen1.3-rc2