Arrow / Mbed OS DAPLink Reset
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers fsl_uart_cmsis.h Source File

fsl_uart_cmsis.h

00001 /*
00002  * Copyright (c) 2013-2016 ARM Limited. All rights reserved.
00003  * Copyright (c) 2016, Freescale Semiconductor, Inc. Not a Contribution.
00004  * Copyright 2016-2017 NXP. Not a Contribution.
00005  *
00006  * SPDX-License-Identifier: Apache-2.0
00007  *
00008  * Licensed under the Apache License, Version 2.0 (the License); you may
00009  * not use this file except in compliance with the License.
00010  * You may obtain a copy of the License at
00011  *
00012  * http://www.apache.org/licenses/LICENSE-2.0
00013  *
00014  * Unless required by applicable law or agreed to in writing, software
00015  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
00016  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00017  * See the License for the specific language governing permissions and
00018  * limitations under the License.
00019  */
00020 
00021 
00022 #ifndef _FSL_UART_CMSIS_H_
00023 #define _FSL_UART_CMSIS_H_
00024 
00025 #include "fsl_common.h"
00026 #include "Driver_USART.h"
00027 #include "RTE_Device.h"
00028 #include "fsl_uart.h"
00029 #if (defined(FSL_FEATURE_SOC_DMAMUX_COUNT) && FSL_FEATURE_SOC_DMAMUX_COUNT)
00030 #include "fsl_dmamux.h"
00031 #endif
00032 #if (defined(FSL_FEATURE_SOC_DMA_COUNT) && FSL_FEATURE_SOC_DMA_COUNT)
00033 #include "fsl_uart_dma.h"
00034 #endif
00035 #if (defined(FSL_FEATURE_SOC_EDMA_COUNT) && FSL_FEATURE_SOC_EDMA_COUNT)
00036 #include "fsl_uart_edma.h"
00037 #endif
00038 
00039 #if defined(UART0)
00040 extern ARM_DRIVER_USART Driver_USART0;
00041 #endif /* UART0 */
00042 
00043 #if defined(UART1)
00044 extern ARM_DRIVER_USART Driver_USART1;
00045 #endif /* UART1 */
00046 
00047 #if defined(UART2)
00048 extern ARM_DRIVER_USART Driver_USART2;
00049 #endif /* UART2 */
00050 
00051 #if defined(UART3)
00052 extern ARM_DRIVER_USART Driver_USART3;
00053 #endif /* UART3 */
00054 
00055 #if defined(UART4)
00056 extern ARM_DRIVER_USART Driver_USART4;
00057 #endif /* UART4 */
00058 
00059 #if defined(UART5)
00060 extern ARM_DRIVER_USART Driver_USART5;
00061 #endif /* UART5 */
00062 
00063 /* USART Driver state flags */
00064 #define USART_FLAG_UNINIT (0)
00065 #define USART_FLAG_INIT (1 << 0)
00066 #define USART_FLAG_POWER (1 << 1)
00067 #define USART_FLAG_CONFIGURED (1 << 2)
00068 
00069 #endif /* _FSL_UART_CMSIS_H_ */