74127a5f6c
- Add kernel support for SPI driver - Add kernel support for UART driver - Implemented ESP32 UART kernel driver - Update existing UART-related code in Tactility to use new kernel driver - Remove UART from tt::hal::Configuration - Remove tt_hal_uart functionality but keep functions for now - Update devicetrees for UART changes - Kernel mutex and recursive mutex: improved locking API design - Other kernel improvements - Added device_exists_of_type() and device_find_by_name()
22 lines
508 B
C++
22 lines
508 B
C++
#pragma once
|
|
|
|
#include "Tactility/hal/gps/GpsDevice.h"
|
|
|
|
#include <cstdint>
|
|
#include <cstddef>
|
|
|
|
struct Device;
|
|
|
|
namespace tt::hal::gps::ublox {
|
|
|
|
void checksum(uint8_t* message, size_t length);
|
|
|
|
// From https://github.com/meshtastic/firmware/blob/7648391f91f2b84e367ae2b38220b30936fb45b1/src/gps/GPS.cpp#L128
|
|
uint8_t makePacket(uint8_t classId, uint8_t messageId, const uint8_t* payload, uint8_t payloadSize, uint8_t* bufferOut);
|
|
|
|
GpsModel probe(::Device* uart);
|
|
|
|
bool init(::Device* uart, GpsModel model);
|
|
|
|
}
|