Tactility/TactilityC/Source/tt_hal_uart.cpp
Ken Van Hoeylandt 74127a5f6c
Add kernel drivers for SPI and UART and make locking APIs more consistent (#489)
- 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()
2026-02-07 21:28:11 +01:00

62 lines
1.1 KiB
C++

#include "tt_hal_uart.h"
#include <cstring>
extern "C" {
size_t tt_hal_uart_get_count() {
return 0;
}
bool tt_hal_uart_get_name(size_t index, char* name, size_t nameSizeLimit) {
return false;
}
UartHandle tt_hal_uart_alloc(size_t index) {
return nullptr;
}
void tt_hal_uart_free(UartHandle handle) {
}
bool tt_hal_uart_start(UartHandle handle) {
return false;
}
bool tt_hal_uart_is_started(UartHandle handle) {
return false;
}
bool tt_hal_uart_stop(UartHandle handle) {
return false;
}
size_t tt_hal_uart_read_bytes(UartHandle handle, char* buffer, size_t bufferSize, TickType_t timeout) {
return 0;
}
bool tt_hal_uart_read_byte(UartHandle handle, char* output, TickType_t timeout) {
return false;
}
size_t tt_hal_uart_write_bytes(UartHandle handle, const char* buffer, size_t bufferSize, TickType_t timeout) {
return 0;
}
size_t tt_hal_uart_available(UartHandle handle) {
return 0;
}
bool tt_hal_uart_set_baud_rate(UartHandle handle, size_t baud_rate) {
return false;
}
uint32_t tt_hal_uart_get_baud_rate(UartHandle handle) {
return 0;
}
void tt_hal_uart_flush_input(UartHandle handle) {
}
}