diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2020-11-24 00:24:35 +0200 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2020-11-24 00:24:35 +0200 |
| commit | 3c167a3414556b0d0d1d463f5345077afc127cfb (patch) | |
| tree | 0b7784bf4f820c8c33829e72b49045c74882f0b0 /Software/Embedded_SW/Embedded/Main.c | |
| parent | f03b41ba1a66de2860bc0c273a5a2f662a235d82 (diff) | |
| download | Tango-3c167a3414556b0d0d1d463f5345077afc127cfb.tar.gz Tango-3c167a3414556b0d0d1d463f5345077afc127cfb.zip | |
some 4 winders inmprovements, some RFID trace
Diffstat (limited to 'Software/Embedded_SW/Embedded/Main.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/Main.c b/Software/Embedded_SW/Embedded/Main.c index 6c40b7916..3485a1de2 100644 --- a/Software/Embedded_SW/Embedded/Main.c +++ b/Software/Embedded_SW/Embedded/Main.c @@ -25,6 +25,7 @@ #include "drivers/Motors/Motor.h" #include "Communication/CommunicationTask.h" +#include "Drivers/I2C_Communication/Head_Card/IO_Ports/Head_IO.h" #include <xdc/runtime/Error.h> #include <xdc/runtime/System.h> @@ -148,6 +149,10 @@ Void errHook(Error_Block *eb) STATUS_GREEN_LED_OFF; ACTIVITY_GREEN_LED_OFF; COMM_GREEN_LED_OFF; + Head_I2C_EXP1_0x40.ushort = 0; + Head_I2C_EXP2_0x42.ushort = 0; + Head_Write_IO_Reg(0x40,LOW_AND_HIGH); + Head_Write_IO_Reg(0x42,LOW); STATUS_RED_LED_ON; ACTIVITY_RED_LED_ON; @@ -335,7 +340,8 @@ int main(void) I2C_DispRFIDTask_Init();//I2C Task for dispensers & RFID #if defined(USE_RFID_LOGIC) || defined(USE_RFID_STUB) - Trigger_RFID_Init(); //Init_IFS();//must be done after FPGA_Init + //Trigger_RFID_Init(); //Init_IFS();//must be done after FPGA_Init + Init_IFS(); #else Check_IFS_Availability(); #endif |
