From 045b6e48cd5f0551012f867b5fa06ae3da82daab Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Thu, 12 Mar 2009 22:49:36 +0000 Subject: Move powermgmt-target.h up one directory (from as3525/sansa-clip to as3525) in preparation to enable charging for other ams sansa targets. AMS sansas. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20314 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/powermgmt-target.h | 42 ++++++++++++++++++++++ .../arm/as3525/sansa-clip/powermgmt-target.h | 42 ---------------------- 2 files changed, 42 insertions(+), 42 deletions(-) create mode 100644 firmware/target/arm/as3525/powermgmt-target.h delete mode 100644 firmware/target/arm/as3525/sansa-clip/powermgmt-target.h diff --git a/firmware/target/arm/as3525/powermgmt-target.h b/firmware/target/arm/as3525/powermgmt-target.h new file mode 100644 index 0000000..691d134 --- /dev/null +++ b/firmware/target/arm/as3525/powermgmt-target.h @@ -0,0 +1,42 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2009 by Michael Sevakis + * Copyright (C) 2008 by Bertrik Sikken + * + * 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. + * + ****************************************************************************/ +#ifndef POWERMGMT_TARGET_H +#define POWERMGMT_TARGET_H + +/* Check if topped-off and monitor voltage while plugged. */ +#define BATT_FULL_VOLTAGE 4160 +#define BATT_VAUTO_RECHARGE 4100 +#define BATT_CHG_V CHG_V_4_20V +#define BATT_CHG_I CHG_I_100MA +#define CHARGER_TOTAL_TIMER (6*3600*2) /* about 1.5 * capacity / current */ +#define ADC_BATTERY ADC_BVDD + +void powermgmt_init_target(void); +void charging_algorithm_step(void); +void charging_algorithm_close(void); + +/* We want to be able to reset the averaging filter */ +#define HAVE_RESET_BATTERY_FILTER + +#define BATT_AVE_SAMPLES 32 + +#endif /* POWERMGMT_TARGET_H */ diff --git a/firmware/target/arm/as3525/sansa-clip/powermgmt-target.h b/firmware/target/arm/as3525/sansa-clip/powermgmt-target.h deleted file mode 100644 index 691d134..0000000 --- a/firmware/target/arm/as3525/sansa-clip/powermgmt-target.h +++ /dev/null @@ -1,42 +0,0 @@ -/*************************************************************************** - * __________ __ ___. - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ - * \/ \/ \/ \/ \/ - * $Id$ - * - * Copyright (C) 2009 by Michael Sevakis - * Copyright (C) 2008 by Bertrik Sikken - * - * 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. - * - ****************************************************************************/ -#ifndef POWERMGMT_TARGET_H -#define POWERMGMT_TARGET_H - -/* Check if topped-off and monitor voltage while plugged. */ -#define BATT_FULL_VOLTAGE 4160 -#define BATT_VAUTO_RECHARGE 4100 -#define BATT_CHG_V CHG_V_4_20V -#define BATT_CHG_I CHG_I_100MA -#define CHARGER_TOTAL_TIMER (6*3600*2) /* about 1.5 * capacity / current */ -#define ADC_BATTERY ADC_BVDD - -void powermgmt_init_target(void); -void charging_algorithm_step(void); -void charging_algorithm_close(void); - -/* We want to be able to reset the averaging filter */ -#define HAVE_RESET_BATTERY_FILTER - -#define BATT_AVE_SAMPLES 32 - -#endif /* POWERMGMT_TARGET_H */ -- cgit v1.1