psp_uart_init


Use this function to initialize a UART port.

Note: You must call this before any other function.

Format

t_psp_uart_ret psp_uart_init (
    const uint8_t                  uid,
    const t_psp_uart_dsc * const   p_dsc )

Arguments

Parameter Description Type
uid The unit ID. uint8_t
p_dsc A pointer to the UART descriptor. t_psp_uart_dsc *

Return Values

Return value Description
PSP_UART_SUCCESS Successful execution.
PSP_UART_ERROR Operation failed.