aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Main.c
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2020-07-15 18:43:04 +0300
committerAvi Levkovich <avi@twine-s.com>2020-07-15 18:43:04 +0300
commita5db8b9e482d1ecfb15389270da4fa7f8bd64b94 (patch)
treec8fb3599a969b245d687256b64fc234d8cb63755 /Software/Embedded_SW/Embedded/Main.c
parent2369511b0f29a2a19b6f6629c06f9d123b05377d (diff)
downloadTango-a5db8b9e482d1ecfb15389270da4fa7f8bd64b94.tar.gz
Tango-a5db8b9e482d1ecfb15389270da4fa7f8bd64b94.zip
Temporary workaround to check if head card and whs card are availabe
Diffstat (limited to 'Software/Embedded_SW/Embedded/Main.c')
-rw-r--r--Software/Embedded_SW/Embedded/Main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Software/Embedded_SW/Embedded/Main.c b/Software/Embedded_SW/Embedded/Main.c
index 5c6c13686..88ba521a4 100644
--- a/Software/Embedded_SW/Embedded/Main.c
+++ b/Software/Embedded_SW/Embedded/Main.c
@@ -39,6 +39,7 @@
#include <DataDef.h>
#include "Sys_PinOut_Config/MCU_MAIN_pinout.h"
+#include <Drivers/I2C_Communication/I2C.h>
/*
#include "Drivers/SPI_SDCARD/SDSPI.h"
@@ -265,8 +266,10 @@ int main(void)
Init_All_I2C();
Block_Main_MUX_TCA9548A_0xE4();//unused, same i2c as head and whs cards
+ I2C_BUSY_DELAY = 3000; //temporary workaround!!!
Check_Head_Type_Via_EEPROM();//without trigger
Check_WHS_Type_Via_EEPROM();//without trigger
+ I2C_BUSY_DELAY = 100; //temporary workaround!!!
if ((Head_Type >= HEAD_TYPE_UNKNOWN_WITH_CARD)&&(WHS_Type == WHS_TYPE_NEW))
{
PP_Machine = true;