Friedrich-Alexander-Universität UnivisSuche FAU-Logo
Techn. Fakultšt Willkommen am Department Informatik FAU-Logo
Logo I4
Lehrstuhl für Informatik 4
GSPiC
 
  Vorlesung
    - UnivIS-Infos
    - Inhalt
    - Folien
 
  Übungen
    - UnivIS-Infos
    - Inhalt
    - Ergänzendes Material
    - Aufgaben
    - libspicboard-Doku
    - FSI-Forum für Fragen
 
  Prüfung
 
  Evaluation
 
  Intern
Department Informatik  >  Informatik 4  >  Lehre  >  SS 2010  >  GSPiC  >  Übungen  >  Doku  >  libspicboard: timer.h File Reference

SPiCboard library (libspicboard, revision 3032) API documentation

Found a bug or something ambiguous? Mail us to get it fixed!

timer.h File Reference

The timer module provides an event interface to the hardware timers. More...

#include <stdint.h>

Go to the source code of this file.

Typedefs

typedef struct ALARM ALARM
 ALARM type.
typedef void(* alarmcallback_t )(void)
 Type for alarm callback functions.

Functions

int8_t sb_timer_cancelAlarm (ALARM *alrm)
 Cancel an alarm.
ALARMsb_timer_setAlarm (alarmcallback_t callback, uint16_t alarmtime, uint16_t cycle)
 Create a new alarm.
int8_t sb_timer_delay (uint16_t waittime)
 waits for a specific number of ms
void sb_timer_delay_abort ()
 Aborts an active sb_timer_delay.


Detailed Description

The timer module provides an event interface to the hardware timers.

Version:
$Rev: 2783 $
The module uses the 16-bit timer 1 of the ATmega32. The timer is dynamically configured as needed by the registered alarms and should always be clocked as slow as possible to keep the interrupt load low. When no alarms are registered, the timer clock is disabled.

Note:
The timer module uses dynamic memory management (malloc/free) for the allocation of the ALARM types.

Interrupts must be enabled for the timer to work.

  Impressum   Datenschutz Stand: 2010-07-02 13:45   MS