Lpspi_Ip_Irq.c 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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 Lpspi_Ip_Irq.c
  26. * @implements Lpspi_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 LPSPI_DRIVER Lpspi 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 "Lpspi_Ip.h"
  46. /*==================================================================================================
  47. * SOURCE FILE VERSION INFORMATION
  48. ==================================================================================================*/
  49. #define LPSPI_IP_VENDOR_ID_IRQ_C 43
  50. #define LPSPI_IP_AR_RELEASE_MAJOR_VERSION_IRQ_C 4
  51. #define LPSPI_IP_AR_RELEASE_MINOR_VERSION_IRQ_C 4
  52. #define LPSPI_IP_AR_RELEASE_REVISION_VERSION_IRQ_C 0
  53. #define LPSPI_IP_SW_MAJOR_VERSION_IRQ_C 1
  54. #define LPSPI_IP_SW_MINOR_VERSION_IRQ_C 0
  55. #define LPSPI_IP_SW_PATCH_VERSION_IRQ_C 0
  56. /*==================================================================================================
  57. * FILE VERSION CHECKS
  58. ==================================================================================================*/
  59. /* Check if Lpspi_Ip.h and Lpspi_Ip_Irq.c are of the same vendor */
  60. #if (LPSPI_IP_VENDOR_ID != LPSPI_IP_VENDOR_ID_IRQ_C)
  61. #error "Lpspi_Ip.h and Lpspi_Ip_Irq.c have different vendor ids"
  62. #endif
  63. /* Check if Lpspi_Ip.h file and Lpspi_Ip_Irq.c file are of the same Autosar version */
  64. #if ((LPSPI_IP_AR_RELEASE_MAJOR_VERSION != LPSPI_IP_AR_RELEASE_MAJOR_VERSION_IRQ_C) || \
  65. (LPSPI_IP_AR_RELEASE_MINOR_VERSION != LPSPI_IP_AR_RELEASE_MINOR_VERSION_IRQ_C) || \
  66. (LPSPI_IP_AR_RELEASE_REVISION_VERSION != LPSPI_IP_AR_RELEASE_REVISION_VERSION_IRQ_C))
  67. #error "AutoSar Version Numbers of Lpspi_Ip.h and Lpspi_Ip_Irq.c are different"
  68. #endif
  69. #if ((LPSPI_IP_SW_MAJOR_VERSION != LPSPI_IP_SW_MAJOR_VERSION_IRQ_C) || \
  70. (LPSPI_IP_SW_MINOR_VERSION != LPSPI_IP_SW_MINOR_VERSION_IRQ_C) || \
  71. (LPSPI_IP_SW_PATCH_VERSION != LPSPI_IP_SW_PATCH_VERSION_IRQ_C))
  72. #error "Software Version Numbers of Lpspi_Ip.h and Lpspi_Ip_Irq.c 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. #define SPI_START_SEC_CODE
  96. #include "Spi_MemMap.h"
  97. #ifdef LPSPI_IP_0_ENABLED
  98. #if (LPSPI_IP_0_ENABLED == STD_ON)
  99. ISR(Lpspi_Ip_LPSPI_0_IRQHandler);
  100. #if (LPSPI_IP_DMA_USED == STD_ON)
  101. void Lpspi_Ip_LPSPI_0_IrqTxDmaHandler(void);
  102. void Lpspi_Ip_LPSPI_0_IrqRxDmaHandler(void);
  103. #endif
  104. #endif
  105. #endif
  106. #ifdef LPSPI_IP_1_ENABLED
  107. #if (LPSPI_IP_1_ENABLED == STD_ON)
  108. ISR(Lpspi_Ip_LPSPI_1_IRQHandler);
  109. #if (LPSPI_IP_DMA_USED == STD_ON)
  110. void Lpspi_Ip_LPSPI_1_IrqTxDmaHandler(void);
  111. void Lpspi_Ip_LPSPI_1_IrqRxDmaHandler(void);
  112. #endif
  113. #endif
  114. #endif
  115. #ifdef LPSPI_IP_2_ENABLED
  116. #if (LPSPI_IP_2_ENABLED == STD_ON)
  117. ISR(Lpspi_Ip_LPSPI_2_IRQHandler);
  118. #if (LPSPI_IP_DMA_USED == STD_ON)
  119. void Lpspi_Ip_LPSPI_2_IrqTxDmaHandler(void);
  120. void Lpspi_Ip_LPSPI_2_IrqRxDmaHandler(void);
  121. #endif
  122. #endif
  123. #endif
  124. #ifdef LPSPI_IP_3_ENABLED
  125. #if (LPSPI_IP_3_ENABLED == STD_ON)
  126. ISR(Lpspi_Ip_LPSPI_3_IRQHandler);
  127. #if (LPSPI_IP_DMA_USED == STD_ON)
  128. void Lpspi_Ip_LPSPI_3_IrqTxDmaHandler(void);
  129. void Lpspi_Ip_LPSPI_3_IrqRxDmaHandler(void);
  130. #endif
  131. #endif
  132. #endif
  133. #ifdef LPSPI_IP_4_ENABLED
  134. #if (LPSPI_IP_4_ENABLED == STD_ON)
  135. ISR(Lpspi_Ip_LPSPI_4_IRQHandler);
  136. #if (LPSPI_IP_DMA_USED == STD_ON)
  137. void Lpspi_Ip_LPSPI_4_IrqTxDmaHandler(void);
  138. void Lpspi_Ip_LPSPI_4_IrqRxDmaHandler(void);
  139. #endif
  140. #endif
  141. #endif
  142. #ifdef LPSPI_IP_5_ENABLED
  143. #if (LPSPI_IP_5_ENABLED == STD_ON)
  144. ISR(Lpspi_Ip_LPSPI_5_IRQHandler);
  145. #if (LPSPI_IP_DMA_USED == STD_ON)
  146. void Lpspi_Ip_LPSPI_5_IrqTxDmaHandler(void);
  147. void Lpspi_Ip_LPSPI_5_IrqRxDmaHandler(void);
  148. #endif
  149. #endif
  150. #endif
  151. /*==================================================================================================
  152. * LOCAL FUNCTIONS
  153. ==================================================================================================*/
  154. /*==================================================================================================
  155. * GLOBAL FUNCTIONS
  156. ==================================================================================================*/
  157. #ifdef LPSPI_IP_0_ENABLED
  158. #if (LPSPI_IP_0_ENABLED == STD_ON)
  159. ISR(Lpspi_Ip_LPSPI_0_IRQHandler)
  160. {
  161. Lpspi_Ip_IrqHandler(0u);
  162. EXIT_INTERRUPT();
  163. }
  164. #if (LPSPI_IP_DMA_USED == STD_ON)
  165. void Lpspi_Ip_LPSPI_0_IrqTxDmaHandler(void)
  166. {
  167. Lpspi_Ip_IrqTxDmaHandler(0u);
  168. }
  169. void Lpspi_Ip_LPSPI_0_IrqRxDmaHandler(void)
  170. {
  171. Lpspi_Ip_IrqRxDmaHandler(0u);
  172. }
  173. #endif
  174. #endif
  175. #endif
  176. #ifdef LPSPI_IP_1_ENABLED
  177. #if (LPSPI_IP_1_ENABLED == STD_ON)
  178. ISR(Lpspi_Ip_LPSPI_1_IRQHandler)
  179. {
  180. Lpspi_Ip_IrqHandler(1u);
  181. EXIT_INTERRUPT();
  182. }
  183. #if (LPSPI_IP_DMA_USED == STD_ON)
  184. void Lpspi_Ip_LPSPI_1_IrqTxDmaHandler(void)
  185. {
  186. Lpspi_Ip_IrqTxDmaHandler(1u);
  187. }
  188. void Lpspi_Ip_LPSPI_1_IrqRxDmaHandler(void)
  189. {
  190. Lpspi_Ip_IrqRxDmaHandler(1u);
  191. }
  192. #endif
  193. #endif
  194. #endif
  195. #ifdef LPSPI_IP_2_ENABLED
  196. #if (LPSPI_IP_2_ENABLED == STD_ON)
  197. ISR(Lpspi_Ip_LPSPI_2_IRQHandler)
  198. {
  199. Lpspi_Ip_IrqHandler(2u);
  200. EXIT_INTERRUPT();
  201. }
  202. #if (LPSPI_IP_DMA_USED == STD_ON)
  203. void Lpspi_Ip_LPSPI_2_IrqTxDmaHandler(void)
  204. {
  205. Lpspi_Ip_IrqTxDmaHandler(2u);
  206. }
  207. void Lpspi_Ip_LPSPI_2_IrqRxDmaHandler(void)
  208. {
  209. Lpspi_Ip_IrqRxDmaHandler(2u);
  210. }
  211. #endif
  212. #endif
  213. #endif
  214. #ifdef LPSPI_IP_3_ENABLED
  215. #if (LPSPI_IP_3_ENABLED == STD_ON)
  216. ISR(Lpspi_Ip_LPSPI_3_IRQHandler)
  217. {
  218. Lpspi_Ip_IrqHandler(3u);
  219. EXIT_INTERRUPT();
  220. }
  221. #if (LPSPI_IP_DMA_USED == STD_ON)
  222. void Lpspi_Ip_LPSPI_3_IrqTxDmaHandler(void)
  223. {
  224. Lpspi_Ip_IrqTxDmaHandler(3u);
  225. }
  226. void Lpspi_Ip_LPSPI_3_IrqRxDmaHandler(void)
  227. {
  228. Lpspi_Ip_IrqRxDmaHandler(3u);
  229. }
  230. #endif
  231. #endif
  232. #endif
  233. #ifdef LPSPI_IP_4_ENABLED
  234. #if (LPSPI_IP_4_ENABLED == STD_ON)
  235. ISR(Lpspi_Ip_LPSPI_4_IRQHandler)
  236. {
  237. Lpspi_Ip_IrqHandler(4u);
  238. EXIT_INTERRUPT();
  239. }
  240. #if (LPSPI_IP_DMA_USED == STD_ON)
  241. void Lpspi_Ip_LPSPI_4_IrqTxDmaHandler(void)
  242. {
  243. Lpspi_Ip_IrqTxDmaHandler(4u);
  244. }
  245. void Lpspi_Ip_LPSPI_4_IrqRxDmaHandler(void)
  246. {
  247. Lpspi_Ip_IrqRxDmaHandler(4u);
  248. }
  249. #endif
  250. #endif
  251. #endif
  252. #ifdef LPSPI_IP_5_ENABLED
  253. #if (LPSPI_IP_5_ENABLED == STD_ON)
  254. ISR(Lpspi_Ip_LPSPI_5_IRQHandler)
  255. {
  256. Lpspi_Ip_IrqHandler(5u);
  257. EXIT_INTERRUPT();
  258. }
  259. #if (LPSPI_IP_DMA_USED == STD_ON)
  260. void Lpspi_Ip_LPSPI_5_IrqTxDmaHandler(void)
  261. {
  262. Lpspi_Ip_IrqTxDmaHandler(5u);
  263. }
  264. void Lpspi_Ip_LPSPI_5_IrqRxDmaHandler(void)
  265. {
  266. Lpspi_Ip_IrqRxDmaHandler(5u);
  267. }
  268. #endif
  269. #endif
  270. #endif
  271. #define SPI_STOP_SEC_CODE
  272. #include "Spi_MemMap.h"
  273. #ifdef __cplusplus
  274. }
  275. #endif
  276. /** @} */