#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) |
Definition in file time.c.