Data Structures | |
| struct | cy_retarget_io_uart_t |
| UART channel handle. More... | |
Macros | |
| #define | CY_RETARGET_IO_CONVERT_LF_TO_CRLF |
| Defining this macro enables conversion of line feed (LF) into carriage return followed by line feed (CR & LF) on the output direction (STDOUT). More... | |
Functions | |
| cy_rslt_t | cy_retarget_io_init (XMC_USIC_CH_t *channel) |
| Initialization function for redirecting low level IO commands to allow sending messages over a UART interface. More... | |
| bool | cy_retarget_io_is_tx_active () |
| Checks whether the data is currently written to the serial console. More... | |
| void | cy_retarget_io_deinit (void) |
| Releases the UART interface allowing it to be used for other purposes. More... | |
Variables | |
| cy_retarget_io_uart_t | cy_retarget_io_uart_obj |
| UART channel handle used by this library. | |
| #define CY_RETARGET_IO_CONVERT_LF_TO_CRLF |
Defining this macro enables conversion of line feed (LF) into carriage return followed by line feed (CR & LF) on the output direction (STDOUT).
You can define this macro through the DEFINES variable in the application Makefile.
| cy_rslt_t cy_retarget_io_init | ( | XMC_USIC_CH_t * | channel | ) |
Initialization function for redirecting low level IO commands to allow sending messages over a UART interface.
In an RTOS environment, this function must be called after the RTOS has been initialized.
| channel | Pointer to USIC channel handler |
| bool cy_retarget_io_is_tx_active | ( | ) |
Checks whether the data is currently written to the serial console.
| void cy_retarget_io_deinit | ( | void | ) |
Releases the UART interface allowing it to be used for other purposes.
After calling this, printf and related functions will no longer work.