123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291 |
- /*==================================================================================================
- * Project : RTD AUTOSAR 4.4
- * Platform : CORTEXM
- * Peripheral :
- * Dependencies : none
- *
- * Autosar Version : 4.4.0
- * Autosar Revision : ASR_REL_4_4_REV_0000
- * Autosar Conf.Variant :
- * SW Version : 1.0.0
- * Build Version : S32K1_RTD_1_0_0_HF01_D2109_ASR_REL_4_4_REV_0000_20210907
- *
- * (c) Copyright 2020-2021 NXP Semiconductors
- * All Rights Reserved.
- *
- * NXP Confidential. This software is owned or controlled by NXP and may only be
- * used strictly in accordance with the applicable license terms. By expressly
- * accepting such terms or by downloading, installing, activating and/or otherwise
- * using the software, you are agreeing that you have read, and that you agree to
- * comply with and are bound by, such license terms. If you do not agree to be
- * bound by the applicable license terms, then you may not retain, install,
- * activate or otherwise use the software.
- ==================================================================================================*/
- #ifdef __cplusplus
- extern "C" {
- #endif
- /*==================================================================================================
- INCLUDE FILES
- ==================================================================================================*/
- #include "IntCtrl_Ip_Cfg.h"
- /*==================================================================================================
- * SOURCE FILE VERSION INFORMATION
- ==================================================================================================*/
- #define PLATFORM_INTCTRL_IP_CFG_VENDOR_ID_C 43
- #define PLATFORM_INTCTRL_IP_CFG_SW_MAJOR_VERSION_C 1
- #define PLATFORM_INTCTRL_IP_CFG_SW_MINOR_VERSION_C 0
- #define PLATFORM_INTCTRL_IP_CFG_SW_PATCH_VERSION_C 0
- /*==================================================================================================
- FILE VERSION CHECKS
- ==================================================================================================*/
- /* Check if current file and IntCtrl_Ip_Cfg header file are of the same vendor */
- #if (PLATFORM_INTCTRL_IP_CFG_VENDOR_ID_C != PLATFORM_INTCTRL_IP_CFG_VENDOR_ID)
- #error "IntCtrl_Ip_Cfg.c and IntCtrl_Ip_Cfg.h have different vendor ids"
- #endif
- /* Check if current file and IntCtrl_Ip_Cfg header file are of the same Software version */
- #if ((PLATFORM_INTCTRL_IP_CFG_SW_MAJOR_VERSION_C != PLATFORM_INTCTRL_IP_CFG_SW_MAJOR_VERSION) || \
- (PLATFORM_INTCTRL_IP_CFG_SW_MINOR_VERSION_C != PLATFORM_INTCTRL_IP_CFG_SW_MINOR_VERSION) || \
- (PLATFORM_INTCTRL_IP_CFG_SW_PATCH_VERSION_C != PLATFORM_INTCTRL_IP_CFG_SW_PATCH_VERSION) \
- )
- #error "Software Version Numbers of IntCtrl_Ip_Cfg.c and IntCtrl_Ip_Cfg.h are different"
- #endif
- /*==================================================================================================
- GLOBAL VARIABLES
- ==================================================================================================*/
- #define PLATFORM_START_SEC_CONFIG_DATA_UNSPECIFIED
- #include "Platform_MemMap.h"
- /* List of configurations for interrupts */
- static const IntCtrl_Ip_IrqConfigType aIrqConfiguration[] = {
- {DMA0_IRQn, (boolean)TRUE, 0U},
- {DMA1_IRQn, (boolean)TRUE, 0U},
- {DMA2_IRQn, (boolean)TRUE, 0U},
- {DMA3_IRQn, (boolean)TRUE, 3U},
- {DMA4_IRQn, (boolean)TRUE, 3U},
- {DMA5_IRQn, (boolean)TRUE, 3U},
- {DMA6_IRQn, (boolean)FALSE, 0U},
- {DMA7_IRQn, (boolean)FALSE, 0U},
- {DMA8_IRQn, (boolean)FALSE, 0U},
- {DMA9_IRQn, (boolean)FALSE, 0U},
- {DMA10_IRQn, (boolean)FALSE, 0U},
- {DMA11_IRQn, (boolean)FALSE, 0U},
- {DMA12_IRQn, (boolean)FALSE, 0U},
- {DMA13_IRQn, (boolean)FALSE, 0U},
- {DMA14_IRQn, (boolean)FALSE, 0U},
- {DMA15_IRQn, (boolean)FALSE, 0U},
- {DMA_Error_IRQn, (boolean)FALSE, 0U},
- {MCM_IRQn, (boolean)FALSE, 0U},
- {FTFC_CMD_IRQn, (boolean)FALSE, 0U},
- {FTFC_Read_Collision_IRQn, (boolean)FALSE, 0U},
- {LVD_LVW_IRQn, (boolean)FALSE, 0U},
- {FTFC_Fault_IRQn, (boolean)FALSE, 0U},
- {WDOG_EWM_IRQn, (boolean)FALSE, 0U},
- {RCM_IRQn, (boolean)FALSE, 0U},
- {LPI2C0_Master_IRQn, (boolean)TRUE, 0U},
- {LPI2C0_Slave_IRQn, (boolean)TRUE, 0U},
- {LPSPI0_IRQn, (boolean)FALSE, 0U},
- {LPSPI1_IRQn, (boolean)FALSE, 0U},
- {LPSPI2_IRQn, (boolean)TRUE, 0U},
- {LPUART0_RxTx_IRQn, (boolean)TRUE, 3U},
- {LPUART1_RxTx_IRQn, (boolean)TRUE, 3U},
- {LPUART2_RxTx_IRQn, (boolean)TRUE, 3U},
- {ADC0_IRQn, (boolean)FALSE, 0U},
- {ADC1_IRQn, (boolean)FALSE, 0U},
- {CMP0_IRQn, (boolean)FALSE, 0U},
- {ERM_single_fault_IRQn, (boolean)FALSE, 0U},
- {ERM_double_fault_IRQn, (boolean)FALSE, 0U},
- {RTC_IRQn, (boolean)FALSE, 0U},
- {RTC_Seconds_IRQn, (boolean)FALSE, 0U},
- {LPIT0_Ch0_IRQn, (boolean)FALSE, 0U},
- {LPIT0_Ch1_IRQn, (boolean)FALSE, 0U},
- {LPIT0_Ch2_IRQn, (boolean)FALSE, 0U},
- {LPIT0_Ch3_IRQn, (boolean)FALSE, 0U},
- {PDB0_IRQn, (boolean)FALSE, 0U},
- {SCG_IRQn, (boolean)FALSE, 0U},
- {LPTMR0_IRQn, (boolean)FALSE, 0U},
- {PORTA_IRQn, (boolean)FALSE, 0U},
- {PORTB_IRQn, (boolean)FALSE, 0U},
- {PORTC_IRQn, (boolean)FALSE, 0U},
- {PORTD_IRQn, (boolean)FALSE, 0U},
- {PORTE_IRQn, (boolean)FALSE, 0U},
- {SWI_IRQn, (boolean)FALSE, 0U},
- {PDB1_IRQn, (boolean)FALSE, 0U},
- {FLEXIO_IRQn, (boolean)FALSE, 0U},
- {CAN0_ORed_IRQn, (boolean)TRUE, 0U},
- {CAN0_Error_IRQn, (boolean)TRUE, 0U},
- {CAN0_Wake_Up_IRQn, (boolean)TRUE, 0U},
- {CAN0_ORed_0_15_MB_IRQn, (boolean)TRUE, 0U},
- {CAN0_ORed_16_31_MB_IRQn, (boolean)TRUE, 0U},
- {CAN1_ORed_IRQn, (boolean)TRUE, 0U},
- {CAN1_Error_IRQn, (boolean)TRUE, 0U},
- {CAN1_ORed_0_15_MB_IRQn, (boolean)TRUE, 0U},
- {CAN1_ORed_16_31_MB_IRQn, (boolean)TRUE, 0U},
- {CAN2_ORed_IRQn, (boolean)FALSE, 0U},
- {CAN2_Error_IRQn, (boolean)FALSE, 0U},
- {CAN2_ORed_0_15_MB_IRQn, (boolean)FALSE, 0U},
- {FTM0_Ch0_Ch1_IRQn, (boolean)FALSE, 0U},
- {FTM0_Ch2_Ch3_IRQn, (boolean)FALSE, 0U},
- {FTM0_Ch4_Ch5_IRQn, (boolean)FALSE, 0U},
- {FTM0_Ch6_Ch7_IRQn, (boolean)FALSE, 0U},
- {FTM0_Fault_IRQn, (boolean)FALSE, 0U},
- {FTM0_Ovf_Reload_IRQn, (boolean)FALSE, 0U},
- {FTM1_Ch0_Ch1_IRQn, (boolean)FALSE, 0U},
- {FTM1_Ch2_Ch3_IRQn, (boolean)FALSE, 0U},
- {FTM1_Ch4_Ch5_IRQn, (boolean)FALSE, 0U},
- {FTM1_Ch6_Ch7_IRQn, (boolean)FALSE, 0U},
- {FTM1_Fault_IRQn, (boolean)FALSE, 0U},
- {FTM1_Ovf_Reload_IRQn, (boolean)FALSE, 0U},
- {FTM2_Ch0_Ch1_IRQn, (boolean)FALSE, 0U},
- {FTM2_Ch2_Ch3_IRQn, (boolean)FALSE, 0U},
- {FTM2_Ch4_Ch5_IRQn, (boolean)FALSE, 0U},
- {FTM2_Ch6_Ch7_IRQn, (boolean)FALSE, 0U},
- {FTM2_Fault_IRQn, (boolean)FALSE, 0U},
- {FTM2_Ovf_Reload_IRQn, (boolean)FALSE, 0U},
- {FTM3_Ch0_Ch1_IRQn, (boolean)FALSE, 0U},
- {FTM3_Ch2_Ch3_IRQn, (boolean)FALSE, 0U},
- {FTM3_Ch4_Ch5_IRQn, (boolean)FALSE, 0U},
- {FTM3_Ch6_Ch7_IRQn, (boolean)FALSE, 0U},
- {FTM3_Fault_IRQn, (boolean)FALSE, 0U},
- {FTM3_Ovf_Reload_IRQn, (boolean)FALSE, 0U},
- {FTM4_Ch0_Ch1_IRQn, (boolean)FALSE, 0U},
- {FTM4_Ch2_Ch3_IRQn, (boolean)FALSE, 0U},
- {FTM4_Ch4_Ch5_IRQn, (boolean)FALSE, 0U},
- {FTM4_Ch6_Ch7_IRQn, (boolean)FALSE, 0U},
- {FTM4_Fault_IRQn, (boolean)FALSE, 0U},
- {FTM4_Ovf_Reload_IRQn, (boolean)FALSE, 0U},
- {FTM5_Ch0_Ch1_IRQn, (boolean)FALSE, 0U},
- {FTM5_Ch2_Ch3_IRQn, (boolean)FALSE, 0U},
- {FTM5_Ch4_Ch5_IRQn, (boolean)FALSE, 0U},
- {FTM5_Ch6_Ch7_IRQn, (boolean)FALSE, 0U},
- {FTM5_Fault_IRQn, (boolean)FALSE, 0U},
- {FTM5_Ovf_Reload_IRQn, (boolean)FALSE, 0U},
- };
- /* Configuration structure for interrupt controller */
- const IntCtrl_Ip_CtrlConfigType intCtrlConfig = {
- 102U,
- aIrqConfiguration
- };
-
- /* List of configurations for routing interrupts */
- static const IntCtrl_Ip_IrqRouteConfigType aIrqRouteConfig[] = {
- {DMA0_IRQn, 0U, Dma0_Ch0_IRQHandler},
- {DMA1_IRQn, 0U, Dma0_Ch1_IRQHandler},
- {DMA2_IRQn, 0U, Dma0_Ch2_IRQHandler},
- {DMA3_IRQn, 0U, Dma0_Ch3_IRQHandler},
- {DMA4_IRQn, 0U, Dma0_Ch4_IRQHandler},
- {DMA5_IRQn, 0U, Dma0_Ch5_IRQHandler},
- {DMA6_IRQn, 0U, undefined_handler},
- {DMA7_IRQn, 0U, undefined_handler},
- {DMA8_IRQn, 0U, undefined_handler},
- {DMA9_IRQn, 0U, undefined_handler},
- {DMA10_IRQn, 0U, undefined_handler},
- {DMA11_IRQn, 0U, undefined_handler},
- {DMA12_IRQn, 0U, undefined_handler},
- {DMA13_IRQn, 0U, undefined_handler},
- {DMA14_IRQn, 0U, undefined_handler},
- {DMA15_IRQn, 0U, undefined_handler},
- {DMA_Error_IRQn, 0U, undefined_handler},
- {MCM_IRQn, 0U, undefined_handler},
- {FTFC_CMD_IRQn, 0U, undefined_handler},
- {FTFC_Read_Collision_IRQn, 0U, undefined_handler},
- {LVD_LVW_IRQn, 0U, undefined_handler},
- {FTFC_Fault_IRQn, 0U, undefined_handler},
- {WDOG_EWM_IRQn, 0U, undefined_handler},
- {RCM_IRQn, 0U, undefined_handler},
- {LPI2C0_Master_IRQn, 0U, undefined_handler},
- {LPI2C0_Slave_IRQn, 0U, undefined_handler},
- {LPSPI0_IRQn, 0U, undefined_handler},
- {LPSPI1_IRQn, 0U, undefined_handler},
- {LPSPI2_IRQn, 0U, undefined_handler},
- {LPUART0_RxTx_IRQn, 0U, LPUART_UART_IP_0_IRQHandler},
- {LPUART1_RxTx_IRQn, 0U, LPUART_UART_IP_1_IRQHandler},
- {LPUART2_RxTx_IRQn, 0U, LPUART_UART_IP_2_IRQHandler},
- {ADC0_IRQn, 0U, undefined_handler},
- {ADC1_IRQn, 0U, undefined_handler},
- {CMP0_IRQn, 0U, undefined_handler},
- {ERM_single_fault_IRQn, 0U, undefined_handler},
- {ERM_double_fault_IRQn, 0U, undefined_handler},
- {RTC_IRQn, 0U, undefined_handler},
- {RTC_Seconds_IRQn, 0U, undefined_handler},
- {LPIT0_Ch0_IRQn, 0U, undefined_handler},
- {LPIT0_Ch1_IRQn, 0U, undefined_handler},
- {LPIT0_Ch2_IRQn, 0U, undefined_handler},
- {LPIT0_Ch3_IRQn, 0U, undefined_handler},
- {PDB0_IRQn, 0U, undefined_handler},
- {SCG_IRQn, 0U, undefined_handler},
- {LPTMR0_IRQn, 0U, undefined_handler},
- {PORTA_IRQn, 0U, undefined_handler},
- {PORTB_IRQn, 0U, undefined_handler},
- {PORTC_IRQn, 0U, undefined_handler},
- {PORTD_IRQn, 0U, undefined_handler},
- {PORTE_IRQn, 0U, undefined_handler},
- {SWI_IRQn, 0U, undefined_handler},
- {PDB1_IRQn, 0U, undefined_handler},
- {FLEXIO_IRQn, 0U, MCL_FLEXIO_ISR},
- {CAN0_ORed_IRQn, 0U, CAN0_ORED_IRQHandler},
- {CAN0_Error_IRQn, 0U, CAN0_Error_IRQHandler},
- {CAN0_Wake_Up_IRQn, 0U, CAN0_Wake_Up_IRQHandler},
- {CAN0_ORed_0_15_MB_IRQn, 0U, CAN0_ORED_0_15_MB_IRQHandler},
- {CAN0_ORed_16_31_MB_IRQn, 0U, CAN0_ORED_16_31_MB_IRQHandler},
- {CAN1_ORed_IRQn, 0U, CAN1_ORED_IRQHandler},
- {CAN1_Error_IRQn, 0U, CAN1_Error_IRQHandler},
- {CAN1_ORed_0_15_MB_IRQn, 0U, CAN1_ORED_0_15_MB_IRQHandler},
- {CAN1_ORed_16_31_MB_IRQn, 0U, CAN1_ORED_16_31_MB_IRQHandler},
- {CAN2_ORed_IRQn, 0U, undefined_handler},
- {CAN2_Error_IRQn, 0U, undefined_handler},
- {CAN2_ORed_0_15_MB_IRQn, 0U, undefined_handler},
- {FTM0_Ch0_Ch1_IRQn, 0U, undefined_handler},
- {FTM0_Ch2_Ch3_IRQn, 0U, undefined_handler},
- {FTM0_Ch4_Ch5_IRQn, 0U, undefined_handler},
- {FTM0_Ch6_Ch7_IRQn, 0U, undefined_handler},
- {FTM0_Fault_IRQn, 0U, undefined_handler},
- {FTM0_Ovf_Reload_IRQn, 0U, undefined_handler},
- {FTM1_Ch0_Ch1_IRQn, 0U, undefined_handler},
- {FTM1_Ch2_Ch3_IRQn, 0U, undefined_handler},
- {FTM1_Ch4_Ch5_IRQn, 0U, undefined_handler},
- {FTM1_Ch6_Ch7_IRQn, 0U, undefined_handler},
- {FTM1_Fault_IRQn, 0U, undefined_handler},
- {FTM1_Ovf_Reload_IRQn, 0U, undefined_handler},
- {FTM2_Ch0_Ch1_IRQn, 0U, undefined_handler},
- {FTM2_Ch2_Ch3_IRQn, 0U, undefined_handler},
- {FTM2_Ch4_Ch5_IRQn, 0U, undefined_handler},
- {FTM2_Ch6_Ch7_IRQn, 0U, undefined_handler},
- {FTM2_Fault_IRQn, 0U, undefined_handler},
- {FTM2_Ovf_Reload_IRQn, 0U, undefined_handler},
- {FTM3_Ch0_Ch1_IRQn, 0U, undefined_handler},
- {FTM3_Ch2_Ch3_IRQn, 0U, undefined_handler},
- {FTM3_Ch4_Ch5_IRQn, 0U, undefined_handler},
- {FTM3_Ch6_Ch7_IRQn, 0U, undefined_handler},
- {FTM3_Fault_IRQn, 0U, undefined_handler},
- {FTM3_Ovf_Reload_IRQn, 0U, undefined_handler},
- {FTM4_Ch0_Ch1_IRQn, 0U, undefined_handler},
- {FTM4_Ch2_Ch3_IRQn, 0U, undefined_handler},
- {FTM4_Ch4_Ch5_IRQn, 0U, undefined_handler},
- {FTM4_Ch6_Ch7_IRQn, 0U, undefined_handler},
- {FTM4_Fault_IRQn, 0U, undefined_handler},
- {FTM4_Ovf_Reload_IRQn, 0U, undefined_handler},
- {FTM5_Ch0_Ch1_IRQn, 0U, undefined_handler},
- {FTM5_Ch2_Ch3_IRQn, 0U, undefined_handler},
- {FTM5_Ch4_Ch5_IRQn, 0U, undefined_handler},
- {FTM5_Ch6_Ch7_IRQn, 0U, undefined_handler},
- {FTM5_Fault_IRQn, 0U, undefined_handler},
- {FTM5_Ovf_Reload_IRQn, 0U, undefined_handler},
- };
- /* Configuration structure for routing interrupt */
- const IntCtrl_Ip_GlobalRouteConfigType intRouteConfig = {
- 102U,
- aIrqRouteConfig
- };
- #define PLATFORM_STOP_SEC_CONFIG_DATA_UNSPECIFIED
- #include "Platform_MemMap.h"
- #ifdef __cplusplus
- }
- #endif
|