From 6a2aa48d486a9f83449d7e2c5e85b62649763c49 Mon Sep 17 00:00:00 2001 From: Avi Levkovich Date: Sun, 3 Jan 2021 16:52:43 +0200 Subject: Set the default direction of RS485 to RX (in the function PinoutSet) --- .../Embedded_SW/Embedded/Common/Sys_PinOut_Config/MCU_MAIN_pinout.c | 2 +- Software/Embedded_SW/Embedded/DataDef.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Software/Embedded_SW') diff --git a/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/MCU_MAIN_pinout.c b/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/MCU_MAIN_pinout.c index fcede699f..921d5f07f 100644 --- a/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/MCU_MAIN_pinout.c +++ b/Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/MCU_MAIN_pinout.c @@ -865,7 +865,7 @@ PinoutSet(void) #ifdef USE_UART4_FOR_BTSR // Configure the GPIO Pin PR0 for BTSR RS485 UART - Set as output to change to uart4 RS485 Direction: ROM_GPIOPinTypeGPIOOutput(GPIO_PORTR_BASE, GPIO_PIN_0); - ROM_GPIOPinWrite(GPIO_PORTR_BASE, GPIO_PIN_0, 0); + ROM_GPIOPinWrite(GPIO_PORTR_BASE, GPIO_PIN_0, 1);//RX 1 (remove the error CAB ERR on the BTSR screen?) #endif // // Configure the GPIO Pin Mux for PR1 diff --git a/Software/Embedded_SW/Embedded/DataDef.h b/Software/Embedded_SW/Embedded/DataDef.h index 3115f6828..d8655296d 100644 --- a/Software/Embedded_SW/Embedded/DataDef.h +++ b/Software/Embedded_SW/Embedded/DataDef.h @@ -36,7 +36,7 @@ #endif //#define BTSR_ROTATED_WINDER_TFU -//#define USE_UART4_FOR_BTSR // need change in FRPGA FPGA_1 yy > 0x20 + jumpers in main board need to read HW Version +//#define USE_UART4_FOR_BTSR // need change in FRPGA FPGA_1 yy > 0x20 + jumpers in main board need to read HW Version - no need when working only with stubs //#define USE_RFID_STUB //stub only. to use it undef USE_RFID_LOGIC //#define RFID_READ_ONLY // -- cgit v1.3.1