/*************************************************************************** * __________ __ ___. * 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 /* NOTE: these values are copied from the Sansa e200v1 */ /* PREFERRED - 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_300MA #define CHARGER_TOTAL_TIMER (4*3600*2) /* 4 hours enough? */ /* On e200 ADC_RTCSUP seems to represent battery voltage better than * ADC_BVDD during charging (ADC_BVDD is way too high) and appears the * same in normal use. */ #define ADC_BATTERY ADC_RTCSUP /* We want to be able to reset the averaging filter */ #define HAVE_RESET_BATTERY_FILTER #define BATT_AVE_SAMPLES 32 #endif /* POWERMGMT_TARGET_H */