From ef12b3b5c678e4fa44d60061b0c1bc312e589ba1 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 12 Nov 2007 18:49:53 +0000 Subject: Hardware controlled backlight brightness for iPod Video and Nano, retaining the software PWM fade in/ fade out. * Backlight handling cleanup, getting rid of one layer of 'lowlevelness'. * Use atomic GPIO bit manipulation for PP502x backlight handling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15599 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/sh/archos/ondio/backlight-target.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/target/sh/archos/ondio') diff --git a/firmware/target/sh/archos/ondio/backlight-target.h b/firmware/target/sh/archos/ondio/backlight-target.h index 9be66bd6a0..94d5eb6f2f 100644 --- a/firmware/target/sh/archos/ondio/backlight-target.h +++ b/firmware/target/sh/archos/ondio/backlight-target.h @@ -25,7 +25,7 @@ #ifdef HAVE_BACKLIGHT /* A stock Ondio has no backlight, it needs a hardware mod. */ -static inline bool __backlight_init(void) +static inline bool _backlight_init(void) { PACR1 &= ~0x3000; /* Set PA14 (backlight control) to GPIO */ or_b(0x40, &PADRH); /* drive it high */ @@ -33,12 +33,12 @@ static inline bool __backlight_init(void) return true; } -static inline void __backlight_on(void) +static inline void _backlight_on(void) { or_b(0x40, &PADRH); /* drive it high */ } -static inline void __backlight_off(void) +static inline void _backlight_off(void) { and_b(~0x40, &PADRH); /* drive it low */ } -- cgit v1.2.3