Skip to content

Commit 8c19d8d

Browse files
committed
✨ RS485_SERIAL_PORT
MarlinFirmware/Marlin#25680
1 parent 0849d2a commit 8c19d8d

File tree

340 files changed

+3060
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

340 files changed

+3060
-0
lines changed

config/default/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/3DFabXYZ/Migbot/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,15 @@
114114
//#define SERIAL_PORT_3 1
115115
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
116116

117+
/**
118+
* Select a serial port to communicate with RS485 protocol
119+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
120+
*/
121+
//#define RS485_SERIAL_PORT 1
122+
#ifdef RS485_SERIAL_PORT
123+
//#define RS485_BUS_BUFFER_SIZE 128
124+
#endif
125+
117126
// Enable the Bluetooth serial interface on AT90USB devices
118127
//#define BLUETOOTH
119128

config/examples/ADIMLab/Gantry v1/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/ADIMLab/Gantry v2/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/Alfawise/U20-bltouch/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,15 @@
151151
//#define SERIAL_PORT_3 3
152152
//#define BAUDRATE_3 115200 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
153153

154+
/**
155+
* Select a serial port to communicate with RS485 protocol
156+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
157+
*/
158+
//#define RS485_SERIAL_PORT 1
159+
#ifdef RS485_SERIAL_PORT
160+
//#define RS485_BUS_BUFFER_SIZE 128
161+
#endif
162+
154163
// Enable the Bluetooth serial interface on AT90USB devices
155164
//#define BLUETOOTH
156165

config/examples/Alfawise/U20/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,15 @@
151151
//#define SERIAL_PORT_3 3
152152
//#define BAUDRATE_3 115200 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
153153

154+
/**
155+
* Select a serial port to communicate with RS485 protocol
156+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
157+
*/
158+
//#define RS485_SERIAL_PORT 1
159+
#ifdef RS485_SERIAL_PORT
160+
//#define RS485_BUS_BUFFER_SIZE 128
161+
#endif
162+
154163
// Enable the Bluetooth serial interface on AT90USB devices
155164
//#define BLUETOOTH
156165

config/examples/AliExpress/CL-260/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/AliExpress/UM2pExt/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/Anet/A2/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/Anet/A2plus/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/Anet/A6/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/Anet/A8/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/Anet/A8plus/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/Anet/A9/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/Anet/E10/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/Anet/E16/BTT SKR 1.3/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/Anet/E16/Stock/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/Anet/ET4+/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/Anet/ET4-Pro/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/Anet/ET4/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/Anet/ET4X/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/Anet/ET5-Pro/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/Anet/ET5/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/Anet/ET5X/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,15 @@
113113
//#define SERIAL_PORT_3 1
114114
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
115115

116+
/**
117+
* Select a serial port to communicate with RS485 protocol
118+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
119+
*/
120+
//#define RS485_SERIAL_PORT 1
121+
#ifdef RS485_SERIAL_PORT
122+
//#define RS485_BUS_BUFFER_SIZE 128
123+
#endif
124+
116125
// Enable the Bluetooth serial interface on AT90USB devices
117126
//#define BLUETOOTH
118127

config/examples/AnyCubic/Chiron/Configuration.h

+9
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,15 @@
116116
//#define SERIAL_PORT_3 1
117117
//#define BAUDRATE_3 250000 // :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000] Enable to override BAUDRATE
118118

119+
/**
120+
* Select a serial port to communicate with RS485 protocol
121+
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
122+
*/
123+
//#define RS485_SERIAL_PORT 1
124+
#ifdef RS485_SERIAL_PORT
125+
//#define RS485_BUS_BUFFER_SIZE 128
126+
#endif
127+
119128
// Enable the Bluetooth serial interface on AT90USB devices
120129
//#define BLUETOOTH
121130

0 commit comments

Comments
 (0)