Software APIs
stack_utilization.h
1 // Copyright lowRISC contributors (OpenTitan project).
2 // Licensed under the Apache License, Version 2.0, see LICENSE for details.
3 // SPDX-License-Identifier: Apache-2.0
4 
5 #ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_STACK_UTILIZATION_H_
6 #define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_STACK_UTILIZATION_H_
7 #include <stdint.h>
8 
9 #include "sw/device/silicon_creator/lib/stack_utilization_asm.h"
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif // __cplusplus
14 
15 /**
16  * Examine stack utilization.
17  */
18 #ifdef STACK_UTILIZATION_CHECK
19 void stack_utilization_print(void);
20 #else
21 #define stack_utilization_print() \
22  do { \
23  } while (0)
24 #endif
25 
26 #ifdef __cplusplus
27 } // extern "C"
28 #endif // __cplusplus
29 
30 #endif // OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_STACK_UTILIZATION_H_