diff options
author | Stefan Agner <stefan@agner.ch> | 2016-07-18 13:12:11 -0700 |
---|---|---|
committer | Stefan Agner <stefan@agner.ch> | 2016-08-09 14:53:37 -0700 |
commit | cd6c66301a83dde9ad4eaf675459a0348f4732cf (patch) | |
tree | b979a88a80abded65470b80d88c351b5bc11ff9c /platform/drivers/src/uart_imx.c | |
parent | 21d6d84123de8e6e2ebdf5543b530403951b3059 (diff) |
resync with FreeRTOS_iMX7D_1.0.1 GAColibri_iMX7_M4_FreeRTOS_V1.0.1_20160810
Diffstat (limited to 'platform/drivers/src/uart_imx.c')
-rw-r--r-- | platform/drivers/src/uart_imx.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/platform/drivers/src/uart_imx.c b/platform/drivers/src/uart_imx.c index 0f78265..f60ce9f 100644 --- a/platform/drivers/src/uart_imx.c +++ b/platform/drivers/src/uart_imx.c @@ -370,8 +370,8 @@ void UART_SetCtsFlowCtrlCmd(UART_Type* base, bool enable) * Function Name : UART_SetCtsPinLevel * Description : This function is used to control the CTS_B pin state when * auto CTS control is disabled. - * The CTS_B pin is low(active) - * The CTS_B pin is high(inactive) + * The CTS_B pin is low (active) + * The CTS_B pin is high (inactive) * *END**************************************************************************/ void UART_SetCtsPinLevel(UART_Type* base, bool active) @@ -392,6 +392,7 @@ void UART_SetCtsPinLevel(UART_Type* base, bool active) void UART_SetModemMode(UART_Type* base, uint32_t mode) { assert((mode == uartModemModeDce) || (mode == uartModemModeDte)); + if (uartModemModeDce == mode) UART_UFCR_REG(base) &= ~UART_UFCR_DCEDTE_MASK; else @@ -449,12 +450,12 @@ void UART_SetRiPinLevel(UART_Type* base, bool active) ******************************************************************************/ /*FUNCTION********************************************************************** * - * Function Name : UAER_Putchar9 + * Function Name : UART_Putchar9 * Description : This function is used to send 9 Bits length data in * RS-485 Multidrop mode. * *END**************************************************************************/ -void UAER_Putchar9(UART_Type* base, uint16_t data) +void UART_Putchar9(UART_Type* base, uint16_t data) { assert(data <= 0x1FF); @@ -467,12 +468,12 @@ void UAER_Putchar9(UART_Type* base, uint16_t data) /*FUNCTION********************************************************************** * - * Function Name : UAER_Getchar9 + * Function Name : UART_Getchar9 * Description : This functions is used to receive 9 Bits length data in * RS-485 Multidrop mode. * *END**************************************************************************/ -uint16_t UAER_Getchar9(UART_Type* base) +uint16_t UART_Getchar9(UART_Type* base) { uint16_t rxData = UART_URXD_REG(base); |