From eea149bd1399e749a6dae8b3a6fe5ff076ead985 Mon Sep 17 00:00:00 2001 From: Robert Keevil Date: Mon, 13 Jul 2009 21:09:39 +0000 Subject: FS#10436 - add the Sansa View to the build system. The bootloader builds but doesn't do anything useful yet. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21848 a1c6a512-1295-4272-9138-f99709370657 --- .../target/arm/sandisk/sansa-view/backlight-view.c | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 firmware/target/arm/sandisk/sansa-view/backlight-view.c (limited to 'firmware/target/arm/sandisk/sansa-view/backlight-view.c') diff --git a/firmware/target/arm/sandisk/sansa-view/backlight-view.c b/firmware/target/arm/sandisk/sansa-view/backlight-view.c new file mode 100644 index 0000000000..20932c8607 --- /dev/null +++ b/firmware/target/arm/sandisk/sansa-view/backlight-view.c @@ -0,0 +1,50 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2009 by Robert Keevil + * + * 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. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ +#include "config.h" +#include "backlight-target.h" +#include "system.h" +#include "lcd.h" +#include "backlight.h" + +void _backlight_set_brightness(int brightness) +{ + (void)brightness; +} + +void _backlight_off(void) +{ + GPIO_SET_BITWISE(GPIOD_ENABLE, 1<<8); +} + +void _backlight_on(void) +{ + GPIO_SET_BITWISE(GPIOD_ENABLE, 1); +} + +void _buttonlight_on(void) +{ + GPIO_CLEAR_BITWISE(GPIOA_ENABLE, 0x2); +} + +void _buttonlight_off(void) +{ + GPIO_SET_BITWISE(GPIOA_ENABLE, 0x2); +} -- cgit v1.2.3