project file

Signed-off-by: Ajay <ajay@moxiedevices.com>
Revert "project file"

This reverts commit 37073b37467c92fe8bb4ff6fa45a19567a99117e.
removed unnecessary files

Signed-off-by: Ajay <ajay@moxiedevices.com>
removed not used vars/funcs

Signed-off-by: Ajay <ajay@moxiedevices.com>
pwm: included system file

Signed-off-by: Ajay <ajay@moxiedevices.com>
pwm4: removed pwm40e = 0 while update

Signed-off-by: Ajay <ajay@moxiedevices.com>
battry mgmt: init, battery charging and mgmt

added battry management init and dummy functon for battery charging and mgmt
Signed-off-by: Ajay <ajay@moxiedevices.com>
load mgmt: PWM  definition/name

PWM name and definition should come from config file.

Signed-off-by: Ajay <ajay@moxiedevices.com>
pv management: get pv voltage

pv voltage have some default value even if pv is not connected.

Default low and high value is defined in config file.

If pv voltage read is between default value the pv is read 0

else

pv_volt = PV_BASE_VOLT_LOW - pv_volt

Signed-off-by: Ajay <ajay@moxiedevices.com>
main: top level state machine of system

main implements top level state machine of system.

Most of the parameters come from config file.

Signed-off-by: Ajay <ajay@moxiedevices.com>
pwm4 enabled

Signed-off-by: Ajay <ajay@moxiedevices.com>
project file

Signed-off-by: Ajay <ajay@moxiedevices.com>