Additions to the Serial UART API (#22953)

- Added an empty constructor, setPort, and validatePort functions for Serial API
- Changed GPS to not allocate Serial object dynamically
- Moved access check on serial port name into the Serial API
- Improved the Qurt platform validatePort Serial function to implement a more rigorous check. Added safety check
to the setPort Serial function to make sure it isn't called after the port has been already opened.
This commit is contained in:
Eric Katzfey
2024-04-01 12:27:59 -04:00
committed by GitHub
parent 416b6a35a4
commit ccdf060393
11 changed files with 143 additions and 38 deletions
+1
View File
@@ -65,6 +65,7 @@ public:
const char *getPort() const;
bool setPort(const char *port);
static bool validatePort(const char *port);
uint32_t getBaudrate() const;
bool setBaudrate(uint32_t baudrate);