* * $Log$ * *
Definiert in Datei buttons.h.
gehe zum Quellcode dieser Datei
Makrodefinitionen | |
#define | KEYCODE_UP 'U' |
Key code of the UP button. | |
#define | KEYCODE_DOWN 'D' |
Key code of the DOWN button. | |
#define | KEYCODE_SELECT 'S' |
Key code of the SELECT button. | |
Funktionen | |
void | ButtonInit (void) |
Initialize the button interface. | |
char | ButtonRead (u_long tmo) |
Wait until the user pressed a button. |
#define KEYCODE_UP 'U' |
Key code of the UP button.
This code is returned by ButtonRead(), if the user presses the right button.
Definiert in Zeile 54 der Datei buttons.h.
Wird benutzt von ButtonRead(), UserIfMainMenu() und UserIfThread().
#define KEYCODE_DOWN 'D' |
Key code of the DOWN button.
This code is returned by ButtonRead(), if the user presses the left button.
Definiert in Zeile 61 der Datei buttons.h.
Wird benutzt von ButtonRead(), UserIfMainMenu() und UserIfThread().
#define KEYCODE_SELECT 'S' |
Key code of the SELECT button.
This code is returned by ButtonRead(), if the user presses the middle button.
Definiert in Zeile 68 der Datei buttons.h.
Wird benutzt von ButtonRead(), UserIfMainMenu() und UserIfThread().
void ButtonInit | ( | void | ) |
Initialize the button interface.
Configures and starts a continously running timer interrupt, which scans three GPIO lines. A low level on any line indicates, that the related button has been pressed by the user.
The application must call ButtonRead() to read the code of a pressed button.
Definiert in Zeile 336 der Datei buttons.c.
Benutzt BTN_DOWN, BTN_PIO_ID, BTN_PIO_OD_REG, BTN_PIO_PE_REG, BTN_PIO_PUE_REG, BTN_SCAN_FREQ, BTN_SELECT, BTN_TC_CC_REG, BTN_TC_CM_REG, BTN_TC_ID, BTN_TC_ID_REG, BTN_TC_IE_REG, BTN_TC_RC_REG, BTN_TC_S_REG, BTN_UP, ScanTimerInterrupt() und sig_BTN_TC.
char ButtonRead | ( | u_long | tmo | ) |
Wait until the user pressed a button.
This routine will not handle concurrently pressed buttons, but return the button with the highest priority. SELECT has the highest and UP has the lowest priority.
tmo | Maximum number of milliseconds to wait. |
Definiert in Zeile 394 der Datei buttons.c.
Benutzt BTN_DOWN, btn_pressed, btn_que, BTN_SELECT, BTN_UP, KEYCODE_DOWN, KEYCODE_SELECT und KEYCODE_UP.