Commit mthomas changes to GCC and port those changes to IAR
[avr_bc100.git] / BaseTinyFirmware / IAR / battery.h
index 1fa428a20682023f2d3a2357716adac43995c6f9..6b26f590cac6632619505317a9706edc8ccb1ab4 100644 (file)
 //******************************************************************************\r
 // RID-less charging (for BatteryStatusRefresh())\r
 //******************************************************************************\r
+#ifdef EASYPACK550\r
+\r
+#warning "using EasyPack 66590 711 099 (550mAh) settings - mthomas, no warranty!"\r
+// RID not connected\r
+#define ALLOW_NO_RID                //!< Use default battery data if no matching entry found.\r
+#define DEF_BAT_CAPACITY       550  //!< Default battery capacity, in mAh.\r
+#define DEF_BAT_CURRENT_MAX    260  //!< Default maximum charge current, in mA.\r
+#define DEF_BAT_TIME_MAX    (5*60)  //!< Default maximum charge time, in minutes.\r
+//! Default minimum current to stop charge, in mA.\r
+#define DEF_BAT_CURRENT_MIN     10\r
+\r
+#else\r
+\r
 //#define ALLOW_NO_RID  //!< Use default battery data if no matching entry found.\r
 \r
 #define DEF_BAT_CAPACITY               0  //!< Default battery capacity, in mAh.\r
@@ -57,6 +70,7 @@
 //! Default minimum current to stop charge, in mA.\r
 #define DEF_BAT_CURRENT_MIN    0\r
 \r
+#endif /* EASYPACK550 */\r
 \r
 \r
 //******************************************************************************\r