ISIX-RTOS - small operating system for ARM microcontrollers 1.2
Functions | Variables

irqtimers.c File Reference

#include <prv/irqtimers.h>
#include <isix/irqtimers.h>
#include <isix/memory.h>
#include <prv/list.h>
#include <prv/scheduler.h>
#include <string.h>
Include dependency graph for irqtimers.c:

Go to the source code of this file.

Functions

void isixp_vtimer_init (void)
static void add_vtimer_to_list (vtimer_t *timer)
void isixp_vtimer_handle_time (tick_t jiffies)
vtimer_t * isix_vtimer_create (void(*func)(void *), void *arg)
int isix_vtimer_start (vtimer_t *timer, tick_t timeout)
int isix_vtimer_destroy (vtimer_t *timer)

Variables

static list_entry_t vtimer_list [2]
static list_entry_tp_vtimer_list
static list_entry_tpov_vtimer_list

Function Documentation

static void add_vtimer_to_list ( vtimer_t *  timer) [static]
vtimer_t* isix_vtimer_create ( void(*)(void *)  func,
void *  arg 
)

Create virtual timer called from interrupt context for light events consume much power cyclic tasks

Parameters:
[in]funcFunction to be called in context - cyclic timeout
[in]argFrgument passed to the function
Returns:
NULL if timer create was unsucess, else return vtimer pointer

Definition at line 88 of file irqtimers.c.

References isix_alloc(), and NULL.

Referenced by isix::virtual_timer::virtual_timer().

int isix_vtimer_destroy ( vtimer_t *  timer)
int isix_vtimer_start ( vtimer_t *  timer,
tick_t  timeout 
)
void isixp_vtimer_handle_time ( tick_t  jiffies)
void isixp_vtimer_init ( void  )

Definition at line 25 of file irqtimers.c.

References list_init().

Referenced by isix_init().


Variable Documentation

Definition at line 21 of file irqtimers.c.

Referenced by isixp_vtimer_handle_time().

Definition at line 22 of file irqtimers.c.

Referenced by isixp_vtimer_handle_time().

Definition at line 19 of file irqtimers.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines