]> begriffs open source - freertos/blob - portable/ThirdParty/XCC/Xtensa/portbenchmark.h
[AUTO][RELEASE]: Bump file header version to "10.4.4"
[freertos] / portable / ThirdParty / XCC / Xtensa / portbenchmark.h
1 /*\r
2  * FreeRTOS Kernel V10.4.4\r
3  * Copyright (C) 2015-2019 Cadence Design Systems, Inc.\r
4  * Copyright (C) 2021 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
5  *\r
6  * SPDX-License-Identifier: MIT\r
7  *\r
8  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
9  * this software and associated documentation files (the "Software"), to deal in\r
10  * the Software without restriction, including without limitation the rights to\r
11  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\r
12  * the Software, and to permit persons to whom the Software is furnished to do so,\r
13  * subject to the following conditions:\r
14  *\r
15  * The above copyright notice and this permission notice shall be included in all\r
16  * copies or substantial portions of the Software.\r
17  *\r
18  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
19  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r
20  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\r
21  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\r
22  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
23  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
24  *\r
25  * https://www.FreeRTOS.org\r
26  * https://github.com/FreeRTOS\r
27  *\r
28  */\r
29 \r
30 /*\r
31  * This utility helps benchmarking interrupt latency and context switches.\r
32  * In order to enable it, set configBENCHMARK to 1 in FreeRTOSConfig.h.\r
33  * You will also need to download the FreeRTOS_trace patch that contains\r
34  * portbenchmark.c and the complete version of portbenchmark.h\r
35  */\r
36 \r
37 #ifndef PORTBENCHMARK_H\r
38 #define PORTBENCHMARK_H\r
39 \r
40 #if configBENCHMARK\r
41     #error "You need to download the FreeRTOS_trace patch that overwrites this file"\r
42 #endif\r
43 \r
44 #define portbenchmarkINTERRUPT_DISABLE()\r
45 #define portbenchmarkINTERRUPT_RESTORE(newstate)\r
46 #define portbenchmarkIntLatency()\r
47 #define portbenchmarkIntWait()\r
48 #define portbenchmarkReset()\r
49 #define portbenchmarkPrint()\r
50 \r
51 #endif /* PORTBENCHMARK */\r