aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Main.c
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Embedded_SW/Embedded/Main.c')
-rw-r--r--Software/Embedded_SW/Embedded/Main.c5
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;