|
linus: firmware/drivers button.c,1.67,1.68: msg#00177systems.archos.rockbox.cvs
Update of /cvsroot/rockbox/firmware/drivers In directory labb:/tmp/cvs-serv16570/firmware/drivers Modified Files: button.c Log Message: button_status() no longer calls button_read(), since it isn't interrupt safe Index: button.c =================================================================== RCS file: /cvsroot/rockbox/firmware/drivers/button.c,v retrieving revision 1.67 retrieving revision 1.68 diff -u -d -r1.67 -r1.68 --- button.c 23 Jan 2005 00:27:21 -0000 1.67 +++ button.c 27 Jan 2005 11:49:29 -0000 1.68 @@ -36,8 +36,8 @@ struct event_queue button_queue; -static int lastbtn; /* Last valid button status */ -static int last_read; /* Last button status, for debouncing/filtering */ +static long lastbtn; /* Last valid button status */ +static long last_read; /* Last button status, for debouncing/filtering */ #ifdef HAVE_LCD_BITMAP static bool flipped; /* buttons can be flipped to match the LCD flip */ #endif @@ -509,7 +509,7 @@ int button_status(void) { - return button_read(); + return last_btn; } void button_clear_queue(void) _______________________________________________ http://cool.haxx.se/mailman/listinfo/rockbox-cvs |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | linus: firmware/drivers lcd-h100.c,1.4,1.5: 00177, cvs |
|---|---|
| Next by Date: | linus: firmware/export adc.h,1.6,1.7: 00177, cvs |
| Previous by Thread: | linus: firmware/drivers lcd-h100.c,1.4,1.5i: 00177, cvs |
| Next by Thread: | linus: firmware/export adc.h,1.6,1.7: 00177, cvs |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |