diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2015-01-12 12:02:24 +0100 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2015-01-12 12:02:24 +0100 |
commit | 9ffd9327e339ee9028654000497525b62e826652 (patch) | |
tree | 2ec951353c3d5b7c927b97a448a55e8d7e9ae521 /firmware/target/arm/ipod/backlight-target.h | |
parent | bbd7d1dba39ab1a89b4cc0c18352e35349e66faa (diff) | |
download | rockbox-9ffd9327e339ee9028654000497525b62e826652.tar.gz rockbox-9ffd9327e339ee9028654000497525b62e826652.zip |
Fix red/yellow
Change-Id: Ie01251af2cd843979b5fdefcfa541ba377d13bd7
Diffstat (limited to 'firmware/target/arm/ipod/backlight-target.h')
-rw-r--r-- | firmware/target/arm/ipod/backlight-target.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/firmware/target/arm/ipod/backlight-target.h b/firmware/target/arm/ipod/backlight-target.h index fef7ee8ce0..299a1cb6e7 100644 --- a/firmware/target/arm/ipod/backlight-target.h +++ b/firmware/target/arm/ipod/backlight-target.h | |||
@@ -39,11 +39,11 @@ void lcd_awake(void); | |||
39 | #define backlight_hw_off() do { _backlight_led_off(); \ | 39 | #define backlight_hw_off() do { _backlight_led_off(); \ |
40 | _backlight_hw_enable(false); } while(0) | 40 | _backlight_hw_enable(false); } while(0) |
41 | #else /* !BOOTLOADER */ | 41 | #else /* !BOOTLOADER */ |
42 | #define backlight_hw_on_isr() _backlight_led_on() | 42 | #define _backlight_on_isr() _backlight_led_on() |
43 | #define backlight_hw_off_isr() _backlight_led_off() | 43 | #define _backlight_off_isr() _backlight_led_off() |
44 | #define backlight_hw_on_normal() do { _backlight_hw_enable(true); \ | 44 | #define _backlight_on_normal() do { _backlight_hw_enable(true); \ |
45 | _backlight_led_on(); } while(0) | 45 | _backlight_led_on(); } while(0) |
46 | #define backlight_hw_off_normal() do { _backlight_led_off(); \ | 46 | #define _backlight_off_normal() do { _backlight_led_off(); \ |
47 | _backlight_hw_enable(false); } while(0) | 47 | _backlight_hw_enable(false); } while(0) |
48 | #define _BACKLIGHT_FADE_ENABLE | 48 | #define _BACKLIGHT_FADE_ENABLE |
49 | #endif /* !BOOTLOADER */ | 49 | #endif /* !BOOTLOADER */ |
@@ -58,17 +58,14 @@ void backlight_hw_brightness(int val); | |||
58 | #elif defined(IPOD_MINI) || defined(IPOD_MINI2G) | 58 | #elif defined(IPOD_MINI) || defined(IPOD_MINI2G) |
59 | 59 | ||
60 | #define backlight_hw_init() true | 60 | #define backlight_hw_init() true |
61 | void _backlight_hw_on(void); | 61 | void backlight_hw_on(void); |
62 | void _backlight_hw_off(void); | 62 | void backlight_hw_off(void); |
63 | 63 | ||
64 | #ifdef BOOTLOADER | 64 | #ifndef BOOTLOADER |
65 | #define backlight_hw_on() _backlight_hw_on() | 65 | #define _backlight_on_isr() backlight_hw_on() |
66 | #define backlight_hw_off() _backlight_hw_off() | 66 | #define _backlight_off_isr() backlight_hw_off() |
67 | #else | 67 | #define _backlight_on_normal() backlight_hw_on() |
68 | #define backlight_hw_on_isr() _backlight_hw_on() | 68 | #define _backlight_off_normal() backlight_hw_off() |
69 | #define backlight_hw_off_isr() _backlight_hw_off() | ||
70 | #define backlight_hw_on_normal() _backlight_hw_on() | ||
71 | #define backlight_hw_off_normal() _backlight_hw_off() | ||
72 | #endif | 69 | #endif |
73 | 70 | ||
74 | #elif defined(IPOD_1G2G) || defined(IPOD_3G) | 71 | #elif defined(IPOD_1G2G) || defined(IPOD_3G) |