File port_stm32_hal.h¶
FileList > port > stm32_hal > port_stm32_hal.h
Go to the source code of this file
STM32 HAL GPIO Port Helper Macros.
#include "syntropic/drivers/syn_gpio.h"
Public Functions¶
| Type | Name |
|---|---|
| SYN_Status | syn_port_stm32_register_uart (SYN_UARTInstance instance, void * huart) Register an STM32 HAL UART_HandleTypeDef pointer (e.g. &huart1) with a SyntropicOS UART instance (0..5). |
Macros¶
| Type | Name |
|---|---|
| define | SYN_PORT_STM32_PIN (gpio_port, gpio_pin) /* multi line expression */Convert STM32 HAL GPIO_TypeDef pointer (GPIOA, GPIOB, etc.) and pin (number 0..15 or mask GPIO_PIN_0..15) into a packed 16-bit SYN_GPIO_Pin handle. |
Public Functions Documentation¶
function syn_port_stm32_register_uart¶
Register an STM32 HAL UART_HandleTypeDef pointer (e.g. &huart1) with a SyntropicOS UART instance (0..5).
Parameters:
instanceSyntropicOS UART instance index (0..5).huartPointer to STM32 HAL UART_HandleTypeDef (e.g. &huart1 or &huart3).
Returns:
SYN_OK on success, SYN_INVALID_PARAM if instance >= 6.
Macro Definition Documentation¶
define SYN_PORT_STM32_PIN¶
Convert STM32 HAL GPIO_TypeDef pointer (GPIOA, GPIOB, etc.) and pin (number 0..15 or mask GPIO_PIN_0..15) into a packed 16-bit SYN_GPIO_Pin handle.
Examples: SYN_PORT_STM32_PIN(GPIOA, 0) -> PA0 SYN_PORT_STM32_PIN(GPIOC, GPIO_PIN_13) -> PC13 SYN_PORT_STM32_PIN(USER_BTN_GPIO_Port, USER_BTN_Pin) -> CubeMX pin
The documentation for this class was generated from the following file src/port/stm32_hal/port_stm32_hal.h