psp_uart_isr_enable


Use this function to enable RX and/or TX interrupts on a UART channel.

Format

t_psp_uart_ret psp_uart_isr_enable (
    const uint8_t   uid,
    const uint8_t   flags )

Arguments

Parameter Description Type
uid The unit ID. uint8_t
flags The interrupt to enable (PSP_UART_FLAG_RX or PSP_UART_FLAG_TX). uint8_t

Return Values

Return value Description
PSP_UART_SUCCESS Successful execution.
PSP_UART_ERROR Operation failed.