mirror of
https://github.com/Dev-KATECH/ADM.git
synced 2026-05-17 01:43:59 +09:00
3199 lines
113 KiB
C
3199 lines
113 KiB
C
/*==================================================================================================
|
|
* Project : RTD AUTOSAR 4.4
|
|
* Platform : CORTEXM
|
|
* Peripheral : DMA,CACHE,TRGMUX,LCU,EMIOS,FLEXIO
|
|
* Dependencies : none
|
|
*
|
|
* Autosar Version : 4.4.0
|
|
* Autosar Revision : ASR_REL_4_4_REV_0000
|
|
* Autosar Conf.Variant :
|
|
* SW Version : 0.9.0
|
|
* Build Version : S32K3_RTD_0_9_0__ASR_REL_4_4_REV_0000_20210326
|
|
*
|
|
* (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.
|
|
==================================================================================================*/
|
|
|
|
/**
|
|
* @file Emios_Mcl_Ip_Irq.c
|
|
*
|
|
* @brief AUTOSAR Mcl EMIOS interrupt common part.
|
|
*
|
|
* @addtogroup
|
|
* @{
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"{
|
|
#endif
|
|
|
|
/*==================================================================================================
|
|
* INCLUDE FILES
|
|
* 1) system and project includes
|
|
* 2) needed interfaces from external units
|
|
* 3) internal and external interfaces from this unit
|
|
==================================================================================================*/
|
|
#include "Emios_Mcl_Ip_Irq.h"
|
|
|
|
/*===============================================================================================
|
|
* DEFINES AND MACROS
|
|
===============================================================================================*/
|
|
#if (\
|
|
(defined GPT_EMIOS_0_CH_0_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_1_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_2_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_3_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_4_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_5_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_6_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_7_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_8_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_9_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_10_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_11_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_12_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_13_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_14_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_15_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_16_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_17_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_18_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_19_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_20_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_21_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_22_ISR_USED) || \
|
|
(defined GPT_EMIOS_0_CH_23_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_0_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_1_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_2_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_3_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_4_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_5_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_6_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_7_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_8_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_9_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_10_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_11_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_12_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_13_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_14_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_15_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_16_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_17_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_18_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_19_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_20_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_21_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_22_ISR_USED) || \
|
|
(defined GPT_EMIOS_1_CH_23_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_0_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_1_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_2_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_3_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_4_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_5_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_6_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_7_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_8_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_9_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_10_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_11_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_12_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_13_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_14_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_15_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_16_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_17_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_18_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_19_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_20_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_21_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_22_ISR_USED) || \
|
|
(defined GPT_EMIOS_2_CH_23_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_0_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_1_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_2_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_3_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_4_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_5_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_6_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_7_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_8_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_9_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_10_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_11_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_12_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_13_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_14_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_15_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_16_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_17_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_18_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_19_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_20_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_21_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_22_ISR_USED) || \
|
|
(defined ICU_EMIOS_0_CH_23_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_0_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_1_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_2_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_3_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_4_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_5_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_6_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_7_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_8_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_9_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_10_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_11_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_12_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_13_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_14_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_15_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_16_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_17_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_18_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_19_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_20_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_21_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_22_ISR_USED) || \
|
|
(defined ICU_EMIOS_1_CH_23_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_0_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_1_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_2_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_3_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_4_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_5_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_6_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_7_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_8_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_9_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_10_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_11_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_12_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_13_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_14_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_15_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_16_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_17_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_18_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_19_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_20_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_21_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_22_ISR_USED) || \
|
|
(defined ICU_EMIOS_2_CH_23_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_0_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_1_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_2_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_3_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_4_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_5_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_6_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_7_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_8_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_9_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_10_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_11_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_12_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_13_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_14_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_15_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_16_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_17_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_18_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_19_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_20_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_21_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_22_ISR_USED) || \
|
|
(defined OCU_EMIOS_0_CH_23_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_0_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_1_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_2_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_3_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_4_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_5_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_6_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_7_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_8_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_9_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_10_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_11_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_12_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_13_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_14_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_15_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_16_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_17_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_18_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_19_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_20_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_21_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_22_ISR_USED) || \
|
|
(defined OCU_EMIOS_1_CH_23_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_0_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_1_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_2_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_3_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_4_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_5_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_6_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_7_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_8_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_9_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_10_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_11_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_12_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_13_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_14_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_15_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_16_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_17_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_18_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_19_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_20_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_21_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_22_ISR_USED) || \
|
|
(defined OCU_EMIOS_2_CH_23_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_0_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_1_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_2_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_3_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_4_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_5_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_6_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_7_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_8_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_9_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_10_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_11_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_12_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_13_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_14_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_15_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_16_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_17_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_18_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_19_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_20_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_21_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_22_ISR_USED) || \
|
|
(defined PWM_EMIOS_0_CH_23_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_0_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_1_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_2_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_3_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_4_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_5_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_6_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_7_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_8_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_9_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_10_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_11_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_12_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_13_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_14_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_15_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_16_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_17_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_18_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_19_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_20_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_21_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_22_ISR_USED) || \
|
|
(defined PWM_EMIOS_1_CH_23_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_0_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_1_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_2_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_3_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_4_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_5_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_6_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_7_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_8_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_9_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_10_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_11_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_12_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_13_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_14_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_15_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_16_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_17_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_18_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_19_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_20_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_21_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_22_ISR_USED) || \
|
|
(defined PWM_EMIOS_2_CH_23_ISR_USED) \
|
|
)
|
|
|
|
/*==================================================================================================
|
|
* GLOBAL VARIABLES
|
|
==================================================================================================*/
|
|
#define MCL_START_SEC_VAR_NO_INIT_UNSPECIFIED
|
|
#include "Mcl_MemMap.h"
|
|
|
|
/* Array with EMIOS bases addresses. */
|
|
extern eMIOS_Type* emiosBase[eMIOS_INSTANCE_COUNT];
|
|
|
|
#define MCL_STOP_SEC_VAR_NO_INIT_UNSPECIFIED
|
|
#include "Mcl_MemMap.h"
|
|
|
|
#endif /* All platfrom includes. */
|
|
|
|
|
|
/*==================================================================================================
|
|
* GLOBAL FUNCTIONS
|
|
==================================================================================================*/
|
|
#define MCL_START_SEC_CODE
|
|
#include "Mcl_MemMap.h"
|
|
|
|
#if (\
|
|
(defined GPT_EMIOS_0_CH_0_ISR_USED) ||\
|
|
(defined GPT_EMIOS_0_CH_1_ISR_USED) ||\
|
|
(defined GPT_EMIOS_0_CH_2_ISR_USED) ||\
|
|
(defined GPT_EMIOS_0_CH_3_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_0_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_1_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_2_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_3_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_0_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_1_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_2_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_3_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_0_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_1_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_2_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_3_ISR_USED)\
|
|
)
|
|
/**
|
|
* @brief Interrupt handler for Emios channels 0-3 for Emios instance 0
|
|
* @details Process the interrupt of eMios channels 0-3
|
|
*
|
|
* @note This will be defined only if EMIOS channels 0, 1, 2, 3 are configured in GPT, ICU,
|
|
* OCU or PWM mode.
|
|
*/
|
|
ISR(EMIOS0_5_IRQ)
|
|
{
|
|
#if (defined EMIOS_0_CH_0_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 0 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[0].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 0 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[0].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_0_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 0);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_0_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 0);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_0_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 0);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_0_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 0);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[0].S = (emiosBase[0]->CH.UC[0].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_0_CH_1_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 1 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[1].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 1 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[1].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_1_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 1);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_1_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 1);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_1_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 1);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_1_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 1);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[1].S = (emiosBase[0]->CH.UC[1].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_0_CH_2_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 2 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[2].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 2 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[2].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_2_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 2);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_2_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 2);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_2_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 2);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_2_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 2);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[2].S = (emiosBase[0]->CH.UC[2].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_0_CH_3_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 3 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[3].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 3 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[3].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_3_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 3);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_3_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 3);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_3_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 3);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_3_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 3);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[3].S = (emiosBase[0]->CH.UC[3].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
#endif
|
|
#if (\
|
|
(defined GPT_EMIOS_0_CH_4_ISR_USED) ||\
|
|
(defined GPT_EMIOS_0_CH_5_ISR_USED) ||\
|
|
(defined GPT_EMIOS_0_CH_6_ISR_USED) ||\
|
|
(defined GPT_EMIOS_0_CH_7_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_4_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_5_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_6_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_7_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_4_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_5_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_6_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_7_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_4_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_5_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_6_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_7_ISR_USED)\
|
|
)
|
|
/**
|
|
* @brief Interrupt handler for Emios channels 4-7 for Emios instance 0
|
|
* @details Process the interrupt of eMios channels 4-7
|
|
*
|
|
* @note This will be defined only if EMIOS channels 4, 5, 6, 7 are configured in GPT, ICU,
|
|
* OCU or PWM mode.
|
|
*/
|
|
ISR(EMIOS0_4_IRQ)
|
|
{
|
|
#if (defined EMIOS_0_CH_4_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 4 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[4].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 4 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[4].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_4_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 4);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_4_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 4);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_4_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 4);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_4_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 4);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[4].S = (emiosBase[0]->CH.UC[4].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_0_CH_5_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 5 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[5].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 5 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[5].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_5_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 5);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_5_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 5);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_5_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 5);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_5_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 5);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[5].S = (emiosBase[0]->CH.UC[5].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_0_CH_6_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 6 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[6].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 6 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[6].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_6_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 6);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_6_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 6);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_6_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 6);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_6_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 6);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[6].S = (emiosBase[0]->CH.UC[6].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_0_CH_7_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 7 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[7].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 7 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[7].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_7_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 7);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_7_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 7);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_7_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 7);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_7_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 7);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[7].S = (emiosBase[0]->CH.UC[7].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
#endif
|
|
#if (\
|
|
(defined GPT_EMIOS_0_CH_8_ISR_USED) ||\
|
|
(defined GPT_EMIOS_0_CH_9_ISR_USED) ||\
|
|
(defined GPT_EMIOS_0_CH_10_ISR_USED) ||\
|
|
(defined GPT_EMIOS_0_CH_11_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_8_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_9_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_10_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_11_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_8_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_9_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_10_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_11_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_8_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_9_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_10_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_11_ISR_USED)\
|
|
)
|
|
/**
|
|
* @brief Interrupt handler for Emios channels 8-11 for Emios instance 0
|
|
* @details Process the interrupt of eMios channels 8-11
|
|
*
|
|
* @note This will be defined only if EMIOS channels 8, 9, 10, 11 are configured in GPT, ICU,
|
|
* OCU or PWM mode.
|
|
*/
|
|
ISR(EMIOS0_3_IRQ)
|
|
{
|
|
#if (defined EMIOS_0_CH_8_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 8 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[8].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 8 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[8].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_8_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 8);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_8_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 8);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_8_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 8);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_8_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 8);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[8].S = (emiosBase[0]->CH.UC[8].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_0_CH_9_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 9 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[9].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 9 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[9].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_9_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 9);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_9_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 9);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_9_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 9);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_9_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 9);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[9].S = (emiosBase[0]->CH.UC[9].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_0_CH_10_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 10 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[10].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 10 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[10].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_10_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 10);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_10_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 10);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_10_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 10);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_10_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 10);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[10].S = (emiosBase[0]->CH.UC[10].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_0_CH_11_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 11 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[11].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 11 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[11].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_11_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 11);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_11_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 11);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_11_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 11);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_11_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 11);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[11].S = (emiosBase[0]->CH.UC[11].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
#endif
|
|
#if (\
|
|
(defined GPT_EMIOS_0_CH_12_ISR_USED) ||\
|
|
(defined GPT_EMIOS_0_CH_13_ISR_USED) ||\
|
|
(defined GPT_EMIOS_0_CH_14_ISR_USED) ||\
|
|
(defined GPT_EMIOS_0_CH_15_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_12_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_13_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_14_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_15_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_12_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_13_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_14_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_15_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_12_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_13_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_14_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_15_ISR_USED)\
|
|
)
|
|
/**
|
|
* @brief Interrupt handler for Emios channels 12-15 for Emios instance 0
|
|
* @details Process the interrupt of eMios channels 12-15
|
|
*
|
|
* @note This will be defined only if EMIOS channels 12, 13, 14, 15 are configured in GPT, ICU,
|
|
* OCU or PWM mode.
|
|
*/
|
|
ISR(EMIOS0_2_IRQ)
|
|
{
|
|
#if (defined EMIOS_0_CH_12_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 12 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[12].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 12 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[12].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_12_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 12);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_12_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 12);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_12_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 12);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_12_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 12);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[12].S = (emiosBase[0]->CH.UC[12].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_0_CH_13_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 13 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[13].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 13 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[13].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_13_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 13);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_13_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 13);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_13_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 13);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_13_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 13);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[13].S = (emiosBase[0]->CH.UC[13].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_0_CH_14_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 14 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[14].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 14 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[14].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_14_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 14);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_14_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 14);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_14_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 14);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_14_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 14);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[14].S = (emiosBase[0]->CH.UC[14].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_0_CH_15_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 15 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[15].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 15 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[15].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_15_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 15);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_15_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 15);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_15_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 15);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_15_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 15);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[15].S = (emiosBase[0]->CH.UC[15].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
#endif
|
|
#if (\
|
|
(defined GPT_EMIOS_0_CH_16_ISR_USED) ||\
|
|
(defined GPT_EMIOS_0_CH_17_ISR_USED) ||\
|
|
(defined GPT_EMIOS_0_CH_18_ISR_USED) ||\
|
|
(defined GPT_EMIOS_0_CH_19_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_16_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_17_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_18_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_19_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_16_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_17_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_18_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_19_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_16_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_17_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_18_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_19_ISR_USED)\
|
|
)
|
|
/**
|
|
* @brief Interrupt handler for Emios channels 16-19 for Emios instance 0
|
|
* @details Process the interrupt of eMios channels 16-19
|
|
*
|
|
* @note This will be defined only if EMIOS channels 16, 17, 18, 19 are configured in GPT, ICU,
|
|
* OCU or PWM mode.
|
|
*/
|
|
ISR(EMIOS0_1_IRQ)
|
|
{
|
|
#if (defined EMIOS_0_CH_16_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 16 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[16].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 16 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[16].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_16_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 16);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_16_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 16);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_16_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 16);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_16_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 16);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[16].S = (emiosBase[0]->CH.UC[16].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_0_CH_17_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 17 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[17].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 17 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[17].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_17_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 17);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_17_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 17);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_17_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 17);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_17_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 17);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[17].S = (emiosBase[0]->CH.UC[17].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_0_CH_18_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 18 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[18].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 18 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[18].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_18_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 18);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_18_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 18);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_18_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 18);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_18_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 18);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[18].S = (emiosBase[0]->CH.UC[18].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_0_CH_19_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 19 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[19].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 19 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[19].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_19_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 19);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_19_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 19);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_19_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 19);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_19_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 19);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[19].S = (emiosBase[0]->CH.UC[19].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
#endif
|
|
#if (\
|
|
(defined GPT_EMIOS_0_CH_20_ISR_USED) ||\
|
|
(defined GPT_EMIOS_0_CH_21_ISR_USED) ||\
|
|
(defined GPT_EMIOS_0_CH_22_ISR_USED) ||\
|
|
(defined GPT_EMIOS_0_CH_23_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_20_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_21_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_22_ISR_USED) ||\
|
|
(defined ICU_EMIOS_0_CH_23_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_20_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_21_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_22_ISR_USED) ||\
|
|
(defined OCU_EMIOS_0_CH_23_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_20_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_21_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_22_ISR_USED) ||\
|
|
(defined PWM_EMIOS_0_CH_23_ISR_USED)\
|
|
)
|
|
/**
|
|
* @brief Interrupt handler for Emios channels 20-23 for Emios instance 0
|
|
* @details Process the interrupt of eMios channels 20-23
|
|
*
|
|
* @note This will be defined only if EMIOS channels 20, 21, 22, 23 are configured in GPT, ICU,
|
|
* OCU or PWM mode.
|
|
*/
|
|
ISR(EMIOS0_0_IRQ)
|
|
{
|
|
#if (defined EMIOS_0_CH_20_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 20 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[20].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 20 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[20].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_20_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 20);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_20_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 20);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_20_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 20);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_20_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 20);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[20].S = (emiosBase[0]->CH.UC[20].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_0_CH_21_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 21 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[21].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 21 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[21].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_21_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 21);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_21_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 21);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_21_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 21);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_21_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 21);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[21].S = (emiosBase[0]->CH.UC[21].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_0_CH_22_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 22 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[22].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 22 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[22].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_22_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 22);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_22_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 22);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_22_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 22);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_22_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 22);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[22].S = (emiosBase[0]->CH.UC[22].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_0_CH_23_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 23 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[23].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 23 */
|
|
if ( 0U != ((emiosBase[0]->CH.UC[23].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_0_CH_23_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(0, 23);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_0_CH_23_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(0, 23);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_0_CH_23_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(0, 23);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_0_CH_23_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(0, 23);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[0]->CH.UC[23].S = (emiosBase[0]->CH.UC[23].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
#endif
|
|
|
|
#if (\
|
|
(defined GPT_EMIOS_1_CH_0_ISR_USED) ||\
|
|
(defined GPT_EMIOS_1_CH_1_ISR_USED) ||\
|
|
(defined GPT_EMIOS_1_CH_2_ISR_USED) ||\
|
|
(defined GPT_EMIOS_1_CH_3_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_0_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_1_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_2_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_3_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_0_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_1_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_2_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_3_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_0_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_1_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_2_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_3_ISR_USED)\
|
|
)
|
|
/**
|
|
* @brief Interrupt handler for Emios channels 0-3 for Emios instance 1
|
|
* @details Process the interrupt of eMios channels 0-3
|
|
*
|
|
* @note This will be defined only if EMIOS channels 0, 1, 2, 3 are configured in GPT, ICU,
|
|
* OCU or PWM mode.
|
|
*/
|
|
ISR(EMIOS1_5_IRQ)
|
|
{
|
|
#if (defined EMIOS_1_CH_0_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 0 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[0].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 0 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[0].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_0_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 0);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_0_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 0);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_0_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 0);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_0_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 0);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[0].S = (emiosBase[1]->CH.UC[0].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_1_CH_1_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 1 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[1].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 1 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[1].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_1_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 1);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_1_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 1);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_1_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 1);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_1_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 1);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[1].S = (emiosBase[1]->CH.UC[1].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_1_CH_2_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 2 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[2].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 2 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[2].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_2_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 2);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_2_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 2);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_2_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 2);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_2_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 2);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[2].S = (emiosBase[1]->CH.UC[2].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_1_CH_3_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 3 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[3].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 3 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[3].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_3_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 3);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_3_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 3);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_3_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 3);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_3_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 3);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[3].S = (emiosBase[1]->CH.UC[3].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
#endif
|
|
#if (\
|
|
(defined GPT_EMIOS_1_CH_4_ISR_USED) ||\
|
|
(defined GPT_EMIOS_1_CH_5_ISR_USED) ||\
|
|
(defined GPT_EMIOS_1_CH_6_ISR_USED) ||\
|
|
(defined GPT_EMIOS_1_CH_7_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_4_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_5_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_6_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_7_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_4_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_5_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_6_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_7_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_4_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_5_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_6_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_7_ISR_USED)\
|
|
)
|
|
/**
|
|
* @brief Interrupt handler for Emios channels 4-7 for Emios instance 1
|
|
* @details Process the interrupt of eMios channels 4-7
|
|
*
|
|
* @note This will be defined only if EMIOS channels 4, 5, 6, 7 are configured in GPT, ICU,
|
|
* OCU or PWM mode.
|
|
*/
|
|
ISR(EMIOS1_4_IRQ)
|
|
{
|
|
#if (defined EMIOS_1_CH_4_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 4 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[4].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 4 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[4].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_4_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 4);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_4_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 4);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_4_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 4);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_4_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 4);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[4].S = (emiosBase[1]->CH.UC[4].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_1_CH_5_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 5 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[5].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 5 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[5].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_5_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 5);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_5_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 5);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_5_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 5);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_5_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 5);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[5].S = (emiosBase[1]->CH.UC[5].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_1_CH_6_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 6 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[6].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 6 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[6].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_6_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 6);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_6_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 6);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_6_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 6);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_6_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 6);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[6].S = (emiosBase[1]->CH.UC[6].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_1_CH_7_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 7 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[7].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 7 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[7].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_7_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 7);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_7_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 7);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_7_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 7);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_7_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 7);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[7].S = (emiosBase[1]->CH.UC[7].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
#endif
|
|
#if (\
|
|
(defined GPT_EMIOS_1_CH_8_ISR_USED) ||\
|
|
(defined GPT_EMIOS_1_CH_9_ISR_USED) ||\
|
|
(defined GPT_EMIOS_1_CH_10_ISR_USED) ||\
|
|
(defined GPT_EMIOS_1_CH_11_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_8_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_9_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_10_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_11_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_8_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_9_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_10_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_11_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_8_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_9_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_10_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_11_ISR_USED)\
|
|
)
|
|
/**
|
|
* @brief Interrupt handler for Emios channels 8-11 for Emios instance 1
|
|
* @details Process the interrupt of eMios channels 8-11
|
|
*
|
|
* @note This will be defined only if EMIOS channels 8, 9, 10, 11 are configured in GPT, ICU,
|
|
* OCU or PWM mode.
|
|
*/
|
|
ISR(EMIOS1_3_IRQ)
|
|
{
|
|
#if (defined EMIOS_1_CH_8_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 8 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[8].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 8 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[8].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_8_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 8);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_8_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 8);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_8_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 8);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_8_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 8);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[8].S = (emiosBase[1]->CH.UC[8].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_1_CH_9_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 9 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[9].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 9 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[9].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_9_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 9);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_9_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 9);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_9_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 9);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_9_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 9);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[9].S = (emiosBase[1]->CH.UC[9].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_1_CH_10_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 10 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[10].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 10 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[10].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_10_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 10);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_10_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 10);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_10_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 10);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_10_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 10);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[10].S = (emiosBase[1]->CH.UC[10].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_1_CH_11_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 11 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[11].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 11 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[11].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_11_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 11);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_11_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 11);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_11_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 11);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_11_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 11);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[11].S = (emiosBase[1]->CH.UC[11].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
#endif
|
|
#if (\
|
|
(defined GPT_EMIOS_1_CH_12_ISR_USED) ||\
|
|
(defined GPT_EMIOS_1_CH_13_ISR_USED) ||\
|
|
(defined GPT_EMIOS_1_CH_14_ISR_USED) ||\
|
|
(defined GPT_EMIOS_1_CH_15_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_12_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_13_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_14_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_15_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_12_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_13_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_14_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_15_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_12_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_13_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_14_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_15_ISR_USED)\
|
|
)
|
|
/**
|
|
* @brief Interrupt handler for Emios channels 12-15 for Emios instance 1
|
|
* @details Process the interrupt of eMios channels 12-15
|
|
*
|
|
* @note This will be defined only if EMIOS channels 12, 13, 14, 15 are configured in GPT, ICU,
|
|
* OCU or PWM mode.
|
|
*/
|
|
ISR(EMIOS1_2_IRQ)
|
|
{
|
|
#if (defined EMIOS_1_CH_12_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 12 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[12].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 12 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[12].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_12_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 12);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_12_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 12);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_12_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 12);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_12_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 12);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[12].S = (emiosBase[1]->CH.UC[12].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_1_CH_13_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 13 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[13].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 13 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[13].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_13_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 13);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_13_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 13);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_13_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 13);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_13_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 13);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[13].S = (emiosBase[1]->CH.UC[13].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_1_CH_14_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 14 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[14].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 14 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[14].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_14_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 14);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_14_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 14);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_14_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 14);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_14_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 14);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[14].S = (emiosBase[1]->CH.UC[14].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_1_CH_15_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 15 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[15].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 15 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[15].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_15_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 15);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_15_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 15);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_15_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 15);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_15_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 15);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[15].S = (emiosBase[1]->CH.UC[15].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
#endif
|
|
#if (\
|
|
(defined GPT_EMIOS_1_CH_16_ISR_USED) ||\
|
|
(defined GPT_EMIOS_1_CH_17_ISR_USED) ||\
|
|
(defined GPT_EMIOS_1_CH_18_ISR_USED) ||\
|
|
(defined GPT_EMIOS_1_CH_19_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_16_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_17_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_18_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_19_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_16_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_17_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_18_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_19_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_16_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_17_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_18_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_19_ISR_USED)\
|
|
)
|
|
/**
|
|
* @brief Interrupt handler for Emios channels 16-19 for Emios instance 1
|
|
* @details Process the interrupt of eMios channels 16-19
|
|
*
|
|
* @note This will be defined only if EMIOS channels 16, 17, 18, 19 are configured in GPT, ICU,
|
|
* OCU or PWM mode.
|
|
*/
|
|
ISR(EMIOS1_1_IRQ)
|
|
{
|
|
#if (defined EMIOS_1_CH_16_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 16 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[16].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 16 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[16].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_16_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 16);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_16_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 16);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_16_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 16);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_16_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 16);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[16].S = (emiosBase[1]->CH.UC[16].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_1_CH_17_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 17 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[17].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 17 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[17].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_17_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 17);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_17_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 17);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_17_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 17);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_17_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 17);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[17].S = (emiosBase[1]->CH.UC[17].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_1_CH_18_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 18 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[18].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 18 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[18].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_18_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 18);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_18_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 18);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_18_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 18);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_18_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 18);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[18].S = (emiosBase[1]->CH.UC[18].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_1_CH_19_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 19 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[19].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 19 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[19].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_19_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 19);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_19_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 19);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_19_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 19);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_19_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 19);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[19].S = (emiosBase[1]->CH.UC[19].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
#endif
|
|
#if (\
|
|
(defined GPT_EMIOS_1_CH_20_ISR_USED) ||\
|
|
(defined GPT_EMIOS_1_CH_21_ISR_USED) ||\
|
|
(defined GPT_EMIOS_1_CH_22_ISR_USED) ||\
|
|
(defined GPT_EMIOS_1_CH_23_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_20_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_21_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_22_ISR_USED) ||\
|
|
(defined ICU_EMIOS_1_CH_23_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_20_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_21_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_22_ISR_USED) ||\
|
|
(defined OCU_EMIOS_1_CH_23_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_20_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_21_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_22_ISR_USED) ||\
|
|
(defined PWM_EMIOS_1_CH_23_ISR_USED)\
|
|
)
|
|
/**
|
|
* @brief Interrupt handler for Emios channels 20-23 for Emios instance 1
|
|
* @details Process the interrupt of eMios channels 20-23
|
|
*
|
|
* @note This will be defined only if EMIOS channels 20, 21, 22, 23 are configured in GPT, ICU,
|
|
* OCU or PWM mode.
|
|
*/
|
|
ISR(EMIOS1_0_IRQ)
|
|
{
|
|
#if (defined EMIOS_1_CH_20_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 20 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[20].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 20 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[20].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_20_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 20);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_20_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 20);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_20_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 20);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_20_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 20);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[20].S = (emiosBase[1]->CH.UC[20].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_1_CH_21_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 21 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[21].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 21 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[21].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_21_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 21);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_21_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 21);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_21_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 21);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_21_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 21);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[21].S = (emiosBase[1]->CH.UC[21].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_1_CH_22_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 22 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[22].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 22 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[22].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_22_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 22);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_22_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 22);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_22_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 22);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_22_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 22);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[22].S = (emiosBase[1]->CH.UC[22].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_1_CH_23_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 23 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[23].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 23 */
|
|
if ( 0U != ((emiosBase[1]->CH.UC[23].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_1_CH_23_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(1, 23);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_1_CH_23_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(1, 23);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_1_CH_23_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(1, 23);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_1_CH_23_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(1, 23);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[1]->CH.UC[23].S = (emiosBase[1]->CH.UC[23].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
#endif
|
|
|
|
#if (\
|
|
(defined GPT_EMIOS_2_CH_0_ISR_USED) ||\
|
|
(defined GPT_EMIOS_2_CH_1_ISR_USED) ||\
|
|
(defined GPT_EMIOS_2_CH_2_ISR_USED) ||\
|
|
(defined GPT_EMIOS_2_CH_3_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_0_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_1_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_2_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_3_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_0_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_1_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_2_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_3_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_0_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_1_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_2_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_3_ISR_USED)\
|
|
)
|
|
/**
|
|
* @brief Interrupt handler for Emios channels 0-3 for Emios instance 2
|
|
* @details Process the interrupt of eMios channels 0-3
|
|
*
|
|
* @note This will be defined only if EMIOS channels 0, 1, 2, 3 are configured in GPT, ICU,
|
|
* OCU or PWM mode.
|
|
*/
|
|
ISR(EMIOS2_5_IRQ)
|
|
{
|
|
#if (defined EMIOS_2_CH_0_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 0 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[0].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 0 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[0].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_0_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 0);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_0_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 0);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_0_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 0);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_0_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 0);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[0].S = (emiosBase[2]->CH.UC[0].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_2_CH_1_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 1 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[1].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 1 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[1].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_1_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 1);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_1_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 1);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_1_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 1);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_1_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 1);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[1].S = (emiosBase[2]->CH.UC[1].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_2_CH_2_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 2 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[2].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 2 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[2].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_2_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 2);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_2_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 2);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_2_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 2);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_2_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 2);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[2].S = (emiosBase[2]->CH.UC[2].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_2_CH_3_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 3 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[3].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 3 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[3].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_3_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 3);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_3_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 3);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_3_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 3);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_3_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 3);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[3].S = (emiosBase[2]->CH.UC[3].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
#endif
|
|
#if (\
|
|
(defined GPT_EMIOS_2_CH_4_ISR_USED) ||\
|
|
(defined GPT_EMIOS_2_CH_5_ISR_USED) ||\
|
|
(defined GPT_EMIOS_2_CH_6_ISR_USED) ||\
|
|
(defined GPT_EMIOS_2_CH_7_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_4_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_5_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_6_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_7_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_4_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_5_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_6_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_7_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_4_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_5_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_6_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_7_ISR_USED)\
|
|
)
|
|
/**
|
|
* @brief Interrupt handler for Emios channels 4-7 for Emios instance 2
|
|
* @details Process the interrupt of eMios channels 4-7
|
|
*
|
|
* @note This will be defined only if EMIOS channels 4, 5, 6, 7 are configured in GPT, ICU,
|
|
* OCU or PWM mode.
|
|
*/
|
|
ISR(EMIOS2_4_IRQ)
|
|
{
|
|
#if (defined EMIOS_2_CH_4_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 4 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[4].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 4 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[4].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_4_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 4);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_4_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 4);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_4_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 4);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_4_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 4);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[4].S = (emiosBase[2]->CH.UC[4].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_2_CH_5_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 5 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[5].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 5 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[5].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_5_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 5);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_5_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 5);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_5_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 5);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_5_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 5);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[5].S = (emiosBase[2]->CH.UC[5].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_2_CH_6_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 6 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[6].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 6 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[6].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_6_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 6);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_6_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 6);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_6_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 6);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_6_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 6);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[6].S = (emiosBase[2]->CH.UC[6].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_2_CH_7_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 7 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[7].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 7 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[7].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_7_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 7);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_7_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 7);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_7_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 7);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_7_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 7);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[7].S = (emiosBase[2]->CH.UC[7].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
#endif
|
|
#if (\
|
|
(defined GPT_EMIOS_2_CH_8_ISR_USED) ||\
|
|
(defined GPT_EMIOS_2_CH_9_ISR_USED) ||\
|
|
(defined GPT_EMIOS_2_CH_10_ISR_USED) ||\
|
|
(defined GPT_EMIOS_2_CH_11_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_8_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_9_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_10_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_11_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_8_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_9_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_10_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_11_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_8_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_9_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_10_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_11_ISR_USED)\
|
|
)
|
|
/**
|
|
* @brief Interrupt handler for Emios channels 8-11 for Emios instance 2
|
|
* @details Process the interrupt of eMios channels 8-11
|
|
*
|
|
* @note This will be defined only if EMIOS channels 8, 9, 10, 11 are configured in GPT, ICU,
|
|
* OCU or PWM mode.
|
|
*/
|
|
ISR(EMIOS2_3_IRQ)
|
|
{
|
|
#if (defined EMIOS_2_CH_8_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 8 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[8].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 8 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[8].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_8_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 8);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_8_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 8);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_8_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 8);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_8_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 8);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[8].S = (emiosBase[2]->CH.UC[8].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_2_CH_9_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 9 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[9].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 9 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[9].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_9_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 9);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_9_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 9);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_9_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 9);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_9_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 9);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[9].S = (emiosBase[2]->CH.UC[9].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_2_CH_10_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 10 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[10].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 10 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[10].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_10_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 10);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_10_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 10);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_10_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 10);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_10_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 10);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[10].S = (emiosBase[2]->CH.UC[10].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_2_CH_11_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 11 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[11].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 11 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[11].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_11_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 11);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_11_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 11);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_11_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 11);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_11_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 11);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[11].S = (emiosBase[2]->CH.UC[11].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
#endif
|
|
#if (\
|
|
(defined GPT_EMIOS_2_CH_12_ISR_USED) ||\
|
|
(defined GPT_EMIOS_2_CH_13_ISR_USED) ||\
|
|
(defined GPT_EMIOS_2_CH_14_ISR_USED) ||\
|
|
(defined GPT_EMIOS_2_CH_15_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_12_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_13_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_14_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_15_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_12_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_13_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_14_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_15_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_12_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_13_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_14_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_15_ISR_USED)\
|
|
)
|
|
/**
|
|
* @brief Interrupt handler for Emios channels 12-15 for Emios instance 2
|
|
* @details Process the interrupt of eMios channels 12-15
|
|
*
|
|
* @note This will be defined only if EMIOS channels 12, 13, 14, 15 are configured in GPT, ICU,
|
|
* OCU or PWM mode.
|
|
*/
|
|
ISR(EMIOS2_2_IRQ)
|
|
{
|
|
#if (defined EMIOS_2_CH_12_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 12 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[12].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 12 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[12].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_12_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 12);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_12_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 12);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_12_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 12);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_12_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 12);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[12].S = (emiosBase[2]->CH.UC[12].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_2_CH_13_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 13 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[13].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 13 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[13].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_13_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 13);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_13_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 13);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_13_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 13);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_13_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 13);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[13].S = (emiosBase[2]->CH.UC[13].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_2_CH_14_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 14 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[14].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 14 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[14].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_14_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 14);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_14_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 14);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_14_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 14);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_14_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 14);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[14].S = (emiosBase[2]->CH.UC[14].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_2_CH_15_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 15 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[15].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 15 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[15].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_15_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 15);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_15_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 15);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_15_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 15);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_15_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 15);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[15].S = (emiosBase[2]->CH.UC[15].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
#endif
|
|
#if (\
|
|
(defined GPT_EMIOS_2_CH_16_ISR_USED) ||\
|
|
(defined GPT_EMIOS_2_CH_17_ISR_USED) ||\
|
|
(defined GPT_EMIOS_2_CH_18_ISR_USED) ||\
|
|
(defined GPT_EMIOS_2_CH_19_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_16_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_17_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_18_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_19_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_16_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_17_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_18_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_19_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_16_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_17_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_18_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_19_ISR_USED)\
|
|
)
|
|
/**
|
|
* @brief Interrupt handler for Emios channels 16-19 for Emios instance 2
|
|
* @details Process the interrupt of eMios channels 16-19
|
|
*
|
|
* @note This will be defined only if EMIOS channels 16, 17, 18, 19 are configured in GPT, ICU,
|
|
* OCU or PWM mode.
|
|
*/
|
|
ISR(EMIOS2_1_IRQ)
|
|
{
|
|
#if (defined EMIOS_2_CH_16_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 16 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[16].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 16 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[16].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_16_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 16);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_16_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 16);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_16_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 16);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_16_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 16);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[16].S = (emiosBase[2]->CH.UC[16].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_2_CH_17_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 17 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[17].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 17 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[17].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_17_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 17);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_17_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 17);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_17_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 17);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_17_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 17);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[17].S = (emiosBase[2]->CH.UC[17].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_2_CH_18_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 18 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[18].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 18 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[18].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_18_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 18);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_18_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 18);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_18_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 18);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_18_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 18);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[18].S = (emiosBase[2]->CH.UC[18].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_2_CH_19_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 19 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[19].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 19 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[19].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_19_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 19);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_19_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 19);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_19_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 19);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_19_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 19);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[19].S = (emiosBase[2]->CH.UC[19].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
#endif
|
|
#if (\
|
|
(defined GPT_EMIOS_2_CH_20_ISR_USED) ||\
|
|
(defined GPT_EMIOS_2_CH_21_ISR_USED) ||\
|
|
(defined GPT_EMIOS_2_CH_22_ISR_USED) ||\
|
|
(defined GPT_EMIOS_2_CH_23_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_20_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_21_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_22_ISR_USED) ||\
|
|
(defined ICU_EMIOS_2_CH_23_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_20_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_21_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_22_ISR_USED) ||\
|
|
(defined OCU_EMIOS_2_CH_23_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_20_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_21_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_22_ISR_USED) ||\
|
|
(defined PWM_EMIOS_2_CH_23_ISR_USED)\
|
|
)
|
|
/**
|
|
* @brief Interrupt handler for Emios channels 20-23 for Emios instance 2
|
|
* @details Process the interrupt of eMios channels 20-23
|
|
*
|
|
* @note This will be defined only if EMIOS channels 20, 21, 22, 23 are configured in GPT, ICU,
|
|
* OCU or PWM mode.
|
|
*/
|
|
ISR(EMIOS2_0_IRQ)
|
|
{
|
|
#if (defined EMIOS_2_CH_20_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 20 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[20].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 20 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[20].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_20_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 20);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_20_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 20);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_20_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 20);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_20_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 20);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[20].S = (emiosBase[2]->CH.UC[20].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_2_CH_21_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 21 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[21].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 21 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[21].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_21_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 21);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_21_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 21);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_21_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 21);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_21_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 21);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[21].S = (emiosBase[2]->CH.UC[21].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_2_CH_22_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 22 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[22].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 22 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[22].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_22_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 22);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_22_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 22);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_22_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 22);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_22_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 22);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[22].S = (emiosBase[2]->CH.UC[22].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
#if (defined EMIOS_2_CH_23_ISR_USED)
|
|
/* Check that an event occurred on Emios channel 23 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[23].S) & (uint32)eMIOS_S_FLAG_MASK) )
|
|
{
|
|
/* Check that an event occurred on EMIOS channel 23 */
|
|
if ( 0U != ((emiosBase[2]->CH.UC[23].C) & ((uint32)(eMIOS_C_DMA_MASK | eMIOS_C_FEN_MASK))) )
|
|
{
|
|
#if (defined GPT_EMIOS_2_CH_23_ISR_USED)
|
|
Emios_Gpt_Ip_IrqHandler(2, 23);
|
|
#endif
|
|
|
|
#if (defined ICU_EMIOS_2_CH_23_ISR_USED)
|
|
Emios_Icu_Ip_IrqHandler(2, 23);
|
|
#endif
|
|
|
|
#if (defined OCU_EMIOS_2_CH_23_ISR_USED)
|
|
Emios_Ocu_Ip_IrqHandler(2, 23);
|
|
#endif
|
|
|
|
#if (defined PWM_EMIOS_2_CH_23_ISR_USED)
|
|
Emios_Pwm_Ip_IrqHandler(2, 23);
|
|
#endif
|
|
|
|
}
|
|
else
|
|
{
|
|
/* Interrupts are not enabled for this channel. Write 1 to clear flags */
|
|
emiosBase[2]->CH.UC[23].S = (emiosBase[2]->CH.UC[23].S) & (eMIOS_S_FLAG_MASK | eMIOS_S_OVFL_MASK | eMIOS_S_OVR_MASK);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
#endif
|
|
|
|
|
|
|
|
#define MCL_STOP_SEC_CODE
|
|
#include "Mcl_MemMap.h"
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|