diff options
| author | Avi Levkovich <avi@twine-s.com> | 2019-05-12 15:54:34 +0300 |
|---|---|---|
| committer | Avi Levkovich <avi@twine-s.com> | 2019-05-12 15:54:34 +0300 |
| commit | 2c7de45004c52cfe6179cc82d292ae60127845a4 (patch) | |
| tree | 235da128436182bc66038cd14aac2fc1f93c4cb4 /Software/Embedded_SW/Embedded/Main.c | |
| parent | f2867fc80d78af153990d7c66a7d8114d50de0af (diff) | |
| download | Tango-2c7de45004c52cfe6179cc82d292ae60127845a4.tar.gz Tango-2c7de45004c52cfe6179cc82d292ae60127845a4.zip | |
mov the functions Check_Dispenser_Type( + Init_Dispensers_IO_Registers before InitWatchdog in main.c
Diffstat (limited to 'Software/Embedded_SW/Embedded/Main.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Software/Embedded_SW/Embedded/Main.c b/Software/Embedded_SW/Embedded/Main.c index dd748b1cb..46a173672 100644 --- a/Software/Embedded_SW/Embedded/Main.c +++ b/Software/Embedded_SW/Embedded/Main.c @@ -243,6 +243,9 @@ int main(void) Control_Dryer_Fan(STOP,0);//Preventing unwanted movement at power up, since the default from FPGA is "0" (= START) #endif + Check_Dispenser_Type(); + Init_Dispensers_IO_Registers(&Disp_IO_Reg); + #ifdef WATCHDOG InitWatchdog(ui32SysClock*10); #endif @@ -276,7 +279,7 @@ int main(void) //////////////////////////// - Check_Dispenser_Type(); + //FPGA_Read_limit_Switches_Registers(); //calibration(); //test vme communication @@ -296,7 +299,7 @@ int main(void) //I2C_NFC_Test(); // //test_avi(); //example for shai - Init_Dispensers_IO_Registers(&Disp_IO_Reg); + Set_Speed_Sensor_TypeII_Registers(2,2);//set default values |
