From 4212cad593be61cdbd03aa15adcc229aa4e0af7e Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Tue, 12 Jan 2016 14:47:34 -0800 Subject: platform: debug_console_imx: add modem mode support Add mode parameter which allows to select DCE/DTE mode of the debug UART. --- platform/utilities/inc/debug_console_imx.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'platform/utilities/inc/debug_console_imx.h') diff --git a/platform/utilities/inc/debug_console_imx.h b/platform/utilities/inc/debug_console_imx.h index bb14a67..21069b8 100644 --- a/platform/utilities/inc/debug_console_imx.h +++ b/platform/utilities/inc/debug_console_imx.h @@ -86,11 +86,13 @@ extern "C" { * @param base Which UART_IMX instance is used to send debug messages. * @param clockRate The input clock of UART_IMX module. * @param baudRate The desired baud rate in bits per second. + * @param mode The Modem mode (DTE/DCE), (see _uart_modem_mode enumeration). * @return Whether initialization was successful or not. */ debug_console_status_t DbgConsole_Init(UART_Type* base, uint32_t clockRate, - uint32_t baudRate); + uint32_t baudRate, + uint32_t mode); /*! * @brief Deinit the UART/LPUART used for debug messages. -- cgit v1.2.3