UART refactored (#236)

`Uart` is now an abstract class with a `UartEsp` and a `UartPosix` implementation.
This commit is contained in:
Ken Van Hoeylandt
2025-02-26 17:13:37 +01:00
committed by GitHub
parent de46401d85
commit b85ef7a2e7
22 changed files with 867 additions and 592 deletions
+2 -4
View File
@@ -85,10 +85,8 @@ extern const Configuration lilygo_tdeck = {
},
.uart {
uart::Configuration {
.name = "Grove",
.port = UART_NUM_1,
.initMode = uart::InitMode::Disabled, // Let GPS driver control this interface
.canReinit = true,
.hasMutableConfiguration = false,
.rxPin = GPIO_NUM_44,
.txPin = GPIO_NUM_43,
.rtsPin = GPIO_NUM_NC,
@@ -113,7 +111,7 @@ extern const Configuration lilygo_tdeck = {
.gps = {
gps::GpsDevice::Configuration {
.name = "Internal",
.uartPort = UART_NUM_1,
.uartName = "Grove",
.baudRate = 38400,
.model = gps::GpsModel::UBLOX10
}