after re-align of code from manish

Signed-off-by: Ajay <ajay@moxiedevices.com>
Moved main.h to temp.h

Signed-off-by: Ajay <ajay@moxiedevices.com>
Restructuring: Restructured main.h

Changed main.h to temp.h and temp.c. PWM_Driver use temp.h.

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

Signed-off-by: Ajay <ajay@moxiedevices.com>
moved pwm_driver to main.c

Signed-off-by: Ajay <ajay@moxiedevices.com>
interrupt functionality moved to interrupt.c and interrupt.h file

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

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

Signed-off-by: Ajay <ajay@moxiedevices.com>
multiple inclustion protection added

Signed-off-by: Ajay <ajay@moxiedevices.com>
led load: new file added

LED load file will control all led load operations.

Signed-off-by: Ajay <ajay@moxiedevices.com>
pi: top level include file

Added top level include file for all pi related definitions.

Signed-off-by: Ajay <ajay@moxiedevices.com>
interrupt: DI, EI, corrected return type

corrected return type to void
Signed-off-by: Ajay <ajay@moxiedevices.com>
led load: added function to set load state

Signed-off-by: Ajay <ajay@moxiedevices.com>
main: redfined for battery and overvoltage reading

Signed-off-by: Ajay <ajay@moxiedevices.com>
main: battery status in old code

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

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

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

Signed-off-by: Ajay <ajay@moxiedevices.com>
changes for common.h

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

Battery management files will manage, voltages, state, cut-off, charging
etc of battery
Signed-off-by: Ajay <ajay@moxiedevices.com>