|
ButterflyMP3
|
AVR Butterfly button handling routines. More...
#include <avr/io.h>#include <avr/interrupt.h>#include <inttypes.h>#include "main.h"#include "types.h"#include "button.h"#include "timer0.h"#include "vs1001.h"#include "mmc.h"#include "uart.h"
Go to the source code of this file.
Functions | |
| void | ButtonTimer (void) |
| void | Button_Init (void) |
| Button_Init. | |
| void | PinChangeInterrupt (void) |
| PinChangeInterrupt. | |
| char | getkey (void) |
| getkey | |
Variables | |
| volatile uint8_t | gPowerSaveTimer |
| volatile uint16 | gPlayTimeSeconds |
| # of seconds current file has been playing. | |
| volatile uint8 | gMode |
| mode of player, idle, playing, off, etc | |
| volatile uint16 | gButtonTimeout = 0 |
| volatile uint8 | gButtonLongTimeout = 0 |
| volatile uint8 | KEY = 0 |
| volatile uint8 | KEY_VALID = 0 |
| volatile uint8 | KEY_SHIFT = 0 |
| int | long_timeout_count = 0 |
AVR Butterfly button handling routines.
Compiler....: AVR-GCC 3.3.1; avr-libc 1.0
Revisions...: 1.2
YYYYMMDD - VER. - COMMENT - SIGN.
20030116 - 1.0 - Created - KS 20031009 port to avr-gcc/avr-libc - M.Thomas 20041105 - 1.2 Altered for Butterfly MP3 use - N.Lott
Definition in file button.c.
| void Button_Init | ( | void | ) |
| void ButtonTimer | ( | void | ) |
| char getkey | ( | void | ) |
getkey
Get the valid key
The valid key
Definition at line 228 of file button.c.
References FALSE, gButtonTimeout, KEY, KEY_NULL, and KEY_VALID.
Referenced by handle_interface(), and Power_off().
| void PinChangeInterrupt | ( | void | ) |
| volatile uint8 gButtonLongTimeout = 0 |
| volatile uint16 gButtonTimeout = 0 |
Definition at line 42 of file button.c.
Referenced by getkey(), mainTimer(), and PinChangeInterrupt().
mode of player, idle, playing, off, etc
Definition at line 75 of file main.c.
Referenced by handle_interface(), handle_mmc(), LEDMatrix_timer(), main(), mainTimer(), play_track_number(), restore_player(), save_player_state(), streaming(), and update_LCD().
| volatile uint16 gPlayTimeSeconds |
# of seconds current file has been playing.
Definition at line 92 of file main.c.
Referenced by cue_file(), mainTimer(), restore_player(), save_player_state(), and update_LCD().
| volatile uint8_t gPowerSaveTimer |
Definition at line 55 of file power.h.
Referenced by handle_interface(), handle_mmc(), main(), mainTimer(), and Power_off().
Definition at line 47 of file button.c.
Referenced by getkey(), and PinChangeInterrupt().
Definition at line 48 of file button.c.
Referenced by getkey(), and PinChangeInterrupt().
| int long_timeout_count = 0 |