fsl_lpi2c_cmsis.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * Copyright (c) 2013-2016 ARM Limited. All rights reserved.
  3. * Copyright (c) 2016, Freescale Semiconductor, Inc. Not a Contribution.
  4. * Copyright 2016-2017,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. #ifndef _FSL_LPI2C_CMSIS_H_
  21. #define _FSL_LPI2C_CMSIS_H_
  22. #include "fsl_common.h"
  23. #include "Driver_I2C.h"
  24. #include "RTE_Device.h"
  25. #include "fsl_lpi2c.h"
  26. #if (defined(FSL_FEATURE_SOC_DMAMUX_COUNT) && FSL_FEATURE_SOC_DMAMUX_COUNT)
  27. #include "fsl_dmamux.h"
  28. #endif
  29. #if (defined(FSL_FEATURE_SOC_DMA_COUNT) && FSL_FEATURE_SOC_DMA_COUNT)
  30. #include "fsl_lpi2c_dma.h"
  31. #endif
  32. #if (defined(FSL_FEATURE_SOC_EDMA_COUNT) && FSL_FEATURE_SOC_EDMA_COUNT)
  33. #include "fsl_lpi2c_edma.h"
  34. #endif
  35. #if defined(LPI2C0) && defined(RTE_I2C0) && RTE_I2C0
  36. extern ARM_DRIVER_I2C Driver_I2C0;
  37. #endif /* LPI2C0 */
  38. #if defined(LPI2C1) && defined(RTE_I2C1) && RTE_I2C1
  39. extern ARM_DRIVER_I2C Driver_I2C1;
  40. #endif /* LPI2C1 */
  41. #if defined(LPI2C2) && defined(RTE_I2C2) && RTE_I2C2
  42. extern ARM_DRIVER_I2C Driver_I2C2;
  43. #endif /* LPI2C2 */
  44. #if defined(LPI2C3) && defined(RTE_I2C3) && RTE_I2C3
  45. extern ARM_DRIVER_I2C Driver_I2C3;
  46. #endif /* LPI2C3 */
  47. #if defined(LPI2C4) && defined(RTE_I2C4) && RTE_I2C4
  48. extern ARM_DRIVER_I2C Driver_I2C4;
  49. #endif /* LPI2C4 */
  50. #if defined(LPI2C5) && defined(RTE_I2C5) && RTE_I2C5
  51. extern ARM_DRIVER_I2C Driver_I2C5;
  52. #endif /* LPI2C5*/
  53. #if defined(LPI2C6) && defined(RTE_I2C6) && RTE_I2C6
  54. extern ARM_DRIVER_I2C Driver_I2C6;
  55. #endif /* LPI2C6 */
  56. /* I2C Driver state flags */
  57. #define I2C_FLAG_UNINIT (0UL)
  58. #define I2C_FLAG_INIT (1UL << 0)
  59. #define I2C_FLAG_POWER (1UL << 1)
  60. #endif /* _FSL_LPI2C_CMSIS_H_ */