1 /*
2  * Copyright (c) 2013-2016 ARM Limited. All rights reserved.
3  * Copyright (c) 2016, Freescale Semiconductor, Inc. Not a Contribution.
4  * Copyright 2016-2020 NXP. Not a Contribution.
5  *
6  * SPDX-License-Identifier: Apache-2.0
7  *
8  * Licensed under the Apache License, Version 2.0 (the License); you may
9  * not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
16  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 #ifndef FSL_I2C_CMSIS_H_
22 #define FSL_I2C_CMSIS_H_
23 #include "fsl_common.h"
24 #include "Driver_I2C.h"
25 #include "RTE_Device.h"
26 #include "fsl_i2c.h"
27 
28 #if defined(I2C0) && defined(RTE_I2C0) && RTE_I2C0
29 extern ARM_DRIVER_I2C Driver_I2C0;
30 #endif
31 
32 #if defined(I2C1) && defined(RTE_I2C1) && RTE_I2C1
33 extern ARM_DRIVER_I2C Driver_I2C1;
34 #endif
35 
36 #if defined(I2C2) && defined(RTE_I2C2) && RTE_I2C2
37 extern ARM_DRIVER_I2C Driver_I2C2;
38 #endif
39 
40 #if defined(I2C3) && defined(RTE_I2C3) && RTE_I2C3
41 extern ARM_DRIVER_I2C Driver_I2C3;
42 #endif
43 
44 #if defined(I2C4) && defined(RTE_I2C4) && RTE_I2C4
45 extern ARM_DRIVER_I2C Driver_I2C4;
46 #endif
47 
48 /* I2C Driver state flags */
49 #define I2C_FLAG_UNINIT (0UL)
50 #define I2C_FLAG_INIT   (1UL << 0)
51 #define I2C_FLAG_POWER  (1UL << 1)
52 
53 #endif
54