do { \
static
ewf_interface ewf_interface_lpc_uart__interface__##interface_name_symb = {0}; \
ewf_interface_lpc_uart__implementation__##interface_name_symb.base = uart_base_ptr_param; \
ewf_interface_lpc_uart__implementation__##interface_name_symb.buffer_size = EWF_INTERFACE_LPC_UART_RING_BUFFER_SIZE; \
ewf_interface_lpc_uart__implementation__##interface_name_symb.baud_rate = baud_rate_param; \
EWF_PLATFORM_MUTEX_STATIC_DECLARE( \
ewf_interface_lpc_uart__implementation__##interface_name_symb.rx_mutex_ptr, \
ewf_interface_lpc_uart__uart_rx_mutex__##interface_name_symb); \
EWF_PLATFORM_QUEUE_STATIC_DECLARE( \
ewf_interface_lpc_uart__interface__##interface_name_symb.response_queue_ptr, \
ewf_interface_lpc_uart__response_queue__##interface_name_symb, \
EWF_INTERFACE_LPC_UART_CONFIG_RESPONSE_QUEUE_SIZE); \
EWF_PLATFORM_QUEUE_STATIC_DECLARE( \
ewf_interface_lpc_uart__interface__##interface_name_symb.urc_queue_ptr, \
ewf_interface_lpc_uart__urc_queue__##interface_name_symb, \
EWF_INTERFACE_LPC_UART_CONFIG_URC_QUEUE_SIZE); \
ewf_interface_lpc_uart__interface__##interface_name_symb.implementation_ptr = &(ewf_interface_lpc_uart__implementation__##interface_name_symb); \
interface_ptr = &(ewf_interface_lpc_uart__interface__##interface_name_symb); \
EWF_INTERFACE_LPC_UART_INITIALIZE_HEADER(interface_ptr); \
} while(0)
ewf_result ewf_interface_lpc_uart_hardware_receive(ewf_interface *interface_ptr, uint8_t *buffer_ptr, uint32_t *buffer_length_ptr, bool wait)
Receive a buffer using the LPC UART hardware interface.
Definition: ewf_interface_lpc_uart.c:143
ewf_result ewf_interface_lpc_uart_hardware_stop(ewf_interface *interface_ptr)
Stop the LPC UART hardware interface.
Definition: ewf_interface_lpc_uart.c:109
ewf_result ewf_interface_lpc_uart_hardware_start(ewf_interface *interface_ptr)
Start the LPC UART hardware interface.
Definition: ewf_interface_lpc_uart.c:60
ewf_result ewf_interface_lpc_uart_hardware_send(ewf_interface *interface_ptr, const uint8_t *buffer_ptr, uint32_t buffer_length)
Send a buffer using the LPC UART hardware interface.
Definition: ewf_interface_lpc_uart.c:125
The LPC UART host interface implementation data structure type.
Definition: ewf_interface_lpc_uart.h:59
The interface structure definition.
Definition: ewf_interface.h:66
The interface message structure definition.
Definition: ewf_message.h:27
Declare a LPC UART host interface.