Flexio_Spi_Ip_Irq.c 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : LPSPI
  5. * Dependencies :
  6. *
  7. * Autosar Version : 4.4.0
  8. * Autosar Revision : ASR_REL_4_4_REV_0000
  9. * Autosar Conf.Variant :
  10. * SW Version : 1.0.0
  11. * Build Version : S32K1_RTD_1_0_0_HF01_D2109_ASR_REL_4_4_REV_0000_20210907
  12. *
  13. * (c) Copyright 2020-2021 NXP Semiconductors
  14. * All Rights Reserved.
  15. *
  16. * NXP Confidential. This software is owned or controlled by NXP and may only be
  17. * used strictly in accordance with the applicable license terms. By expressly
  18. * accepting such terms or by downloading, installing, activating and/or otherwise
  19. * using the software, you are agreeing that you have read, and that you agree to
  20. * comply with and are bound by, such license terms. If you do not agree to be
  21. * bound by the applicable license terms, then you may not retain, install,
  22. * activate or otherwise use the software.
  23. ==================================================================================================*/
  24. /**
  25. * @file Flexio_Spi_Ip_Irq.c
  26. * @implements Flexio_Spi_Ip_Irq.c_Artifact
  27. * @version 1.0.0
  28. *
  29. * @brief AUTOSAR Spi - Post-Build(PB) configuration file.
  30. * @details Generated Post-Build(PB) configuration file.
  31. *
  32. * @addtogroup FLEXIO_SPI_IP_DRIVER Flexio_Spi Driver
  33. * @{
  34. */
  35. #ifdef __cplusplus
  36. extern "C"
  37. {
  38. #endif
  39. /*==================================================================================================
  40. * INCLUDE FILES
  41. * 1) system and project includes
  42. * 2) needed interfaces from external units
  43. * 3) internal and external interfaces from this unit
  44. ==================================================================================================*/
  45. #include "Flexio_Spi_Ip.h"
  46. /*==================================================================================================
  47. * SOURCE FILE VERSION INFORMATION
  48. ==================================================================================================*/
  49. #define FLEXIO_SPI_IP_IRQ_VENDOR_ID_C 43
  50. #define FLEXIO_SPI_IP_IRQ_AR_RELEASE_MAJOR_VERSION_C 4
  51. #define FLEXIO_SPI_IP_IRQ_AR_RELEASE_MINOR_VERSION_C 4
  52. #define FLEXIO_SPI_IP_IRQ_AR_RELEASE_REVISION_VERSION_C 0
  53. #define FLEXIO_SPI_IP_IRQ_SW_MAJOR_VERSION_C 1
  54. #define FLEXIO_SPI_IP_IRQ_SW_MINOR_VERSION_C 0
  55. #define FLEXIO_SPI_IP_IRQ_SW_PATCH_VERSION_C 0
  56. /*==================================================================================================
  57. * FILE VERSION CHECKS
  58. ==================================================================================================*/
  59. /* Check if Flexio_Spi_Ip_Irq.h and Flexio_Spi_Ip.c are of the same vendor */
  60. #if (FLEXIO_SPI_IP_IRQ_VENDOR_ID_C != FLEXIO_SPI_IP_VENDOR_ID)
  61. #error "Flexio_Spi_Ip_Irq.h and Flexio_Spi_Ip.h have different vendor ids"
  62. #endif
  63. /* Check if Flexio_Spi_Ip_Irq.h file and Flexio_Spi_Ip.h file are of the same Autosar version */
  64. #if ((FLEXIO_SPI_IP_IRQ_AR_RELEASE_MAJOR_VERSION_C != FLEXIO_SPI_IP_AR_RELEASE_MAJOR_VERSION) || \
  65. (FLEXIO_SPI_IP_IRQ_AR_RELEASE_MINOR_VERSION_C != FLEXIO_SPI_IP_AR_RELEASE_MINOR_VERSION) || \
  66. (FLEXIO_SPI_IP_IRQ_AR_RELEASE_REVISION_VERSION_C != FLEXIO_SPI_IP_AR_RELEASE_REVISION_VERSION))
  67. #error "AutoSar Version Numbers of Flexio_Spi_Ip_Irq.h and Flexio_Spi_Ip.h are different"
  68. #endif
  69. #if ((FLEXIO_SPI_IP_IRQ_SW_MAJOR_VERSION_C != FLEXIO_SPI_IP_SW_MAJOR_VERSION) || \
  70. (FLEXIO_SPI_IP_IRQ_SW_MINOR_VERSION_C != FLEXIO_SPI_IP_SW_MINOR_VERSION) || \
  71. (FLEXIO_SPI_IP_IRQ_SW_PATCH_VERSION_C != FLEXIO_SPI_IP_SW_PATCH_VERSION))
  72. #error "Software Version Numbers of Flexio_Spi_Ip_Irq.h and Flexio_Spi_Ip.h are different"
  73. #endif
  74. /*==================================================================================================
  75. * LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
  76. ==================================================================================================*/
  77. /*==================================================================================================
  78. * LOCAL MACROS
  79. ==================================================================================================*/
  80. /*==================================================================================================
  81. * LOCAL CONSTANTS
  82. ==================================================================================================*/
  83. /*==================================================================================================
  84. * LOCAL VARIABLES
  85. ==================================================================================================*/
  86. /*==================================================================================================
  87. * GLOBAL CONSTANTS
  88. ==================================================================================================*/
  89. /*==================================================================================================
  90. * GLOBAL VARIABLES
  91. ==================================================================================================*/
  92. /*==================================================================================================
  93. * LOCAL FUNCTION PROTOTYPES
  94. ==================================================================================================*/
  95. #if (FLEXIO_SPI_IP_ENABLE == STD_ON)
  96. #define SPI_START_SEC_CODE
  97. #include "Spi_MemMap.h"
  98. #ifdef FLEXIO_SPI_IP_0_ENABLED
  99. #if (FLEXIO_SPI_IP_0_ENABLED == STD_ON)
  100. #if (FLEXIO_SPI_IP_DMA_USED == STD_ON)
  101. void Flexio_Spi_Ip_FLEXIO_SPI_0_IrqTxDmaHandler(void);
  102. void Flexio_Spi_Ip_FLEXIO_SPI_0_IrqRxDmaHandler(void);
  103. #endif
  104. #endif
  105. #endif
  106. #ifdef FLEXIO_SPI_IP_1_ENABLED
  107. #if (FLEXIO_SPI_IP_1_ENABLED == STD_ON)
  108. #if (FLEXIO_SPI_IP_DMA_USED == STD_ON)
  109. void Flexio_Spi_Ip_FLEXIO_SPI_1_IrqTxDmaHandler(void);
  110. void Flexio_Spi_Ip_FLEXIO_SPI_1_IrqRxDmaHandler(void);
  111. #endif
  112. #endif
  113. #endif
  114. #ifdef FLEXIO_SPI_IP_2_ENABLED
  115. #if (FLEXIO_SPI_IP_2_ENABLED == STD_ON)
  116. #if (FLEXIO_SPI_IP_DMA_USED == STD_ON)
  117. void Flexio_Spi_Ip_FLEXIO_SPI_2_IrqTxDmaHandler(void);
  118. void Flexio_Spi_Ip_FLEXIO_SPI_2_IrqRxDmaHandler(void);
  119. #endif
  120. #endif
  121. #endif
  122. #ifdef FLEXIO_SPI_IP_3_ENABLED
  123. #if (FLEXIO_SPI_IP_3_ENABLED == STD_ON)
  124. #if (FLEXIO_SPI_IP_DMA_USED == STD_ON)
  125. void Flexio_Spi_Ip_FLEXIO_SPI_3_IrqTxDmaHandler(void);
  126. void Flexio_Spi_Ip_FLEXIO_SPI_3_IrqRxDmaHandler(void);
  127. #endif
  128. #endif
  129. #endif
  130. /*==================================================================================================
  131. * LOCAL FUNCTIONS
  132. ==================================================================================================*/
  133. /*==================================================================================================
  134. * GLOBAL FUNCTIONS
  135. ==================================================================================================*/
  136. #ifdef FLEXIO_SPI_IP_0_ENABLED
  137. #if (FLEXIO_SPI_IP_0_ENABLED == STD_ON)
  138. #if (FLEXIO_SPI_IP_DMA_USED == STD_ON)
  139. void Flexio_Spi_Ip_FLEXIO_SPI_0_IrqTxDmaHandler(void)
  140. {
  141. Flexio_Spi_Ip_IrqTxDmaHandler(0u);
  142. }
  143. void Flexio_Spi_Ip_FLEXIO_SPI_0_IrqRxDmaHandler(void)
  144. {
  145. Flexio_Spi_Ip_IrqRxDmaHandler(0u);
  146. }
  147. #endif
  148. #endif
  149. #endif
  150. #ifdef FLEXIO_SPI_IP_1_ENABLED
  151. #if (FLEXIO_SPI_IP_1_ENABLED == STD_ON)
  152. #if (FLEXIO_SPI_IP_DMA_USED == STD_ON)
  153. void Flexio_Spi_Ip_FLEXIO_SPI_1_IrqTxDmaHandler(void)
  154. {
  155. Flexio_Spi_Ip_IrqTxDmaHandler(1u);
  156. }
  157. void Flexio_Spi_Ip_FLEXIO_SPI_1_IrqRxDmaHandler(void)
  158. {
  159. Flexio_Spi_Ip_IrqRxDmaHandler(1u);
  160. }
  161. #endif
  162. #endif
  163. #endif
  164. #ifdef FLEXIO_SPI_IP_2_ENABLED
  165. #if (FLEXIO_SPI_IP_2_ENABLED == STD_ON)
  166. #if (FLEXIO_SPI_IP_DMA_USED == STD_ON)
  167. void Flexio_Spi_Ip_FLEXIO_SPI_2_IrqTxDmaHandler(void)
  168. {
  169. Flexio_Spi_Ip_IrqTxDmaHandler(2u);
  170. }
  171. void Flexio_Spi_Ip_FLEXIO_SPI_2_IrqRxDmaHandler(void)
  172. {
  173. Flexio_Spi_Ip_IrqRxDmaHandler(2u);
  174. }
  175. #endif
  176. #endif
  177. #endif
  178. #ifdef FLEXIO_SPI_IP_3_ENABLED
  179. #if (FLEXIO_SPI_IP_3_ENABLED == STD_ON)
  180. #if (FLEXIO_SPI_IP_DMA_USED == STD_ON)
  181. void Flexio_Spi_Ip_FLEXIO_SPI_3_IrqTxDmaHandler(void)
  182. {
  183. Flexio_Spi_Ip_IrqTxDmaHandler(3u);
  184. }
  185. void Flexio_Spi_Ip_FLEXIO_SPI_3_IrqRxDmaHandler(void)
  186. {
  187. Flexio_Spi_Ip_IrqRxDmaHandler(3u);
  188. }
  189. #endif
  190. #endif
  191. #endif
  192. #define SPI_STOP_SEC_CODE
  193. #include "Spi_MemMap.h"
  194. #endif /*(FLEXIO_SPI_IP_ENABLE == STD_ON)*/
  195. #ifdef __cplusplus
  196. }
  197. #endif
  198. /** @} */