summaryrefslogtreecommitdiff
path: root/firmware/target/arm/gigabeat/meg-fx/ata-meg-fx.c
diff options
context:
space:
mode:
authorSteve Gotthardt <gotthardt@rockbox.org>2007-01-07 06:38:57 +0000
committerSteve Gotthardt <gotthardt@rockbox.org>2007-01-07 06:38:57 +0000
commitc07814fce15b8c48d38bcbf0d55b6800d9a91fd2 (patch)
tree3fe95402d3cb181750bc58675acb133c07a236ec /firmware/target/arm/gigabeat/meg-fx/ata-meg-fx.c
parent11cdfc6abe733c3288d3d99bce78983ef91f6964 (diff)
downloadrockbox-c07814fce15b8c48d38bcbf0d55b6800d9a91fd2.tar.gz
rockbox-c07814fce15b8c48d38bcbf0d55b6800d9a91fd2.zip
Revamped the backlight state machine and added buttonlight controls. Go to the Info/debug menu and test out the new modes for buttonlights on the Gigabeat - ON, OFF, Faint, and flicker - flickers on touchpad and disk reads.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11935 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/gigabeat/meg-fx/ata-meg-fx.c')
-rw-r--r--firmware/target/arm/gigabeat/meg-fx/ata-meg-fx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/gigabeat/meg-fx/ata-meg-fx.c b/firmware/target/arm/gigabeat/meg-fx/ata-meg-fx.c
index d098d83de0..5e0fd8429c 100644
--- a/firmware/target/arm/gigabeat/meg-fx/ata-meg-fx.c
+++ b/firmware/target/arm/gigabeat/meg-fx/ata-meg-fx.c
@@ -26,6 +26,7 @@
26#include "pcf50606.h" 26#include "pcf50606.h"
27#include "ata-target.h" 27#include "ata-target.h"
28#include "mmu-meg-fx.h" 28#include "mmu-meg-fx.h"
29#include "backlight-target.h"
29 30
30void ata_reset(void) 31void ata_reset(void)
31{ 32{
@@ -54,6 +55,8 @@ void ata_device_init(void)
54 55
55void copy_read_sectors(unsigned char* buf, int wordcount) 56void copy_read_sectors(unsigned char* buf, int wordcount)
56{ 57{
58 __buttonlight_flicker(DEFAULT_BRIGHTNESS_SETTING);
59
57 /* Unaligned transfer - slow copy */ 60 /* Unaligned transfer - slow copy */
58 if ( (unsigned long)buf & 1) 61 if ( (unsigned long)buf & 1)
59 { /* not 16-bit aligned, copy byte by byte */ 62 { /* not 16-bit aligned, copy byte by byte */