Flexio_Mcl_Ip_Irq.c 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral : DMA,CACHE,TRGMUX,FLEXIO
  5. * Dependencies : none
  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_Mcl_Ip_Irq.c
  26. *
  27. * @version 1.0.0
  28. *
  29. * @brief AUTOSAR Mcl - Flexio Common Irq source file.
  30. * @details
  31. *
  32. * @addtogroup FLEXIO_IP_IRQ_DRIVER FLEXIO IP IRQ Driver
  33. * @{
  34. */
  35. #ifdef __cplusplus
  36. extern "C"{
  37. #endif
  38. /*==================================================================================================
  39. * INCLUDE FILES
  40. * 1) system and project includes
  41. * 2) needed interfaces from external units
  42. * 3) internal and external interfaces from this unit
  43. ==================================================================================================*/
  44. #include "Flexio_Mcl_Ip.h"
  45. #include "Flexio_Mcl_Ip_Cfg_DeviceRegisters.h"
  46. #include "Mcal.h"
  47. #ifdef USE_LIN_MODULE
  48. #include "Flexio_Lin_Ip_Irq.h"
  49. #endif
  50. #ifdef USE_SPI_MODULE
  51. #include "Flexio_Spi_Ip_Irq.h"
  52. #endif
  53. #ifdef USE_I2C_MODULE
  54. #include "Flexio_I2c_Ip_Irq.h"
  55. #endif
  56. #ifdef USE_SENT_MODULE
  57. #include "Flexio_Sent_Ip_Irq.h"
  58. #endif
  59. #ifdef USE_UART_MODULE
  60. #include "Flexio_Uart_Ip_Irq.h"
  61. #endif
  62. #ifdef USE_PWM_MODULE
  63. #include "Flexio_Pwm_Ip_Irq.h"
  64. #define FLEXIO_IP_PIN_ISR_USED (STD_ON)
  65. #ifdef PWM_CHANNEL_0_USED
  66. #define PWM_CHANNEL_0_PIN_ISR_MASK FLEXIO_PWM_IP_CHANNEL_0_PINMASK
  67. #endif
  68. #ifdef PWM_CHANNEL_1_USED
  69. #define PWM_CHANNEL_1_PIN_ISR_MASK FLEXIO_PWM_IP_CHANNEL_1_PINMASK
  70. #endif
  71. #ifdef PWM_CHANNEL_2_USED
  72. #define PWM_CHANNEL_2_PIN_ISR_MASK FLEXIO_PWM_IP_CHANNEL_2_PINMASK
  73. #endif
  74. #ifdef PWM_CHANNEL_3_USED
  75. #define PWM_CHANNEL_3_PIN_ISR_MASK FLEXIO_PWM_IP_CHANNEL_3_PINMASK
  76. #endif
  77. #ifdef PWM_CHANNEL_4_USED
  78. #define PWM_CHANNEL_4_PIN_ISR_MASK FLEXIO_PWM_IP_CHANNEL_4_PINMASK
  79. #endif
  80. #ifdef PWM_CHANNEL_5_USED
  81. #define PWM_CHANNEL_5_PIN_ISR_MASK FLEXIO_PWM_IP_CHANNEL_5_PINMASK
  82. #endif
  83. #ifdef PWM_CHANNEL_6_USED
  84. #define PWM_CHANNEL_6_PIN_ISR_MASK FLEXIO_PWM_IP_CHANNEL_6_PINMASK
  85. #endif
  86. #ifdef PWM_CHANNEL_7_USED
  87. #define PWM_CHANNEL_7_PIN_ISR_MASK FLEXIO_PWM_IP_CHANNEL_7_PINMASK
  88. #endif
  89. #endif
  90. /*==================================================================================================
  91. * SOURCE FILE VERSION INFORMATION
  92. ==================================================================================================*/
  93. #define FLEXIO_MCL_IP_IRQ_VENDOR_ID_C 43
  94. #define FLEXIO_MCL_IP_IRQ_AR_RELEASE_MAJOR_VERSION_C 4
  95. #define FLEXIO_MCL_IP_IRQ_AR_RELEASE_MINOR_VERSION_C 4
  96. #define FLEXIO_MCL_IP_IRQ_AR_RELEASE_REVISION_VERSION_C 0
  97. #define FLEXIO_MCL_IP_IRQ_SW_MAJOR_VERSION_C 1
  98. #define FLEXIO_MCL_IP_IRQ_SW_MINOR_VERSION_C 0
  99. #define FLEXIO_MCL_IP_IRQ_SW_PATCH_VERSION_C 0
  100. /*==================================================================================================
  101. * FILE VERSION CHECKS
  102. ==================================================================================================*/
  103. /* Check if Flexio_Mcl_Ip_Irq.c file and Flexio_Mcl_Ip.h file are of the same vendor */
  104. #if (FLEXIO_MCL_IP_IRQ_VENDOR_ID_C != FLEXIO_MCL_IP_VENDOR_ID_H)
  105. #error "Flexio_Mcl_Ip_Irq.c and Flexio_Mcl_Ip.h have different vendor ids"
  106. #endif
  107. /* Check if Flexio_Mcl_Ip_Irq.c file and Flexio_Mcl_Ip.h file are of the same Autosar version */
  108. #if ((FLEXIO_MCL_IP_IRQ_AR_RELEASE_MAJOR_VERSION_C != FLEXIO_MCL_IP_AR_RELEASE_MAJOR_VERSION_H) || \
  109. (FLEXIO_MCL_IP_IRQ_AR_RELEASE_MINOR_VERSION_C != FLEXIO_MCL_IP_AR_RELEASE_MINOR_VERSION_H) || \
  110. (FLEXIO_MCL_IP_IRQ_AR_RELEASE_REVISION_VERSION_C != FLEXIO_MCL_IP_AR_RELEASE_REVISION_VERSION_H) \
  111. )
  112. #error "AutoSar Version Numbers of Flexio_Mcl_Ip_Irq.c and Flexio_Mcl_Ip.h are different"
  113. #endif
  114. /* Check if Flexio_Mcl_Ip_Irq.c file and Flexio_Mcl_Ip.h file are of the same Software version */
  115. #if ((FLEXIO_MCL_IP_IRQ_SW_MAJOR_VERSION_C != FLEXIO_MCL_IP_SW_MAJOR_VERSION_H) || \
  116. (FLEXIO_MCL_IP_IRQ_SW_MINOR_VERSION_C != FLEXIO_MCL_IP_SW_MINOR_VERSION_H) || \
  117. (FLEXIO_MCL_IP_IRQ_SW_PATCH_VERSION_C != FLEXIO_MCL_IP_SW_PATCH_VERSION_H) \
  118. )
  119. #error "Software Version Numbers of Flexio_Mcl_Ip_Irq.c and Flexio_Mcl_Ip.h are different"
  120. #endif
  121. /* Check if Flexio_Mcl_Ip_Irq.c file and Flexio_Mcl_Ip_Cfg_DeviceRegisters.h file are of the same vendor */
  122. #if (FLEXIO_MCL_IP_IRQ_VENDOR_ID_C != FLEXIO_MCL_IP_CFG_DEVICEREGISTERS_VENDOR_ID_H)
  123. #error "Flexio_Mcl_Ip_Irq.c and Flexio_Mcl_Ip_Cfg_DeviceRegisters.h have different vendor ids"
  124. #endif
  125. /* Check if Flexio_Mcl_Ip_Irq.c file and Flexio_Mcl_Ip_Cfg_DeviceRegisters.h file are of the same Autosar version */
  126. #if ((FLEXIO_MCL_IP_IRQ_AR_RELEASE_MAJOR_VERSION_C != FLEXIO_MCL_IP_CFG_DEVICEREGISTERS_AR_RELEASE_MAJOR_VERSION_H) || \
  127. (FLEXIO_MCL_IP_IRQ_AR_RELEASE_MINOR_VERSION_C != FLEXIO_MCL_IP_CFG_DEVICEREGISTERS_AR_RELEASE_MINOR_VERSION_H) || \
  128. (FLEXIO_MCL_IP_IRQ_AR_RELEASE_REVISION_VERSION_C != FLEXIO_MCL_IP_CFG_DEVICEREGISTERS_AR_RELEASE_REVISION_VERSION_H) \
  129. )
  130. #error "AutoSar Version Numbers of Flexio_Mcl_Ip_Irq.c and Flexio_Mcl_Ip_Cfg_DeviceRegisters.h are different"
  131. #endif
  132. /* Check if Flexio_Mcl_Ip_Irq.c file and Flexio_Mcl_Ip_Cfg_DeviceRegisters.h file are of the same Software version */
  133. #if ((FLEXIO_MCL_IP_IRQ_SW_MAJOR_VERSION_C != FLEXIO_MCL_IP_CFG_DEVICEREGISTERS_SW_MAJOR_VERSION_H) || \
  134. (FLEXIO_MCL_IP_IRQ_SW_MINOR_VERSION_C != FLEXIO_MCL_IP_CFG_DEVICEREGISTERS_SW_MINOR_VERSION_H) || \
  135. (FLEXIO_MCL_IP_IRQ_SW_PATCH_VERSION_C != FLEXIO_MCL_IP_CFG_DEVICEREGISTERS_SW_PATCH_VERSION_H) \
  136. )
  137. #error "Software Version Numbers of Flexio_Mcl_Ip_Irq.c and Flexio_Mcl_Ip_Cfg_DeviceRegisters.h are different"
  138. #endif
  139. #ifndef DISABLE_MCAL_INTERMODULE_ASR_CHECK
  140. /* Check if Flexio_Mcl_Ip_Irq.c file and Mcal header file are of the same Autosar version */
  141. #if ((FLEXIO_MCL_IP_IRQ_AR_RELEASE_MAJOR_VERSION_C != MCAL_AR_RELEASE_MAJOR_VERSION) || \
  142. (FLEXIO_MCL_IP_IRQ_AR_RELEASE_MINOR_VERSION_C != MCAL_AR_RELEASE_MINOR_VERSION))
  143. #error "AutoSar Version Numbers of Flexio_Mcl_Ip_Irq.c and Mcal.h are different"
  144. #endif
  145. #ifdef USE_LIN_MODULE
  146. /* Check if Flexio_Mcl_Ip_Irq.c file and Flexio_Lin_Ip_Irq header file are of the same Autosar version */
  147. #if ((FLEXIO_MCL_IP_IRQ_AR_RELEASE_MAJOR_VERSION_C != FLEXIO_LIN_IP_IRQ_AR_RELEASE_MAJOR_VERSION) || \
  148. (FLEXIO_MCL_IP_IRQ_AR_RELEASE_MINOR_VERSION_C != FLEXIO_LIN_IP_IRQ_AR_RELEASE_MINOR_VERSION))
  149. #error "AutoSar Version Numbers of Flexio_Mcl_Ip_Irq.c and Flexio_Lin_Ip_Irq.h are different"
  150. #endif
  151. #endif /* USE_LIN_MODULE */
  152. #ifdef USE_SPI_MODULE
  153. /* Check if Flexio_Mcl_Ip_Irq.c file and Flexio_Spi_Ip_Irq header file are of the same Autosar version */
  154. #if ((FLEXIO_MCL_IP_IRQ_AR_RELEASE_MAJOR_VERSION_C != FLEXIO_SPI_IP_IRQ_AR_RELEASE_MAJOR_VERSION) || \
  155. (FLEXIO_MCL_IP_IRQ_AR_RELEASE_MINOR_VERSION_C != FLEXIO_SPI_IP_IRQ_AR_RELEASE_MINOR_VERSION))
  156. #error "AutoSar Version Numbers of Flexio_Mcl_Ip_Irq.c and Flexio_Spi_Ip_Irq.h are different"
  157. #endif
  158. #endif /* USE_SPI_MODULE */
  159. #ifdef USE_I2C_MODULE
  160. /* Check if Flexio_Mcl_Ip_Irq.c file and Flexio_I2c_Ip_Irq header file are of the same Autosar version */
  161. #if ((FLEXIO_MCL_IP_IRQ_AR_RELEASE_MAJOR_VERSION_C != FLEXIO_I2C_IP_IRQ_AR_RELEASE_MAJOR_VERSION) || \
  162. (FLEXIO_MCL_IP_IRQ_AR_RELEASE_MINOR_VERSION_C != FLEXIO_I2C_IP_IRQ_AR_RELEASE_MINOR_VERSION))
  163. #error "AutoSar Version Numbers of Flexio_Mcl_Ip_Irq.c and Flexio_I2c_Ip_Irq.h are different"
  164. #endif
  165. #endif /* USE_I2C_MODULE */
  166. #ifdef USE_UART_MODULE
  167. /* Check if Flexio_Mcl_Ip_Irq.c file and Flexio_Uart_Ip_Irq header file are of the same Autosar version */
  168. #if ((FLEXIO_MCL_IP_IRQ_AR_RELEASE_MAJOR_VERSION_C != FLEXIO_UART_IP_IRQ_AR_RELEASE_MAJOR_VERSION) || \
  169. (FLEXIO_MCL_IP_IRQ_AR_RELEASE_MINOR_VERSION_C != FLEXIO_UART_IP_IRQ_AR_RELEASE_MINOR_VERSION))
  170. #error "AutoSar Version Numbers of Flexio_Mcl_Ip_Irq.c and Flexio_Uart_Ip_Irq.h are different"
  171. #endif
  172. #endif /* USE_UART_MODULE */
  173. #ifdef USE_PWM_MODULE
  174. /* Check if Flexio_Mcl_Ip_Irq.c file and Flexio_Pwm_Ip_Irq header file are of the same Autosar version */
  175. #if ((FLEXIO_MCL_IP_IRQ_AR_RELEASE_MAJOR_VERSION_C != FLEXIO_PWM_IP_IRQ_AR_RELEASE_MAJOR_VERSION) || \
  176. (FLEXIO_MCL_IP_IRQ_AR_RELEASE_MINOR_VERSION_C != FLEXIO_PWM_IP_IRQ_AR_RELEASE_MINOR_VERSION))
  177. #error "AutoSar Version Numbers of Flexio_Mcl_Ip_Irq.c and Flexio_Pwm_Ip_Irq.h are different"
  178. #endif
  179. #endif /* USE_PWM_MODULE */
  180. #endif /* DISABLE_MCAL_INTERMODULE_ASR_CHECK */
  181. /*==================================================================================================
  182. * LOCAL TYPEDEFS (STRUCTURES, UNIONS, ENUMS)
  183. ==================================================================================================*/
  184. /*==================================================================================================
  185. * LOCAL CONSTANTS
  186. ==================================================================================================*/
  187. #define FLEXIO_CHANNEL_0_MASK ((uint8)0x01U)
  188. #define FLEXIO_CHANNEL_1_MASK ((uint8)0x02U)
  189. #define FLEXIO_CHANNEL_2_MASK ((uint8)0x04U)
  190. #define FLEXIO_CHANNEL_3_MASK ((uint8)0x08U)
  191. #define FLEXIO_CHANNEL_4_MASK ((uint8)0x10U)
  192. #define FLEXIO_CHANNEL_5_MASK ((uint8)0x20U)
  193. #define FLEXIO_CHANNEL_6_MASK ((uint8)0x40U)
  194. #define FLEXIO_CHANNEL_7_MASK ((uint8)0x80U)
  195. #define FLEXIO_CHANNEL_0 ((uint8)0U)
  196. #define FLEXIO_CHANNEL_1 ((uint8)1U)
  197. #define FLEXIO_CHANNEL_2 ((uint8)2U)
  198. #define FLEXIO_CHANNEL_3 ((uint8)3U)
  199. #define FLEXIO_CHANNEL_4 ((uint8)4U)
  200. #define FLEXIO_CHANNEL_5 ((uint8)5U)
  201. #define FLEXIO_CHANNEL_6 ((uint8)6U)
  202. #define FLEXIO_CHANNEL_7 ((uint8)7U)
  203. #define FLEXIO_INSTANCE_NO ((uint8)0U)
  204. /*==================================================================================================
  205. * LOCAL VARIABLES
  206. ==================================================================================================*/
  207. /*==================================================================================================
  208. * GLOBAL CONSTANTS
  209. ==================================================================================================*/
  210. /*==================================================================================================
  211. * GLOBAL VARIABLES
  212. ==================================================================================================*/
  213. /*==================================================================================================
  214. * LOCAL FUNCTION PROTOTYPES
  215. ==================================================================================================*/
  216. /*==================================================================================================
  217. * LOCAL FUNCTIONS
  218. ==================================================================================================*/
  219. /*==================================================================================================
  220. * GLOBAL FUNCTIONS PROTOTYPES
  221. ==================================================================================================*/
  222. #ifdef USE_PWM_MODULE
  223. #if (defined(FLEXIO_PWM_IP_HAS_PIN_OVERRIDE) && (FLEXIO_PWM_IP_HAS_PIN_OVERRIDE == STD_ON))
  224. extern void Flexio_Pwm_Ip_IrqHandler (uint8 channelId, uint8 timerFlags, uint32 pinFlags);
  225. #else
  226. extern void Flexio_Pwm_Ip_IrqHandler (uint8 channelId, uint8 timerFlags);
  227. #endif /* #if (defined(FLEXIO_PWM_IP_HAS_PIN_OVERRIDE) && (FLEXIO_PWM_IP_HAS_PIN_OVERRIDE == STD_ON)) */
  228. #endif
  229. #ifdef USE_UART_MODULE
  230. extern void Flexio_Uart_Ip_IrqHandler(uint8 u8Channel, uint8 u8ShifterMaskFlag, uint8 u8ShifterErrorMaskFlag, uint8 u8TimerMaskFlag);
  231. #endif
  232. #ifdef USE_I2C_MODULE
  233. extern void Flexio_I2c_Ip_IrqHandler (uint8 u8Channel, uint8 u8ShifterMaskFlag, uint8 u8ShifterErrorMaskFlag, uint8 u8TimerMaskFlag);
  234. #endif
  235. #ifdef USE_LIN_MODULE
  236. extern void Flexio_Lin_Ip_IrqHandler (uint8 u8Channel, uint8 u8ShifterMaskFlag, uint8 u8ShifterErrorMaskFlag);
  237. #endif
  238. #ifdef USE_SPI_MODULE
  239. extern void Flexio_Spi_Ip_IrqHandler (uint8 u8Channel, uint8 u8ShifterMaskFlag, uint8 u8ShifterErrorMaskFlag);
  240. #endif
  241. #ifdef USE_SENT_MODULE
  242. extern void Flexio_Sent_Ip_IrqHandler(uint8 u8Channel, uint8 u8TimerMaskFlag);
  243. #endif
  244. static void Flexio_Mcl_Ip_CommonIrq(void);
  245. /*==================================================================================================
  246. GLOBAL FUNCTIONS
  247. ==================================================================================================*/
  248. #define MCL_START_SEC_CODE
  249. #include "Mcl_MemMap.h"
  250. static void Flexio_Mcl_Ip_CommonIrq(void)
  251. {
  252. FLEXIO_Type *baseAddr;
  253. baseAddr = flexioBase[FLEXIO_INSTANCE_NO];
  254. #if defined(USE_UART_MODULE) || defined(USE_LIN_MODULE) || defined(USE_I2C_MODULE) || defined(USE_SPI_MODULE)
  255. uint8 u8ShifterMaskFlag = (uint8)Flexio_Mcl_Ip_GetAllShifterStatus(baseAddr);
  256. uint8 u8ShifterEnabledIrq = (uint8)Flexio_Mcl_Ip_GetAllShifterInterrupt(baseAddr);
  257. uint8 u8ShifterErrEnabledIrq = (uint8)Flexio_Mcl_Ip_GetAllShifterErrorInterrupt(baseAddr);
  258. #endif
  259. uint8 u8ShifterErrMaskFlag = (uint8)Flexio_Mcl_Ip_GetAllShifterErrorStatus(baseAddr);
  260. uint8 u8TimerMaskFlag = (uint8)Flexio_Mcl_Ip_GetAllTimerStatus(baseAddr);
  261. #if defined(USE_UART_MODULE) || defined(USE_I2C_MODULE) || defined(USE_PWM_MODULE) || defined(USE_SENT_MODULE)
  262. uint8 u8TimerEnabledIrq = (uint8)Flexio_Mcl_Ip_GetAllTimerInterrupt(baseAddr);
  263. #endif
  264. #if (FLEXIO_MCL_IP_PIN_STS_IS_AVAILABLE == STD_ON)
  265. #ifdef FLEXIO_IP_PIN_ISR_USED
  266. uint32 u32PinMaskFlag = Flexio_Mcl_Ip_GetAllPinsStatus(baseAddr);
  267. uint32 u32PinEnabledIrq = Flexio_Mcl_Ip_GetAllPinsInterrupt(baseAddr);
  268. #endif
  269. #endif /* FLEXIO_MCL_IP_PIN_STS_IS_AVAILABLE == STD_ON */
  270. if (Flexio_Ip_IpIsInitialized[FLEXIO_INSTANCE_NO])
  271. {
  272. #if defined(USE_UART_MODULE) || defined(USE_LIN_MODULE) || defined(USE_I2C_MODULE) || defined(USE_SPI_MODULE)
  273. /* Clear the flags */
  274. baseAddr->SHIFTERR |= (uint32) (u8ShifterErrMaskFlag & u8ShifterErrEnabledIrq);
  275. #endif
  276. #if defined(USE_UART_MODULE) || defined(USE_I2C_MODULE) || defined(USE_PWM_MODULE) || defined(USE_SENT_MODULE)
  277. /* Clear the flags */
  278. baseAddr->TIMSTAT |= (uint32) (u8TimerMaskFlag & u8TimerEnabledIrq);
  279. #endif
  280. #if (FLEXIO_MCL_IP_PIN_STS_IS_AVAILABLE == STD_ON)
  281. #ifdef FLEXIO_IP_PIN_ISR_USED
  282. /* Clear the flags */
  283. baseAddr->PINSTAT |= u32PinMaskFlag & u32PinEnabledIrq;
  284. #endif
  285. #endif /* FLEXIO_MCL_IP_PIN_STS_IS_AVAILABLE == STD_ON */
  286. #ifdef FLEXIO_0_CH_0_USED
  287. #if defined(UART_CHANNEL_0_USED) || defined(I2C_CHANNEL_0_USED)
  288. if ( ((uint8)0U != (u8ShifterMaskFlag & u8ShifterEnabledIrq & FLEXIO_CHANNEL_0_MASK)) ||
  289. ((uint8)0U != (u8ShifterErrMaskFlag & u8ShifterErrEnabledIrq & FLEXIO_CHANNEL_0_MASK)) ||
  290. ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_0_MASK))
  291. )
  292. {
  293. #ifdef UART_CHANNEL_0_USED
  294. Flexio_Uart_Ip_IrqHandler(FLEXIO_CHANNEL_0, u8ShifterMaskFlag, u8ShifterErrMaskFlag, u8TimerMaskFlag);
  295. #endif
  296. #ifdef I2C_CHANNEL_0_USED
  297. Flexio_I2c_Ip_IrqHandler(FLEXIO_CHANNEL_0, u8ShifterMaskFlag, u8ShifterErrMaskFlag, u8TimerMaskFlag);
  298. #endif
  299. }
  300. #elif defined(SPI_CHANNEL_0_USED) || defined(LIN_CHANNEL_0_USED)
  301. if ( ((uint8)0U != (u8ShifterMaskFlag & u8ShifterEnabledIrq & FLEXIO_CHANNEL_0_MASK)) ||
  302. ((uint8)0U != (u8ShifterErrMaskFlag & u8ShifterErrEnabledIrq & FLEXIO_CHANNEL_0_MASK))
  303. )
  304. {
  305. #ifdef SPI_CHANNEL_0_USED
  306. Flexio_Spi_Ip_IrqHandler(FLEXIO_CHANNEL_0, u8ShifterMaskFlag, u8ShifterErrMaskFlag);
  307. #endif
  308. #ifdef LIN_CHANNEL_0_USED
  309. Flexio_Lin_Ip_IrqHandler(FLEXIO_CHANNEL_0, u8ShifterMaskFlag, u8ShifterErrMaskFlag);
  310. #endif
  311. }
  312. #elif defined(SENT_CHANNEL_0_USED)
  313. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_0_MASK))
  314. {
  315. Flexio_Sent_Ip_IrqHandler(FLEXIO_CHANNEL_0, u8TimerMaskFlag);
  316. }
  317. #elif defined(PWM_CHANNEL_0_USED)
  318. #if (defined(FLEXIO_PWM_IP_HAS_PIN_OVERRIDE) && (FLEXIO_PWM_IP_HAS_PIN_OVERRIDE == STD_ON))
  319. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_0_MASK) ||
  320. (uint8)0U != (u32PinMaskFlag & u32PinEnabledIrq & PWM_CHANNEL_0_PIN_ISR_MASK)
  321. )
  322. {
  323. Flexio_Pwm_Ip_IrqHandler(FLEXIO_CHANNEL_0, u8TimerMaskFlag, u32PinMaskFlag);
  324. #else
  325. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_0_MASK))
  326. {
  327. Flexio_Pwm_Ip_IrqHandler(FLEXIO_CHANNEL_0, u8TimerMaskFlag);
  328. #endif /* #if (defined(FLEXIO_PWM_IP_HAS_PIN_OVERRIDE) && (FLEXIO_PWM_IP_HAS_PIN_OVERRIDE == STD_ON)) */
  329. }
  330. #endif /* if defined(UART_CHANNEL_0_USED) || defined(I2C_CHANNEL_0_USED) */
  331. #endif /*ifdef FLEXIO_0_CH_0_USED*/
  332. #ifdef FLEXIO_0_CH_1_USED
  333. #if defined(UART_CHANNEL_1_USED) || defined(I2C_CHANNEL_1_USED)
  334. if ( ((uint8)0U != (u8ShifterMaskFlag & u8ShifterEnabledIrq & FLEXIO_CHANNEL_1_MASK)) ||
  335. ((uint8)0U != (u8ShifterErrMaskFlag & u8ShifterErrEnabledIrq & FLEXIO_CHANNEL_1_MASK)) ||
  336. ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_1_MASK))
  337. )
  338. {
  339. #ifdef UART_CHANNEL_1_USED
  340. Flexio_Uart_Ip_IrqHandler(FLEXIO_CHANNEL_1, u8ShifterMaskFlag, u8ShifterErrMaskFlag, u8TimerMaskFlag);
  341. #endif
  342. #ifdef I2C_CHANNEL_1_USED
  343. Flexio_I2c_Ip_IrqHandler(FLEXIO_CHANNEL_1, u8ShifterMaskFlag, u8ShifterErrMaskFlag, u8TimerMaskFlag);
  344. #endif
  345. }
  346. #elif defined(SPI_CHANNEL_1_USED) || defined(LIN_CHANNEL_1_USED)
  347. if ( ((uint8)0U != (u8ShifterMaskFlag & u8ShifterEnabledIrq & FLEXIO_CHANNEL_1_MASK)) ||
  348. ((uint8)0U != (u8ShifterErrMaskFlag & u8ShifterErrEnabledIrq & FLEXIO_CHANNEL_1_MASK))
  349. )
  350. {
  351. #ifdef SPI_CHANNEL_1_USED
  352. Flexio_Spi_Ip_IrqHandler(FLEXIO_CHANNEL_1, u8ShifterMaskFlag, u8ShifterErrMaskFlag);
  353. #endif
  354. #ifdef LIN_CHANNEL_1_USED
  355. Flexio_Lin_Ip_IrqHandler(FLEXIO_CHANNEL_1, u8ShifterMaskFlag, u8ShifterErrMaskFlag);
  356. #endif
  357. }
  358. #elif defined(SENT_CHANNEL_1_USED)
  359. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_1_MASK))
  360. {
  361. Flexio_Sent_Ip_IrqHandler(FLEXIO_CHANNEL_1, u8TimerMaskFlag);
  362. }
  363. #elif defined(PWM_CHANNEL_1_USED)
  364. #if (defined(FLEXIO_PWM_IP_HAS_PIN_OVERRIDE) && (FLEXIO_PWM_IP_HAS_PIN_OVERRIDE == STD_ON))
  365. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_1_MASK) ||
  366. (uint8)0U != (u32PinMaskFlag & u32PinEnabledIrq & PWM_CHANNEL_1_PIN_ISR_MASK)
  367. )
  368. {
  369. Flexio_Pwm_Ip_IrqHandler(FLEXIO_CHANNEL_1, u8TimerMaskFlag, u32PinMaskFlag);
  370. #else
  371. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_1_MASK))
  372. {
  373. Flexio_Pwm_Ip_IrqHandler(FLEXIO_CHANNEL_1, u8TimerMaskFlag);
  374. #endif /* #if (defined(FLEXIO_PWM_IP_HAS_PIN_OVERRIDE) && (FLEXIO_PWM_IP_HAS_PIN_OVERRIDE == STD_ON)) */
  375. }
  376. #endif /*if defined(UART_CHANNEL_1_USED) || defined(I2C_CHANNEL_1_USED) */
  377. #endif /*ifdef FLEXIO_0_CH_1_USED*/
  378. #ifdef FLEXIO_0_CH_2_USED
  379. #if defined(UART_CHANNEL_2_USED) || defined(I2C_CHANNEL_2_USED)
  380. if ( ((uint8)0U != (u8ShifterMaskFlag & u8ShifterEnabledIrq & FLEXIO_CHANNEL_2_MASK)) ||
  381. ((uint8)0U != (u8ShifterErrMaskFlag & u8ShifterErrEnabledIrq & FLEXIO_CHANNEL_2_MASK)) ||
  382. ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_2_MASK))
  383. )
  384. {
  385. #ifdef UART_CHANNEL_2_USED
  386. Flexio_Uart_Ip_IrqHandler(FLEXIO_CHANNEL_2, u8ShifterMaskFlag, u8ShifterErrMaskFlag, u8TimerMaskFlag);
  387. #endif
  388. #ifdef I2C_CHANNEL_2_USED
  389. Flexio_I2c_Ip_IrqHandler(FLEXIO_CHANNEL_2, u8ShifterMaskFlag, u8ShifterErrMaskFlag, u8TimerMaskFlag);
  390. #endif
  391. }
  392. #elif defined(SPI_CHANNEL_2_USED) || defined(LIN_CHANNEL_2_USED)
  393. if ( ((uint8)0U != (u8ShifterMaskFlag & u8ShifterEnabledIrq & FLEXIO_CHANNEL_2_MASK)) ||
  394. ((uint8)0U != (u8ShifterErrMaskFlag & u8ShifterErrEnabledIrq & FLEXIO_CHANNEL_2_MASK))
  395. )
  396. {
  397. #ifdef SPI_CHANNEL_2_USED
  398. Flexio_Spi_Ip_IrqHandler(FLEXIO_CHANNEL_2, u8ShifterMaskFlag, u8ShifterErrMaskFlag);
  399. #endif
  400. #ifdef LIN_CHANNEL_2_USED
  401. Flexio_Lin_Ip_IrqHandler(FLEXIO_CHANNEL_2, u8ShifterMaskFlag, u8ShifterErrMaskFlag);
  402. #endif
  403. }
  404. #elif defined(SENT_CHANNEL_2_USED)
  405. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_2_MASK))
  406. {
  407. Flexio_Sent_Ip_IrqHandler(FLEXIO_CHANNEL_2, u8TimerMaskFlag);
  408. }
  409. #elif defined(PWM_CHANNEL_2_USED)
  410. #if (defined(FLEXIO_PWM_IP_HAS_PIN_OVERRIDE) && (FLEXIO_PWM_IP_HAS_PIN_OVERRIDE == STD_ON))
  411. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_2_MASK) ||
  412. (uint8)0U != (u32PinMaskFlag & u32PinEnabledIrq & PWM_CHANNEL_2_PIN_ISR_MASK)
  413. )
  414. {
  415. Flexio_Pwm_Ip_IrqHandler(FLEXIO_CHANNEL_2, u8TimerMaskFlag, u32PinMaskFlag);
  416. #else
  417. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_2_MASK))
  418. {
  419. Flexio_Pwm_Ip_IrqHandler(FLEXIO_CHANNEL_2, u8TimerMaskFlag);
  420. #endif /* #if (defined(FLEXIO_PWM_IP_HAS_PIN_OVERRIDE) && (FLEXIO_PWM_IP_HAS_PIN_OVERRIDE == STD_ON)) */
  421. }
  422. #endif /*if defined(UART_CHANNEL_2_USED) || defined(I2C_CHANNEL_2_USED) */
  423. #endif /*ifdef FLEXIO_0_CH_2_USED*/
  424. #ifdef FLEXIO_0_CH_3_USED
  425. #if defined(UART_CHANNEL_3_USED) || defined(I2C_CHANNEL_3_USED)
  426. if ( ((uint8)0U != (u8ShifterMaskFlag & u8ShifterEnabledIrq & FLEXIO_CHANNEL_3_MASK)) ||
  427. ((uint8)0U != (u8ShifterErrMaskFlag & u8ShifterErrEnabledIrq & FLEXIO_CHANNEL_3_MASK)) ||
  428. ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_3_MASK))
  429. )
  430. {
  431. #ifdef UART_CHANNEL_3_USED
  432. Flexio_Uart_Ip_IrqHandler(FLEXIO_CHANNEL_3, u8ShifterMaskFlag, u8ShifterErrMaskFlag, u8TimerMaskFlag);
  433. #endif
  434. #ifdef I2C_CHANNEL_3_USED
  435. Flexio_I2c_Ip_IrqHandler(FLEXIO_CHANNEL_3, u8ShifterMaskFlag, u8ShifterErrMaskFlag, u8TimerMaskFlag);
  436. #endif
  437. }
  438. #elif defined(SPI_CHANNEL_3_USED) || defined(LIN_CHANNEL_3_USED)
  439. if ( ((uint8)0U != (u8ShifterMaskFlag & u8ShifterEnabledIrq & FLEXIO_CHANNEL_3_MASK)) ||
  440. ((uint8)0U != (u8ShifterErrMaskFlag & u8ShifterErrEnabledIrq & FLEXIO_CHANNEL_3_MASK))
  441. )
  442. {
  443. #ifdef SPI_CHANNEL_3_USED
  444. Flexio_Spi_Ip_IrqHandler(FLEXIO_CHANNEL_3, u8ShifterMaskFlag, u8ShifterErrMaskFlag);
  445. #endif
  446. #ifdef LIN_CHANNEL_3_USED
  447. Flexio_Lin_Ip_IrqHandler(FLEXIO_CHANNEL_3, u8ShifterMaskFlag, u8ShifterErrMaskFlag);
  448. #endif
  449. }
  450. #elif defined(SENT_CHANNEL_3_USED)
  451. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_3_MASK))
  452. {
  453. Flexio_Sent_Ip_IrqHandler(FLEXIO_CHANNEL_3, u8TimerMaskFlag);
  454. }
  455. #elif defined(PWM_CHANNEL_3_USED)
  456. #if (defined(FLEXIO_PWM_IP_HAS_PIN_OVERRIDE) && (FLEXIO_PWM_IP_HAS_PIN_OVERRIDE == STD_ON))
  457. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_3_MASK) ||
  458. (uint8)0U != (u32PinMaskFlag & u32PinEnabledIrq & PWM_CHANNEL_3_PIN_ISR_MASK)
  459. )
  460. {
  461. Flexio_Pwm_Ip_IrqHandler(FLEXIO_CHANNEL_3, u8TimerMaskFlag, u32PinMaskFlag);
  462. #else
  463. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_3_MASK))
  464. {
  465. Flexio_Pwm_Ip_IrqHandler(FLEXIO_CHANNEL_3, u8TimerMaskFlag);
  466. #endif /* #if (defined(FLEXIO_PWM_IP_HAS_PIN_OVERRIDE) && (FLEXIO_PWM_IP_HAS_PIN_OVERRIDE == STD_ON)) */
  467. }
  468. #endif /* defined(UART_CHANNEL_3_USED) || defined(I2C_CHANNEL_3_USED) */
  469. #endif /*ifdef FLEXIO_0_CH_3_USED*/
  470. #ifdef FLEXIO_0_CH_4_USED
  471. #if defined(UART_CHANNEL_4_USED) || defined(I2C_CHANNEL_4_USED)
  472. if ( ((uint8)0U != (u8ShifterMaskFlag & u8ShifterEnabledIrq & FLEXIO_CHANNEL_4_MASK)) ||
  473. ((uint8)0U != (u8ShifterErrMaskFlag & u8ShifterErrEnabledIrq & FLEXIO_CHANNEL_4_MASK)) ||
  474. ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_4_MASK))
  475. )
  476. {
  477. #ifdef UART_CHANNEL_4_USED
  478. Flexio_Uart_Ip_IrqHandler(FLEXIO_CHANNEL_4, u8ShifterMaskFlag, u8ShifterErrMaskFlag, u8TimerMaskFlag);
  479. #endif
  480. #ifdef I2C_CHANNEL_4_USED
  481. Flexio_I2c_Ip_IrqHandler(FLEXIO_CHANNEL_4, u8ShifterMaskFlag, u8ShifterErrMaskFlag, u8TimerMaskFlag);
  482. #endif
  483. }
  484. #elif defined(SPI_CHANNEL_4_USED) || defined(LIN_CHANNEL_4_USED)
  485. if ( ((uint8)0U != (u8ShifterMaskFlag & u8ShifterEnabledIrq & FLEXIO_CHANNEL_4_MASK)) ||
  486. ((uint8)0U != (u8ShifterErrMaskFlag & u8ShifterErrEnabledIrq & FLEXIO_CHANNEL_4_MASK))
  487. )
  488. {
  489. #ifdef SPI_CHANNEL_4_USED
  490. Flexio_Spi_Ip_IrqHandler(FLEXIO_CHANNEL_4, u8ShifterMaskFlag, u8ShifterErrMaskFlag);
  491. #endif
  492. #ifdef LIN_CHANNEL_4_USED
  493. Flexio_Lin_Ip_IrqHandler(FLEXIO_CHANNEL_4, u8ShifterMaskFlag, u8ShifterErrMaskFlag);
  494. #endif
  495. }
  496. #elif defined(SENT_CHANNEL_4_USED)
  497. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_4_MASK))
  498. {
  499. Flexio_Sent_Ip_IrqHandler(FLEXIO_CHANNEL_4, u8TimerMaskFlag);
  500. }
  501. #elif defined(PWM_CHANNEL_4_USED)
  502. #if (defined(FLEXIO_PWM_IP_HAS_PIN_OVERRIDE) && (FLEXIO_PWM_IP_HAS_PIN_OVERRIDE == STD_ON))
  503. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_4_MASK) ||
  504. (uint8)0U != (u32PinMaskFlag & u32PinEnabledIrq & PWM_CHANNEL_4_PIN_ISR_MASK)
  505. )
  506. {
  507. Flexio_Pwm_Ip_IrqHandler(FLEXIO_CHANNEL_4, u8TimerMaskFlag, u32PinMaskFlag);
  508. #else
  509. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_4_MASK))
  510. {
  511. Flexio_Pwm_Ip_IrqHandler(FLEXIO_CHANNEL_4, u8TimerMaskFlag);
  512. #endif /* #if (defined(FLEXIO_PWM_IP_HAS_PIN_OVERRIDE) && (FLEXIO_PWM_IP_HAS_PIN_OVERRIDE == STD_ON)) */
  513. }
  514. #endif /*if defined(UART_CHANNEL_4_USED) || defined(I2C_CHANNEL_4_USED) */
  515. #endif /*ifdef FLEXIO_0_CH_4_USED*/
  516. #ifdef FLEXIO_0_CH_5_USED
  517. #if defined(UART_CHANNEL_5_USED) || defined(I2C_CHANNEL_5_USED)
  518. if ( ((uint8)0U != (u8ShifterMaskFlag & u8ShifterEnabledIrq & FLEXIO_CHANNEL_5_MASK)) ||
  519. ((uint8)0U != (u8ShifterErrMaskFlag & u8ShifterErrEnabledIrq & FLEXIO_CHANNEL_5_MASK)) ||
  520. ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_5_MASK))
  521. )
  522. {
  523. #ifdef UART_CHANNEL_5_USED
  524. Flexio_Uart_Ip_IrqHandler(FLEXIO_CHANNEL_5, u8ShifterMaskFlag, u8ShifterErrMaskFlag, u8TimerMaskFlag);
  525. #endif
  526. #ifdef I2C_CHANNEL_5_USED
  527. Flexio_I2c_Ip_IrqHandler(FLEXIO_CHANNEL_5, u8ShifterMaskFlag, u8ShifterErrMaskFlag, u8TimerMaskFlag);
  528. #endif
  529. }
  530. #elif defined(SPI_CHANNEL_5_USED) || defined(LIN_CHANNEL_5_USED)
  531. if ( ((uint8)0U != (u8ShifterMaskFlag & u8ShifterEnabledIrq & FLEXIO_CHANNEL_5_MASK)) ||
  532. ((uint8)0U != (u8ShifterErrMaskFlag & u8ShifterErrEnabledIrq & FLEXIO_CHANNEL_5_MASK))
  533. )
  534. {
  535. #ifdef SPI_CHANNEL_5_USED
  536. Flexio_Spi_Ip_IrqHandler(FLEXIO_CHANNEL_5, u8ShifterMaskFlag, u8ShifterErrMaskFlag);
  537. #endif
  538. #ifdef LIN_CHANNEL_5_USED
  539. Flexio_Lin_Ip_IrqHandler(FLEXIO_CHANNEL_5, u8ShifterMaskFlag, u8ShifterErrMaskFlag);
  540. #endif
  541. }
  542. #elif defined(SENT_CHANNEL_5_USED)
  543. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_5_MASK))
  544. {
  545. Flexio_Sent_Ip_IrqHandler(FLEXIO_CHANNEL_5, u8TimerMaskFlag);
  546. }
  547. #elif defined(PWM_CHANNEL_5_USED)
  548. #if (defined(FLEXIO_PWM_IP_HAS_PIN_OVERRIDE) && (FLEXIO_PWM_IP_HAS_PIN_OVERRIDE == STD_ON))
  549. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_5_MASK) ||
  550. (uint8)0U != (u32PinMaskFlag & u32PinEnabledIrq & PWM_CHANNEL_5_PIN_ISR_MASK)
  551. )
  552. {
  553. Flexio_Pwm_Ip_IrqHandler(FLEXIO_CHANNEL_5, u8TimerMaskFlag, u32PinMaskFlag);
  554. #else
  555. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_5_MASK))
  556. {
  557. Flexio_Pwm_Ip_IrqHandler(FLEXIO_CHANNEL_5, u8TimerMaskFlag);
  558. #endif /* #if (defined(FLEXIO_PWM_IP_HAS_PIN_OVERRIDE) && (FLEXIO_PWM_IP_HAS_PIN_OVERRIDE == STD_ON)) */
  559. }
  560. #endif /*if defined(UART_CHANNEL_5_USED) || defined(I2C_CHANNEL_5_USED) */
  561. #endif /*ifdef FLEXIO_0_CH_5_USED*/
  562. #ifdef FLEXIO_0_CH_6_USED
  563. #if defined(UART_CHANNEL_6_USED) || defined(I2C_CHANNEL_6_USED)
  564. if ( ((uint8)0U != (u8ShifterMaskFlag & u8ShifterEnabledIrq & FLEXIO_CHANNEL_6_MASK)) ||
  565. ((uint8)0U != (u8ShifterErrMaskFlag & u8ShifterErrEnabledIrq & FLEXIO_CHANNEL_6_MASK)) ||
  566. ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_6_MASK))
  567. )
  568. {
  569. #ifdef UART_CHANNEL_6_USED
  570. Flexio_Uart_Ip_IrqHandler(FLEXIO_CHANNEL_6, u8ShifterMaskFlag, u8ShifterErrMaskFlag, u8TimerMaskFlag);
  571. #endif
  572. #ifdef I2C_CHANNEL_6_USED
  573. Flexio_I2c_Ip_IrqHandler(FLEXIO_CHANNEL_6, u8ShifterMaskFlag, u8ShifterErrMaskFlag, u8TimerMaskFlag);
  574. #endif
  575. }
  576. #elif defined(SPI_CHANNEL_6_USED) || defined(LIN_CHANNEL_6_USED)
  577. if ( ((uint8)0U != (u8ShifterMaskFlag & u8ShifterEnabledIrq & FLEXIO_CHANNEL_6_MASK)) ||
  578. ((uint8)0U != (u8ShifterErrMaskFlag & u8ShifterErrEnabledIrq & FLEXIO_CHANNEL_6_MASK))
  579. )
  580. {
  581. #ifdef SPI_CHANNEL_6_USED
  582. Flexio_Spi_Ip_IrqHandler(FLEXIO_CHANNEL_6, u8ShifterMaskFlag, u8ShifterErrMaskFlag);
  583. #endif
  584. #ifdef LIN_CHANNEL_6_USED
  585. Flexio_Lin_Ip_IrqHandler(FLEXIO_CHANNEL_6, u8ShifterMaskFlag, u8ShifterErrMaskFlag);
  586. #endif
  587. }
  588. #elif defined(SENT_CHANNEL_6_USED)
  589. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_6_MASK))
  590. {
  591. Flexio_Sent_Ip_IrqHandler(FLEXIO_CHANNEL_6, u8TimerMaskFlag);
  592. }
  593. #elif defined(PWM_CHANNEL_6_USED)
  594. #if (defined(FLEXIO_PWM_IP_HAS_PIN_OVERRIDE) && (FLEXIO_PWM_IP_HAS_PIN_OVERRIDE == STD_ON))
  595. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_6_MASK) ||
  596. (uint8)0U != (u32PinMaskFlag & u32PinEnabledIrq & PWM_CHANNEL_6_PIN_ISR_MASK)
  597. )
  598. {
  599. Flexio_Pwm_Ip_IrqHandler(FLEXIO_CHANNEL_6, u8TimerMaskFlag, u32PinMaskFlag);
  600. #else
  601. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_6_MASK))
  602. {
  603. Flexio_Pwm_Ip_IrqHandler(FLEXIO_CHANNEL_6, u8TimerMaskFlag);
  604. #endif /* #if (defined(FLEXIO_PWM_IP_HAS_PIN_OVERRIDE) && (FLEXIO_PWM_IP_HAS_PIN_OVERRIDE == STD_ON)) */
  605. }
  606. #endif /*if defined(UART_CHANNEL_6_USED) || defined(I2C_CHANNEL_6_USED) */
  607. #endif /*ifdef FLEXIO_0_CH_6_USED*/
  608. #ifdef FLEXIO_0_CH_7_USED
  609. #if defined(UART_CHANNEL_7_USED) || defined(I2C_CHANNEL_7_USED)
  610. if ( ((uint8)0U != (u8ShifterMaskFlag & u8ShifterEnabledIrq & FLEXIO_CHANNEL_7_MASK)) ||
  611. ((uint8)0U != (u8ShifterErrMaskFlag & u8ShifterErrEnabledIrq & FLEXIO_CHANNEL_7_MASK)) ||
  612. ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_7_MASK))
  613. )
  614. {
  615. #ifdef UART_CHANNEL_7_USED
  616. Flexio_Uart_Ip_IrqHandler(FLEXIO_CHANNEL_7, u8ShifterMaskFlag, u8ShifterErrMaskFlag, u8TimerMaskFlag);
  617. #endif
  618. #ifdef I2C_CHANNEL_7_USED
  619. Flexio_I2c_Ip_IrqHandler(FLEXIO_CHANNEL_7, u8ShifterMaskFlag, u8ShifterErrMaskFlag, u8TimerMaskFlag);
  620. #endif
  621. }
  622. #elif defined(SPI_CHANNEL_7_USED) || defined(LIN_CHANNEL_7_USED)
  623. if ( ((uint8)0U != (u8ShifterMaskFlag & u8ShifterEnabledIrq & FLEXIO_CHANNEL_7_MASK)) ||
  624. ((uint8)0U != (u8ShifterErrMaskFlag & u8ShifterErrEnabledIrq & FLEXIO_CHANNEL_7_MASK))
  625. )
  626. {
  627. #ifdef SPI_CHANNEL_7_USED
  628. Flexio_Spi_Ip_IrqHandler(FLEXIO_CHANNEL_7, u8ShifterMaskFlag, u8ShifterErrMaskFlag);
  629. #endif
  630. #ifdef LIN_CHANNEL_7_USED
  631. Flexio_Lin_Ip_IrqHandler(FLEXIO_CHANNEL_7, u8ShifterMaskFlag, u8ShifterErrMaskFlag);
  632. #endif
  633. }
  634. #elif defined(SENT_CHANNEL_7_USED)
  635. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_7_MASK))
  636. {
  637. Flexio_Sent_Ip_IrqHandler(FLEXIO_CHANNEL_7, u8TimerMaskFlag);
  638. }
  639. #elif defined(PWM_CHANNEL_7_USED)
  640. #if (defined(FLEXIO_PWM_IP_HAS_PIN_OVERRIDE) && (FLEXIO_PWM_IP_HAS_PIN_OVERRIDE == STD_ON))
  641. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_7_MASK) ||
  642. (uint8)0U != (u32PinMaskFlag & u32PinEnabledIrq & PWM_CHANNEL_7_PIN_ISR_MASK)
  643. )
  644. {
  645. Flexio_Pwm_Ip_IrqHandler(FLEXIO_CHANNEL_7, u8TimerMaskFlag, u32PinMaskFlag);
  646. #else
  647. if ((uint8)0U != (u8TimerMaskFlag & u8TimerEnabledIrq & FLEXIO_CHANNEL_7_MASK))
  648. {
  649. Flexio_Pwm_Ip_IrqHandler(FLEXIO_CHANNEL_7, u8TimerMaskFlag);
  650. #endif /* #if (defined(FLEXIO_PWM_IP_HAS_PIN_OVERRIDE) && (FLEXIO_PWM_IP_HAS_PIN_OVERRIDE == STD_ON)) */
  651. }
  652. #endif /*if defined(UART_CHANNEL_7_USED) || defined(I2C_CHANNEL_7_USED) */
  653. #endif /*ifdef FLEXIO_0_CH_7_USED*/
  654. }
  655. else /* Flexio_Ip_IpIsInitialized[FLEXIO_INSTANCE_NO] */
  656. {
  657. /* Clear ALL the flags in case of the uninitialized driver
  658. The status flag can also be cleared by writing a logic one to the flag for all modes except Match Continuous/ State /Logic.
  659. */
  660. baseAddr->SHIFTERR = (uint32) u8ShifterErrMaskFlag ;
  661. baseAddr->TIMSTAT = (uint32) u8TimerMaskFlag ;
  662. #if (FLEXIO_MCL_IP_PIN_STS_IS_AVAILABLE == STD_ON)
  663. #ifdef FLEXIO_IP_PIN_ISR_USED
  664. baseAddr->PINSTAT = (uint32) u32PinMaskFlag;
  665. #endif
  666. #endif /* FLEXIO_MCL_IP_PIN_STS_IS_AVAILABLE == STD_ON */
  667. }
  668. }
  669. ISR(MCL_FLEXIO_ISR)
  670. {
  671. /* Flexio common IRQ */
  672. Flexio_Mcl_Ip_CommonIrq();
  673. EXIT_INTERRUPT();
  674. }
  675. #define MCL_STOP_SEC_CODE
  676. #include "Mcl_MemMap.h"
  677. #ifdef __cplusplus
  678. }
  679. #endif
  680. /** @} */