input.h File Reference

input More...

#include <inttypes.h>
#include <avr/io.h>
#include <avr/eeprom.h>
#include <avr/signal.h>
#include "main.h"

Functions

void input_init (void)
 initialises the input
void input_refresh (void)
 refreshes the input


Detailed Description

input

Handles the button events.

12 Octobre 2005
Sven Kreiss


Function Documentation

void input_init void   ) 
 

initialises the input

00030                      {
00031     taste[0] = &menu_main_incr;
00032     taste[1] = &menu_start;
00033     taste[2] = &menu_left;
00034     taste[3] = &menu_up;
00035     taste[4] = &menu_down;
00036     taste[5] = &menu_right;
00037     taste[6] = &voidfunc;
00038     taste[7] = &voidfunc;
00039     taste_long[0] = &switch_off;
00040     taste_long[1] = &voidfunc;
00041     taste_long[2] = &voidfunc;
00042     taste_long[3] = &voidfunc;
00043     taste_long[4] = &voidfunc;
00044     taste_long[5] = &voidfunc;
00045     taste_long[6] = &voidfunc;
00046     taste_long[7] = &voidfunc;
00047 }

void input_refresh void   ) 
 

refreshes the input

this function needs to be called regularly in order to register all button events.

Bug:
With prescaler 7 input_refresh() does not get called often enough.
Todo:
Copy code from tasten_status() directly in here?
00054                         {
00055     tasten_status();
00056 }


Generated on Fri Aug 11 21:47:32 2006 for OpenOsci by  doxygen 1.4.6