/******************************************************************************* * Function Name: UART_ScbModeStop ******************************************************************************** * * Summary: * Calls Stop function for specific operation mode. * * Parameters: * None * * Return: * None * *******************************************************************************/ static void UART_ScbModeStop(void) { #if(UART_SCB_MODE_UNCONFIG_CONST_CFG) if(UART_SCB_MODE_I2C_RUNTM_CFG) { UART_I2CStop(); } #elif(UART_SCB_MODE_I2C_CONST_CFG) UART_I2CStop(); #else #endif /* (UART_SCB_MODE_UNCONFIG_CONST_CFG) */ }
/******************************************************************************* * Function Name: UART_ScbModeStop ****************************************************************************//** * * Calls the Stop function for a specific operation mode. * *******************************************************************************/ static void UART_ScbModeStop(void) { #if (UART_SCB_MODE_UNCONFIG_CONST_CFG) if (UART_SCB_MODE_I2C_RUNTM_CFG) { UART_I2CStop(); } else if (UART_SCB_MODE_EZI2C_RUNTM_CFG) { UART_EzI2CStop(); } #if (!UART_CY_SCBIP_V1) else if (UART_SCB_MODE_SPI_RUNTM_CFG) { UART_SpiStop(); } else if (UART_SCB_MODE_UART_RUNTM_CFG) { UART_UartStop(); } #endif /* (!UART_CY_SCBIP_V1) */ else { /* Unknown mode: do nothing */ } #elif (UART_SCB_MODE_I2C_CONST_CFG) UART_I2CStop(); #elif (UART_SCB_MODE_EZI2C_CONST_CFG) UART_EzI2CStop(); #elif (UART_SCB_MODE_SPI_CONST_CFG) UART_SpiStop(); #elif (UART_SCB_MODE_UART_CONST_CFG) UART_UartStop(); #else /* Unknown mode: do nothing */ #endif /* (UART_SCB_MODE_UNCONFIG_CONST_CFG) */ }
/******************************************************************************* * Function Name: UART_ScbModeEnableIntr ******************************************************************************** * * Summary: * Calls Stop function for specific operation mode. * * Parameters: * None * * Return: * None * *******************************************************************************/ static void UART_ScbModeStop(void) { #if(UART_SCB_MODE_UNCONFIG_CONST_CFG) if(UART_SCB_MODE_I2C_RUNTM_CFG) { UART_I2CStop(); } else if(UART_SCB_MODE_EZI2C_RUNTM_CFG) { UART_EzI2CStop(); } else { /* None of modes above */ } #elif(UART_SCB_MODE_I2C_CONST_CFG) UART_I2CStop(); #elif(UART_SCB_MODE_EZI2C_CONST_CFG) UART_EzI2CStop(); #endif /* (UART_SCB_MODE_UNCONFIG_CONST_CFG) */ }