Added HAL docs, improved HAL init&locking (#218)

This commit is contained in:
Ken Van Hoeylandt
2025-02-12 18:12:20 +01:00
committed by GitHub
parent b7f39f883d
commit 2e86d4774b
16 changed files with 333 additions and 302 deletions
@@ -4,6 +4,11 @@
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);
}
@@ -0,0 +1,15 @@
#pragma once
#include "Tactility/hal/i2c/I2c.h"
#include <vector>
namespace tt::hal::i2c {
/**
* Called by main HAL init to ready the internal state of the I2C HAL.
* @param[in] configurations HAL configuration for a board
* @return true on success
*/
bool init(const std::vector<i2c::Configuration>& configurations);
}
@@ -0,0 +1,17 @@
#pragma once
#include "Tactility/hal/spi/Spi.h"
#include <vector>
#include <memory>
namespace tt::hal::spi {
/**
* Called by main HAL init to ready the internal state of the SPI HAL.
* @param[in] configurations HAL configuration for a board
* @return true on success
*/
bool init(const std::vector<spi::Configuration>& configurations);
}
@@ -0,0 +1,9 @@
#pragma once
#include "Tactility/hal/uart/Uart.h"
namespace tt::hal::uart {
bool init(const std::vector<uart::Configuration>& configurations);
}