+++ /dev/null
-/*\r
- * FreeRTOS Kernel V10.1.0\r
- * Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\r
- *\r
- * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
- * this software and associated documentation files (the "Software"), to deal in\r
- * the Software without restriction, including without limitation the rights to\r
- * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\r
- * the Software, and to permit persons to whom the Software is furnished to do so,\r
- * subject to the following conditions:\r
- *\r
- * The above copyright notice and this permission notice shall be included in all\r
- * copies or substantial portions of the Software.\r
- *\r
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\r
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\r
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
- *\r
- * http://www.FreeRTOS.org\r
- * http://aws.amazon.com/freertos\r
- *\r
- * 1 tab == 4 spaces!\r
- */\r
-\r
-/*\r
- * This file defines the assembler wrapper for the example interrupt that is\r
- * defined in main.c. The wrapper is the interrupt entry point.\r
- */\r
-\r
-/* ISR_Support.h contains the definitions of portSAVE_CONTEXT() and\r
-portRESTORE_CONTEXT(). */\r
-#include "ISR_Support.h"\r
-\r
- .global _vANExampleISR_ASM_Wrapper\r
- .extern _vAnExampleISR_C_Handler\r
-\r
- .text\r
-\r
- /*\r
- * This demo does not include a functional interrupt service routine - so\r
- * this dummy handler (which is not actually installed) is provided as an\r
- * example of how an ISR that needs to cause a context switch needs to be\r
- * implemented. ISRs that do not cause a context switch have no special\r
- * requirements and can be written as per the compiler documentation.\r
- *\r
- * This assembly wrapper function calls the main handler, which is called\r
- * vAnExampleISR_C_Handler(), and is implemented in main.c. See the\r
- * documentation page for this demo on the FreeRTOS.org website for full\r
- * instructions.\r
- *\r
- * NOTE: vANExampleISR_ASM_Wrapper needs to be installed into the relevant\r
- * vector within vector_table.c.\r
- */\r
-\r
- vANExampleISR_ASM_Wrapper:\r
-\r
- /* portSAVE_CONTEXT() must be the first thing called in the ASM\r
- wrapper. */\r
- portSAVE_CONTEXT\r
-\r
- /* Once the context has been saved the C handler can be called. */\r
- call !!_vAnExampleISR_C_Handler\r
-\r
- /* Finally the ISR must end with a call to portRESTORE_CONTEXT()\r
- followed by a reti instruction to return from the interrupt to whichever\r
- task is now the task selected to run (which may be different to the task\r
- that was running before the interrupt started). */\r
- portRESTORE_CONTEXT\r
- reti\r
-\r
- .end\r
-\r