Software APIs
ottf_macros.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_LIB_TESTING_TEST_FRAMEWORK_OTTF_MACROS_H_
6 #define OPENTITAN_SW_DEVICE_LIB_TESTING_TEST_FRAMEWORK_OTTF_MACROS_H_
7 
8 #define OTTF_WORD_SIZE 4
9 #define OTTF_NV_SCRATCH _non_volatile_scratch_start
10 #define OTTF_HALF_WORD_SIZE (OTTF_WORD_SIZE / 2)
11 #define OTTF_CONTEXT_SIZE (OTTF_WORD_SIZE * 30)
12 #define OTTF_TASK_DELETE_SELF_OR_DIE \
13  ottf_task_delete_self(); \
14  abort();
15 
16 #endif // OPENTITAN_SW_DEVICE_LIB_TESTING_TEST_FRAMEWORK_OTTF_MACROS_H_