chg: Don't charge when the overcharge alarm is set

Signed-off-by: Sean Cross <xobs@kosagi.com>
gg: Allow for setting temperature source

Signed-off-by: Sean Cross <xobs@kosagi.com>
cmd-gg: Add in command to change the temperature source

Signed-off-by: Sean Cross <xobs@kosagi.com>
hal: stm32: i2c: Fix slave callback arguments

The slave callback values were never right.  Fix them so that the callback
arguments actually include the number of bytes transferred.

Signed-off-by: Sean Cross <xobs@kosagi.com>
cmd-gpio: Fix build warnings

Signed-off-by: Sean Cross <xobs@kosagi.com>
senoko-slave: Add manager for I2C slave functions

Signed-off-by: Sean Cross <xobs@kosagi.com>
main: Initialize I2C slave functions on startup

Signed-off-by: Sean Cross <xobs@kosagi.com>
senoko-i2c: Delegate slave processing to senoko-slave

Signed-off-by: Sean Cross <xobs@kosagi.com>