add Chapter 15 - runtime observer implementation

This commit is contained in:
Amar Mahmutbegovic
2024-12-09 00:53:55 +01:00
parent b378383cf5
commit fb919233e2
1391 changed files with 1058445 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#pragma once
#include <stm32f0xx_hal.h>
#include <stm32f072xb.h>
namespace hal::stm32{
struct uart {
uart() = delete;
static inline HAL_StatusTypeDef init(UART_HandleTypeDef *huart) {
return HAL_UART_Init(huart);
}
static inline HAL_StatusTypeDef transmit(UART_HandleTypeDef *huart,
uint8_t *pData,
uint16_t Size,
uint32_t Timeout) {
return HAL_UART_Transmit(huart, pData, Size, Timeout);
}
};
};