X-Git-Url: http://git.kpe.io/?p=avr_bc100.git;a=blobdiff_plain;f=BaseTinyFirmware%2FIAR%2Fbattery.h;fp=BaseTinyFirmware%2FIAR%2Fbattery.h;h=6b26f590cac6632619505317a9706edc8ccb1ab4;hp=1fa428a20682023f2d3a2357716adac43995c6f9;hb=65612c4c7df34cdae10f9427ace6fd9e9e430d05;hpb=89173ec9cd6f33843bf27c45be0f2f9be3f5f0ce diff --git a/BaseTinyFirmware/IAR/battery.h b/BaseTinyFirmware/IAR/battery.h index 1fa428a..6b26f59 100644 --- a/BaseTinyFirmware/IAR/battery.h +++ b/BaseTinyFirmware/IAR/battery.h @@ -49,6 +49,19 @@ //****************************************************************************** // 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. @@ -57,6 +70,7 @@ //! Default minimum current to stop charge, in mA. #define DEF_BAT_CURRENT_MIN 0 +#endif /* EASYPACK550 */ //******************************************************************************