#include <compiler.h>
#include <cfg/os.h>
#include <stdlib.h>
#include <string.h>
#include <sys/heap.h>
#include <sys/event.h>
#include <sys/timer.h>
#include <sys/atom.h>
#include <dev/board.h>
#include <dev/gpio.h>
#include <sys/nutdebug.h>
#include <cfg/pca9555.h>
#include <dev/keys.h>
Go to the source code of this file.
Data Structures | |
struct | KEYEventT |
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 IOXP_PORT0 0x80 |
#define KPRINTF | ( | args, | |
... | |||
) |
Definition at line 79 of file keys.c.
Referenced by NutRegisterKey(), and sys_key().