2007-07-27 12:05:54 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2002 by Linus Nielsen Feltzing
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2007-07-27 12:05:54 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
#include "config.h"
|
|
|
|
#include "system.h"
|
|
|
|
#include "lcd.h"
|
2008-07-16 11:02:14 +00:00
|
|
|
#include "backlight.h"
|
|
|
|
#include "backlight-target.h"
|
2007-07-27 12:05:54 +00:00
|
|
|
|
2007-11-12 18:49:53 +00:00
|
|
|
void _backlight_on(void)
|
2007-07-27 12:05:54 +00:00
|
|
|
{
|
2008-04-04 17:33:39 +00:00
|
|
|
LCD1_CONTROL |= 0x02;
|
2007-07-27 12:05:54 +00:00
|
|
|
lcd_set_backlight_inversion(true);
|
|
|
|
}
|
|
|
|
|
2007-11-12 18:49:53 +00:00
|
|
|
void _backlight_off(void)
|
2007-07-27 12:05:54 +00:00
|
|
|
{
|
2008-04-04 17:33:39 +00:00
|
|
|
LCD1_CONTROL &= ~0x02;
|
2007-07-27 12:05:54 +00:00
|
|
|
lcd_set_backlight_inversion(false);
|
|
|
|
}
|