Initialization and de-initialization functions

Functions

error_status_t ll_uart_deinit (uart_regs_t *UARTx)
 De-initialize UART registers (Registers restored to their default values). More...
 
error_status_t ll_uart_init (uart_regs_t *UARTx, ll_uart_init_t *p_uart_init)
 Initialize UART registers according to the specified parameters in p_uart_init. More...
 
void ll_uart_struct_init (ll_uart_init_t *p_uart_init)
 Set each field of a ll_uart_init_t type structure to default value. More...
 

Detailed Description

Function Documentation

◆ ll_uart_deinit()

error_status_t ll_uart_deinit ( uart_regs_t *  UARTx)

De-initialize UART registers (Registers restored to their default values).

Parameters
UARTxUART instance
Return values
Anerror_status_t enumeration value:
  • SUCCESS: UART registers are de-initialized
  • ERROR: UART registers are not de-initialized

◆ ll_uart_init()

error_status_t ll_uart_init ( uart_regs_t *  UARTx,
ll_uart_init_t p_uart_init 
)

Initialize UART registers according to the specified parameters in p_uart_init.

Parameters
UARTxUART instance
p_uart_initPointer to a ll_uart_init_t structure that contains the configuration information for the specified UART peripheral.
Return values
Anerror_status_t enumeration value:
  • SUCCESS: UART registers are initialized according to p_uart_init content
  • ERROR: Problem occurred during UART Registers initialization

◆ ll_uart_struct_init()

void ll_uart_struct_init ( ll_uart_init_t p_uart_init)

Set each field of a ll_uart_init_t type structure to default value.

Parameters
p_uart_initPointer to a ll_uart_init_t structure whose fields will be set to default values.
Return values
None