1 /******************************************************************************
3 * @brief CMSIS-FreeRTOS Interrupt Handler
9 ******************************************************************************/
11 * Copyright (c) 2017 Arm Limited. All rights reserved.
13 * SPDX-License-Identifier: Apache-2.0
15 * Licensed under the Apache License, Version 2.0 (the License); you may
16 * not use this file except in compliance with the License.
17 * You may obtain a copy of the License at
19 * www.apache.org/licenses/LICENSE-2.0
21 * Unless required by applicable law or agreed to in writing, software
22 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
23 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24 * See the License for the specific language governing permissions and
25 * limitations under the License.
30 #include "RTE_Components.h"
31 #include CMSIS_device_header
34 /* The function called by the RTOS port layer after it has managed interrupt
36 void vApplicationIRQHandler( uint32_t ulICCIAR )
38 uint32_t ulInterruptID;
41 /* Re-enable interrupts. */
44 /* The ID of the interrupt can be obtained by bitwise anding the ICCIAR value
46 ulInterruptID = ulICCIAR & 0x3FFUL;
48 /* Call the function installed in the array of installed handler functions. */
49 h = IRQ_GetHandler (ulInterruptID);
51 /* Call handler function */