add uart4 and uart5

This commit is contained in:
ZYQ-FEIYUE
2022-08-20 23:37:10 +08:00
parent ba7efc3e60
commit 9c78fdbfb0
3 changed files with 58 additions and 13 deletions

View File

@@ -29,19 +29,6 @@
typedef enum
{
SERIAL_7N1,
SERIAL_7N2,
SERIAL_7E1,
SERIAL_7E2,
SERIAL_7O1,
SERIAL_7O2,
SERIAL_7N0_5,
SERIAL_7N1_5,
SERIAL_7E0_5,
SERIAL_7E1_5,
SERIAL_7O0_5,
SERIAL_7O1_5,
SERIAL_8N1,
SERIAL_8N2,
SERIAL_8E1,
@@ -139,4 +126,12 @@ extern HardwareSerial Serial2;
extern HardwareSerial Serial3;
#endif
#if SERIAL_4_ENABLE
extern HardwareSerial Serial4;
#endif
#if SERIAL_5_ENABLE
extern HardwareSerial Serial5;
#endif
#endif