From 603a9c7c7ded195de7af15a35d10f5961f2e88f1 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Fri, 31 Oct 2008 22:02:41 +0000 Subject: Clip: add backlight and buttonlight code Revive lcd_enable() as well, and use it in _backlight_on/off() Don't update the lcd framebuffer if the display is off git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18952 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/sansa-clip/backlight-target.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'firmware/target/arm/as3525/sansa-clip/backlight-target.h') diff --git a/firmware/target/arm/as3525/sansa-clip/backlight-target.h b/firmware/target/arm/as3525/sansa-clip/backlight-target.h index 9533d0a6b5..5a6ae34728 100644 --- a/firmware/target/arm/as3525/sansa-clip/backlight-target.h +++ b/firmware/target/arm/as3525/sansa-clip/backlight-target.h @@ -7,7 +7,7 @@ * \/ \/ \/ \/ \/ * $Id$ * - * Copyright (C) 2008 ?? + * Copyright © 2008 Rafaël Carré * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -21,17 +21,23 @@ #ifndef BACKLIGHT_TARGET_H #define BACKLIGHT_TARGET_H -static inline bool _backlight_init(void) -{ - return true; -} +#include "stdbool.h" +#include "lcd.h" +#include "backlight.h" + +#define _backlight_init() true static inline void _backlight_on(void) { + lcd_enable(true); } static inline void _backlight_off(void) { + lcd_enable(false); } +void _buttonlight_on(void); +void _buttonlight_off(void); + #endif -- cgit v1.2.3