diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-04-07 14:34:19 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-04-07 14:34:19 +0300 |
| commit | e859f581bb925e575bba10e4468c3644a92ad266 (patch) | |
| tree | f87e499812e80d59e912c48be4855244d64ad726 /Software/Embedded_SW/Embedded/Main.c | |
| parent | b40a16bd00381b710196b2db6bad08e875d90184 (diff) | |
| download | Tango-e859f581bb925e575bba10e4468c3644a92ad266.tar.gz Tango-e859f581bb925e575bba10e4468c3644a92ad266.zip | |
power down and idle changes
Diffstat (limited to 'Software/Embedded_SW/Embedded/Main.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Main.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/Software/Embedded_SW/Embedded/Main.c b/Software/Embedded_SW/Embedded/Main.c index fc3d09402..046f8291e 100644 --- a/Software/Embedded_SW/Embedded/Main.c +++ b/Software/Embedded_SW/Embedded/Main.c @@ -46,7 +46,7 @@ #include "StateMachines/Printing/PrintingSTM.h" #include "StateMachines/Initialization/InitSequence.h" - +#include "StateMachines/Initialization/PowerIdle.h" #include <Drivers/SSI_Comm/SSI_Comm.h> #include "drivers/SPI/SPI_Comm.h" #include "drivers/Uart_Comm/Uart.h" @@ -65,7 +65,8 @@ #include "drivers/Flash_Memory/FATFS/ff.h" #include "drivers/Flash_Memory/FATFS/Control_File_System.h" - +#include "Modules/General/buttons.h" +#include "Modules/Waste/Waste.h" //#define WATCHDOG //***************************************************************************** // @@ -87,6 +88,12 @@ static volatile uint32_t g_ui32Flags; bool Machine_Idle_Mode = false; + +F2_CTRL_REG F2_CTRL_Reg; +F1_GPO_REG F1_GPO_Reg; + +F3_GPO_01_REG F3_GPO_01_Reg; + //MessageContainer createContainer(MessageType type, char* token, protobuf_c_boolean completed, void* response, size_t (*packPtr)(void*, uint8_t*), size_t (*sizePtr)(void*)); uint32_t MainDummyFunction(uint32_t IfIndex, uint32_t ReadValue) { @@ -188,6 +195,9 @@ int main(void) ControlStart(); Heaters_Init(); MotorsInit(); +//Shai WHS_HW_test(); // for WHS sensor test +// WHS_init(); +// Buttons_Init(); //IDS_ModuleInit(); Valve_Set(VALVE_MIXCHIP_WASTECH, Mixer_Waste); @@ -215,6 +225,9 @@ int main(void) // //test_avi(); //example for shai + Set_Speed_Sensor_TypeII_Registers(2,2);//set default values + //Read_Speed_Sensor_TypeII();//must be delay between Set_Speed_Sensor_TypeII_Registers to Read_Speed_Sensor_TypeII + //Test_ADS120_Internal_Temperature_Sensor(0); #ifndef EVALUATION_BOARD @@ -232,7 +245,7 @@ int main(void) // HWControlId = AddControlCallback( MainHWInitCallBackFunction, 2* eOneSecond/*eHundredMillisecond*/, MainDummyFunction,0,0, 0 ); Start_InitSequence(); - + PowerIdleInit(); BIOS_start(); |
