|
| 1 | +/* |
| 2 | + * Copyright (c) 2013-2016 ARM Limited. All rights reserved. |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: Apache-2.0 |
| 5 | + * |
| 6 | + * Licensed under the Apache License, Version 2.0 (the License); you may |
| 7 | + * not use this file except in compliance with the License. |
| 8 | + * You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, software |
| 13 | + * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
| 14 | + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + * See the License for the specific language governing permissions and |
| 16 | + * limitations under the License. |
| 17 | +
|
| 18 | + * Copyright (c) 2016, Freescale Semiconductor, Inc. |
| 19 | + * Copyright 2016-2017 NXP |
| 20 | + * |
| 21 | + * Redistribution and use in source and binary forms, with or without modification, |
| 22 | + * are permitted provided that the following conditions are met: |
| 23 | + * |
| 24 | + * o Redistributions of source code must retain the above copyright notice, this list |
| 25 | + * of conditions and the following disclaimer. |
| 26 | + * |
| 27 | + * o Redistributions in binary form must reproduce the above copyright notice, this |
| 28 | + * list of conditions and the following disclaimer in the documentation and/or |
| 29 | + * other materials provided with the distribution. |
| 30 | + * |
| 31 | + * o Neither the name of the copyright holder nor the names of its |
| 32 | + * contributors may be used to endorse or promote products derived from this |
| 33 | + * software without specific prior written permission. |
| 34 | + * |
| 35 | + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 36 | + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 37 | + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 38 | + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
| 39 | + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 40 | + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 41 | + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
| 42 | + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 43 | + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 44 | + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 45 | + */ |
| 46 | + |
| 47 | +#ifndef _FSL_I2C_CMSIS_H_ |
| 48 | +#define _FSL_I2C_CMSIS_H_ |
| 49 | +#include "fsl_common.h" |
| 50 | +#include "Driver_I2C.h" |
| 51 | +#include "RTE_Device.h" |
| 52 | +#include "fsl_i2c.h" |
| 53 | +#if (defined(FSL_FEATURE_SOC_DMAMUX_COUNT) && FSL_FEATURE_SOC_DMAMUX_COUNT) |
| 54 | +#include "fsl_dmamux.h" |
| 55 | +#endif |
| 56 | +#if (defined(FSL_FEATURE_SOC_DMA_COUNT) && FSL_FEATURE_SOC_DMA_COUNT) |
| 57 | +#include "fsl_i2c_dma.h" |
| 58 | +#endif |
| 59 | +#if (defined(FSL_FEATURE_SOC_EDMA_COUNT) && FSL_FEATURE_SOC_EDMA_COUNT) |
| 60 | +#include "fsl_i2c_edma.h" |
| 61 | +#endif |
| 62 | + |
| 63 | +#if defined(I2C0) |
| 64 | +extern ARM_DRIVER_I2C Driver_I2C0; |
| 65 | +#endif |
| 66 | + |
| 67 | +#if defined(I2C1) |
| 68 | +extern ARM_DRIVER_I2C Driver_I2C1; |
| 69 | +#endif |
| 70 | + |
| 71 | +#if defined(I2C2) |
| 72 | +extern ARM_DRIVER_I2C Driver_I2C2; |
| 73 | +#endif |
| 74 | + |
| 75 | +#if defined(I2C3) |
| 76 | +extern ARM_DRIVER_I2C Driver_I2C3; |
| 77 | +#endif |
| 78 | + |
| 79 | +#endif |
0 commit comments