pndevmapperd: add basic charge control
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 20 Jun 2011 20:23:08 +0000 (23:23 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 20 Jun 2011 20:23:08 +0000 (23:23 +0300)
commita403c3b56c8f2b2f3b3b82806416170cbd96efb4
treeab307b2aede2d564f1337975009266b9f549b8ca
parentf46578471aec39b3587251962ebf0b6284f16cfa
pndevmapperd: add basic charge control

Battery monitor thread now will also do charger control using
the new on/off switch provided by kernel:
- turn on charging when capacity goes below certain configured threshold
- turn it off when it reaches configured capacity AND charge current
  goes below configured threshold.

Using initial threshold from David Goldsmith.
apps/pndevmapperd.c
deployment/etc/pandora/conf/eventmap
include/pnd_device.h
lib/pnd_device.c