diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2020-11-25 12:08:28 +0200 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2020-11-25 12:08:28 +0200 |
| commit | 978439fe882ef59b63fb1b1450bd615f707214c9 (patch) | |
| tree | b3cd057aa36d834a7c7a724a231cd66eaede6498 /Software/Embedded_SW/Embedded/Main.c | |
| parent | f95ad012ba68f1b025654925ca17d199d653a41c (diff) | |
| download | Tango-978439fe882ef59b63fb1b1450bd615f707214c9.tar.gz Tango-978439fe882ef59b63fb1b1450bd615f707214c9.zip | |
fixes for new version.
Diffstat (limited to 'Software/Embedded_SW/Embedded/Main.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Main.c b/Software/Embedded_SW/Embedded/Main.c index e6455e46c..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; |
