Ken Van Hoeylandt b85ef7a2e7
UART refactored (#236)
`Uart` is now an abstract class with a `UartEsp` and a `UartPosix` implementation.
2025-02-26 17:13:37 +01:00

22 lines
467 B
C++

#pragma once
#include "Tactility/hal/gps/GpsDevice.h"
namespace tt::hal::uart { class Uart; }
namespace tt::hal::gps {
/**
* Called by main HAL init to ready the internal state of the GPS HAL.
* @param[in] configurations HAL configuration for a board
* @return true on success
*/
bool init(const std::vector<GpsDevice::Configuration>& configurations);
/**
* Init sequence on UART for a specific GPS model.
*/
bool init(uart::Uart& uart, GpsModel type);
}