52#include "hal_ll_gpio.h"
151#if defined(FLATTEN_ME) && (FLATTEN_ME_LEVEL >= FLATTEN_ME_LEVEL_MID)
152#define hal_gpio_read_pin_input(_handle) hal_ll_gpio_read_pin_input( (hal_ll_gpio_pin_t *)_handle )
175#if defined(FLATTEN_ME) && (FLATTEN_ME_LEVEL >= FLATTEN_ME_LEVEL_MID)
176#define hal_gpio_read_pin_output(_handle) hal_ll_gpio_read_pin_output( (hal_ll_gpio_pin_t *)_handle )
199#if defined(FLATTEN_ME) && (FLATTEN_ME_LEVEL >= FLATTEN_ME_LEVEL_MID)
200#define hal_gpio_write_pin_output(_handle,_value) hal_ll_gpio_write_pin_output( (hal_ll_gpio_pin_t *)_handle, _value )
222#if defined(FLATTEN_ME) && (FLATTEN_ME_LEVEL >= FLATTEN_ME_LEVEL_MID)
223#define hal_gpio_toggle_pin_output(_handle) hal_ll_gpio_toggle_pin_output( (hal_ll_gpio_pin_t *)_handle )
245#if defined(FLATTEN_ME) && (FLATTEN_ME_LEVEL >= FLATTEN_ME_LEVEL_MID)
246#define hal_gpio_set_pin_output(_handle) hal_ll_gpio_set_pin_output( (hal_ll_gpio_pin_t *)_handle )
268#if defined(FLATTEN_ME) && (FLATTEN_ME_LEVEL >= FLATTEN_ME_LEVEL_MID)
269#define hal_gpio_clear_pin_output(_handle) hal_ll_gpio_clear_pin_output( (hal_ll_gpio_pin_t *)_handle )
327#if defined(FLATTEN_ME) && (FLATTEN_ME_LEVEL >= FLATTEN_ME_LEVEL_MID)
328#define hal_gpio_read_port_input(_handle) hal_ll_gpio_read_port_input( (hal_ll_gpio_port_t *)_handle )
351#if defined(FLATTEN_ME) && (FLATTEN_ME_LEVEL >= FLATTEN_ME_LEVEL_MID)
352#define hal_gpio_read_port_output(_handle) hal_ll_gpio_read_port_output( (hal_ll_gpio_port_t *)_handle )
376#if defined(FLATTEN_ME) && (FLATTEN_ME_LEVEL >= FLATTEN_ME_LEVEL_MID)
377#define hal_gpio_write_port_output(_handle,_value) hal_ll_gpio_write_port_output( (hal_ll_gpio_port_t *)_handle, _value )
void hal_gpio_write_pin_output(hal_gpio_pin_t *pin, uint8_t value)
Sets pin state.
void hal_gpio_set_pin_output(hal_gpio_pin_t *pin)
Set pin state high.
void hal_gpio_toggle_pin_output(hal_gpio_pin_t *pin)
Toggle pin state.
void hal_gpio_clear_pin_output(hal_gpio_pin_t *pin)
Set pin state low.
void hal_gpio_configure_pin(hal_gpio_pin_t *pin, hal_pin_name_t name, hal_gpio_direction_t direction)
Configure pin.
uint8_t hal_gpio_read_pin_input(hal_gpio_pin_t *pin)
Read pin.
hal_port_size_t hal_gpio_read_port_input(hal_gpio_port_t *port)
Read port.
void hal_gpio_configure_port(hal_gpio_port_t *port, hal_port_name_t name, hal_gpio_mask_t mask, hal_gpio_direction_t direction)
Configure port.
hal_port_size_t hal_gpio_read_port_output(hal_gpio_port_t *port)
Read port.
void hal_gpio_write_port_output(hal_gpio_port_t *port, hal_port_size_t value)
Sets port state.
uint8_t hal_gpio_read_pin_output(hal_gpio_pin_t *pin)
Read pin.
hal_gpio_t hal_gpio_pin_t
Definition hal_gpio.h:81
hal_gpio_direction_t
Definition hal_gpio.h:58
@ HAL_GPIO_DIGITAL_INPUT
Definition hal_gpio.h:59
@ HAL_GPIO_DIGITAL_OUTPUT
Definition hal_gpio.h:60
handle_t hal_gpio_base_t
Definition hal_gpio.h:63
hal_ll_gpio_mask_t hal_gpio_mask_t
Definition hal_gpio.h:64
hal_gpio_t hal_gpio_port_t
Definition hal_gpio.h:82
struct hal_gpio hal_gpio_t
GPIO HAL context structure, consisted of the following fields :
HAL target macros and typedefs.
hal_ll_port_size_t hal_port_size_t
Definition hal_target.h:62
hal_ll_port_name_t hal_port_name_t
Definition hal_target.h:61
hal_ll_pin_name_t hal_pin_name_t
Definition hal_target.h:60
GPIO HAL context structure, consisted of the following fields :
Definition hal_gpio.h:76
hal_gpio_base_t base
Definition hal_gpio.h:77
hal_gpio_mask_t mask
Definition hal_gpio.h:78