Merge develop into main (#419)
- Apply IRAM optimization to all platforms instead of only ESP32 - Implement performance optimizations - Created `tt::hal::uart::open(uart_port_t)`
This commit is contained in:
committed by
GitHub
parent
eba1f8955a
commit
6ab6ae5686
@@ -82,7 +82,7 @@ struct AppManifest {
|
||||
std::string appVersionName = {};
|
||||
|
||||
/** The technical version (must be incremented with new releases of the app */
|
||||
uint64_t appVersionCode = {};
|
||||
uint64_t appVersionCode = 0;
|
||||
|
||||
/** App category helps with listing apps in Launcher, app list or settings apps. */
|
||||
Category appCategory = Category::User;
|
||||
@@ -91,7 +91,7 @@ struct AppManifest {
|
||||
Location appLocation = Location::internal();
|
||||
|
||||
/** Controls various settings */
|
||||
uint32_t appFlags = Flags::None;
|
||||
uint16_t appFlags = Flags::None;
|
||||
|
||||
/** Create the instance of the app */
|
||||
CreateApp createApp = nullptr;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "UartCompat.h"
|
||||
|
||||
namespace tt::hal::uart {
|
||||
|
||||
#ifdef ESP_PLATFORM
|
||||
@@ -7,7 +9,7 @@ namespace tt::hal::uart {
|
||||
struct Configuration {
|
||||
/** The unique name for this UART */
|
||||
std::string name;
|
||||
/** The port idenitifier (e.g. UART_NUM_0) */
|
||||
/** The port identifier (e.g. UART_NUM_0) */
|
||||
uart_port_t port;
|
||||
/** Receive GPIO pin */
|
||||
gpio_num_t rxPin;
|
||||
@@ -25,12 +27,13 @@ struct Configuration {
|
||||
uart_config_t config;
|
||||
};
|
||||
|
||||
|
||||
#else
|
||||
|
||||
struct Configuration {
|
||||
/** The unique name for this UART */
|
||||
std::string name;
|
||||
/** The port identifier (e.g. UART_NUM_0) */
|
||||
uart_port_t port;
|
||||
/** Initial baud rate in bits per second */
|
||||
uint32_t baudRate;
|
||||
};
|
||||
|
||||
@@ -119,6 +119,13 @@ public:
|
||||
*/
|
||||
std::unique_ptr<Uart> open(std::string name);
|
||||
|
||||
/**
|
||||
* Opens a UART.
|
||||
* @param[in] port the UART port as specified in the board configuration.
|
||||
* @return the UART when it was successfully opened, or nullptr when it is in use.
|
||||
*/
|
||||
std::unique_ptr<Uart> open(uart_port_t port);
|
||||
|
||||
std::vector<std::string> getNames();
|
||||
|
||||
} // namespace tt::hal::uart
|
||||
|
||||
Reference in New Issue
Block a user