1 /*
2  * Copyright (c) 2018 ARM Limited
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef __CMSIS_DRIVER_CONFIG_H__
18 #define __CMSIS_DRIVER_CONFIG_H__
19 
20 #include "platform_retarget_dev.h"
21 #include "RTE_Device.h"
22 #include "target_cfg.h"
23 
24 #ifdef RTE_USART0
25 #define UART0_DEV       ARM_UART0_DEV_NS
26 #endif
27 
28 #ifdef RTE_USART1
29 #ifdef SECURE_UART1
30 #define UART1_DEV       ARM_UART1_DEV_S
31 #else
32 #define UART1_DEV       ARM_UART1_DEV_NS
33 #endif
34 #endif
35 
36 #endif  /* __CMSIS_DRIVER_CONFIG_H__ */
37