2007-09-21 15:51:53 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006 by Linus Nielsen Feltzing
|
|
|
|
*
|
|
|
|
* All files in this archive are subject to the GNU General Public License.
|
|
|
|
* See the file COPYING in the source tree root for full license agreement.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
#include "config.h"
|
|
|
|
#include "cpu.h"
|
|
|
|
#include "system.h"
|
|
|
|
#include "backlight-target.h"
|
|
|
|
#include "backlight.h"
|
|
|
|
#include "lcd.h"
|
|
|
|
#include "power.h"
|
2008-04-11 08:51:27 +00:00
|
|
|
#include "mc13783.h"
|
2007-09-21 15:51:53 +00:00
|
|
|
#include "debug.h"
|
|
|
|
|
2007-11-12 18:49:53 +00:00
|
|
|
bool _backlight_init(void)
|
2007-09-21 15:51:53 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2007-11-12 18:49:53 +00:00
|
|
|
void _backlight_on(void)
|
2007-09-21 15:51:53 +00:00
|
|
|
{
|
2008-04-11 08:51:27 +00:00
|
|
|
/* LEDEN=1 */
|
2008-04-12 16:56:45 +00:00
|
|
|
mc13783_set(MC13783_LED_CONTROL0, MC13783_LEDEN);
|
2007-09-21 15:51:53 +00:00
|
|
|
}
|
|
|
|
|
2007-11-12 18:49:53 +00:00
|
|
|
void _backlight_off(void)
|
2007-09-21 15:51:53 +00:00
|
|
|
{
|
2008-04-11 08:51:27 +00:00
|
|
|
/* LEDEN=0 */
|
2008-04-12 16:56:45 +00:00
|
|
|
mc13783_clear(MC13783_LED_CONTROL0, MC13783_LEDEN);
|
2007-09-21 15:51:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Assumes that the backlight has been initialized */
|
2007-11-12 18:49:53 +00:00
|
|
|
void _backlight_set_brightness(int brightness)
|
2007-09-21 15:51:53 +00:00
|
|
|
{
|
|
|
|
(void)brightness;
|
|
|
|
}
|
|
|
|
|