If you want to read it directly from the hardware, ADC #3 of retu chip gives this information.
It gives value of 0 when no charger is connected, and values like 0xff or
higher when a charger is connected.
This value can be read like this:
f=open("/dev/retu", O_RDWR);
adc3= ioctl(f,RETU_IOCH_ADC_READ, 3);
--
Matan Ziv-Av.
_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers
