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