X-Git-Url: http://git.kpe.io/?p=avr_bc100.git;a=blobdiff_plain;f=BaseTinyFirmware%2FGCC%2Fbattery.h;fp=BaseTinyFirmware%2FGCC%2Fbattery.h;h=2ad077003d953ea3dc728556ceb23f118009e123;hp=bb76eaf922eb8036c28be5a185fb46068685f937;hb=65612c4c7df34cdae10f9427ace6fd9e9e430d05;hpb=89173ec9cd6f33843bf27c45be0f2f9be3f5f0ce diff --git a/BaseTinyFirmware/GCC/battery.h b/BaseTinyFirmware/GCC/battery.h index bb76eaf..2ad0770 100644 --- a/BaseTinyFirmware/GCC/battery.h +++ b/BaseTinyFirmware/GCC/battery.h @@ -51,6 +51,20 @@ //****************************************************************************** // RID-less charging (for BatteryStatusRefresh()) //****************************************************************************** + +#ifdef EASYPACK550 + +#warning "using EasyPack 66590 711 099 (550mAh) settings - mthomas, no warranty!" +// RID not connected +#define ALLOW_NO_RID //!< Use default battery data if no matching entry found. +#define DEF_BAT_CAPACITY 550 //!< Default battery capacity, in mAh. +#define DEF_BAT_CURRENT_MAX 260 //!< Default maximum charge current, in mA. +#define DEF_BAT_TIME_MAX (5*60) //!< Default maximum charge time, in minutes. +//! Default minimum current to stop charge, in mA. +#define DEF_BAT_CURRENT_MIN 10 + +#else + //#define ALLOW_NO_RID //!< Use default battery data if no matching entry found. #define DEF_BAT_CAPACITY 0 //!< Default battery capacity, in mAh. @@ -59,6 +73,7 @@ //! Default minimum current to stop charge, in mA. #define DEF_BAT_CURRENT_MIN 0 +#endif /* EASYPACK550 */ //******************************************************************************