diff options
| author | Avi Levkovich <avi@twine-s.com> | 2021-01-03 16:52:43 +0200 |
|---|---|---|
| committer | Avi Levkovich <avi@twine-s.com> | 2021-01-03 16:52:43 +0200 |
| commit | 6a2aa48d486a9f83449d7e2c5e85b62649763c49 (patch) | |
| tree | 730d358a54f0cc5de81b41421f9e157294335918 /Software/Embedded_SW | |
| parent | 760058380ff8a85a3f3185206c0621c01c6bd0e2 (diff) | |
| download | Tango-6a2aa48d486a9f83449d7e2c5e85b62649763c49.tar.gz Tango-6a2aa48d486a9f83449d7e2c5e85b62649763c49.zip | |
Set the default direction of RS485 to RX (in the function PinoutSet)
Diffstat (limited to 'Software/Embedded_SW')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Common/Sys_PinOut_Config/MCU_MAIN_pinout.c | 2 | ||||
| -rw-r--r-- | Software/Embedded_SW/Embedded/DataDef.h | 2 |
2 files changed, 2 insertions, 2 deletions
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 // |
