From 72d588cc691d91e72fefb9f33e4e614fc5c359de Mon Sep 17 00:00:00 2001 From: Avi Levkovich Date: Tue, 4 Aug 2020 13:54:31 +0300 Subject: Use Check_IFS_Availability instead of Init_IFS --- .../Embedded/Drivers/I2C_Communication/RFID_NFC/I2C_IFS_Mux.c | 10 +++++----- Software/Embedded_SW/Embedded/Main.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'Software/Embedded_SW/Embedded') diff --git a/Software/Embedded_SW/Embedded/Drivers/I2C_Communication/RFID_NFC/I2C_IFS_Mux.c b/Software/Embedded_SW/Embedded/Drivers/I2C_Communication/RFID_NFC/I2C_IFS_Mux.c index d70fd0949..9be6a90b9 100644 --- a/Software/Embedded_SW/Embedded/Drivers/I2C_Communication/RFID_NFC/I2C_IFS_Mux.c +++ b/Software/Embedded_SW/Embedded/Drivers/I2C_Communication/RFID_NFC/I2C_IFS_Mux.c @@ -94,7 +94,7 @@ uint32_t Select_Main_I2C_RFID_Channel(PANEL_BUTTON_OR_CRAT_ID Cart_ID) // // return status; //} -/* + uint32_t Reset_and_Check_IFS_Availability(PANEL_BUTTON_OR_CRAT_ID Cart_ID) { uint32_t status = OK; @@ -121,7 +121,7 @@ uint32_t Reset_and_Check_IFS_Availability(PANEL_BUTTON_OR_CRAT_ID Cart_ID) if((Read_Buf[0] == 0x40) && (Read_Buf[1] == 0x00) && (Read_Buf[2] == 0x03) && (Read_Buf[3] == 0x00) && (Read_Buf[4] == 0x11) && (Read_Buf[5] == 0x01))//PN7150 RESET RESPONSE { - IFS_Availability[Cart_ID-1] = IFS_RECOGNIZED; + IFS_Availability[Cart_ID-1] = IFS_RECOGNIZED_INIT_PASSED; } else { @@ -142,8 +142,8 @@ uint32_t Reset_and_Check_IFS_Availability(PANEL_BUTTON_OR_CRAT_ID Cart_ID) return status; } -*/ -/* + + uint32_t Check_IFS_Availability() { uint32_t status = OK; @@ -159,4 +159,4 @@ uint32_t Check_IFS_Availability() Active_RFID_Reader = CART_2; // temporary !!!!! return status; } -*/ + diff --git a/Software/Embedded_SW/Embedded/Main.c b/Software/Embedded_SW/Embedded/Main.c index ccda43cfd..66db76348 100644 --- a/Software/Embedded_SW/Embedded/Main.c +++ b/Software/Embedded_SW/Embedded/Main.c @@ -294,7 +294,7 @@ int main(void) STATUS_GREEN_LED_ON; FPGA_Init(); - Init_IFS();//must be done after FPGA_Init + Check_IFS_Availability();//Init_IFS();//must be done after FPGA_Init #endif MAP_FPULazyStackingEnable(); -- cgit v1.3.1