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