File port_stm32_hal.h¶
File List > port > stm32_hal > port_stm32_hal.h
Go to the documentation of this file
#ifndef PORT_STM32_HAL_H
#define PORT_STM32_HAL_H
#include "syntropic/drivers/syn_gpio.h"
#ifdef __cplusplus
extern "C" {
#endif
#define SYN_PORT_STM32_PIN(gpio_port, gpio_pin) \
SYN_GPIO_PIN((uint8_t)(((uintptr_t)(gpio_port) - (uintptr_t)GPIOA) / 0x0400UL), \
(uint8_t)(((uint32_t)(gpio_pin) > 15U) ? __builtin_ctz((uint32_t)(gpio_pin)) \
: (uint32_t)(gpio_pin)))
SYN_Status syn_port_stm32_register_uart(SYN_UARTInstance instance, void *huart);
#ifdef __cplusplus
}
#endif
#endif /* PORT_STM32_HAL_H */