battery driver basic setup
get/set config
basic timer setup
read_adc
kill the timer as to not kill the rpi
Merge branch 'battery' of https://github.com/Mark-Jansen/rpi into battery
fix inter-module dependencies.
add trace macro
read adc from a work queue instead of from the timer callback,
because the timer callback runs in an irq context, which means we cannot use usleep & i2c functions
script for building module dependencies
with this, modules can be loaded with modprobe and will auto-load dependencies
battery has a max_value now, that will be used to scale adc output to a percentage.
default is 0 (which will translate to the maximum value the adc can report).
adc has a function (and ioctl) to report max value per resolution
add a simple File class, that wraps linux syscalls like open, close, read, write and ioctl (RAII)
Merge branch 'master' into battery