keys.c File Reference

Go to the source code of this file.

Defines

#define IOXP_PORT0   0x80
#define KPRINTF(args,...)

Functions

int NutGetKeyState (HANDLE keyh)
 reads actual state of a key
uint32_t NutGetKeyTime (HANDLE keyh)
 reads the time in ms of how long the key is or was pressed
void KeyTimerCb (HANDLE timer, void *arg)
 Key-Timer callback handler.
void sys_key (void *arg)
 Key-Thread.
int InitKEY (KEYEventT *key)
 Internal functionn to setup a GPIO port for reading a connected key.
int NutAssignKeyEvt (HANDLE *keyhp, HANDLE *event)
int NutAssignKeyFkt (HANDLE *keyhp, void(*callback)(void))
int NutRegisterKey (HANDLE *keyhp, int bank, int pin, int fx, uint32_t fxt)
 register a key and describe its function

Variables

HANDLE key_tmr = NULL
HANDLE key_evt = NULL

Define Documentation

#define IOXP_PORT0   0x80

Definition at line 71 of file keys.c.

#define KPRINTF ( args,
...   ) 

Definition at line 79 of file keys.c.

Referenced by NutRegisterKey(), and sys_key().


© 2000-2010 by contributors - visit http://www.ethernut.de/