Mbed OS Reference
Loading...
Searching...
No Matches
tfm_plat_defs.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2017-2018, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#ifndef __TFM_PLAT_DEFS_H__
9#define __TFM_PLAT_DEFS_H__
10/**
11 * \file
12 *
13 * \note The interfaces defined in this file must be implemented for each
14 * target.
15 */
16
17#include <stdint.h>
18#include <limits.h>
19
20/**
21 * Error enum for TFM platform functions
22 */
24 TFM_PLAT_ERR_SUCCESS = 0,
25 TFM_PLAT_ERR_SYSTEM_ERR,
26 TFM_PLAT_ERR_MAX_VALUE,
27 /* Following entry is only to ensure the error code of int size */
28 TFM_PLAT_ERR_FORCE_INT_SIZE = INT_MAX
29};
30
31/*!
32 * \def TFM_LINK_SET_OBJECT_IN_PARTITION_SECTION(TFM_PARTITION_NAME)
33 *
34 * \brief This macro provides a mechanism to place a function code in a specific
35 * secure partition at linker time in TF-M Level 3.
36 *
37 * \param[in] TFM_PARTITION_NAME TF-M partition name assigned in the manifest
38 * file "tfm_partition_name" field.
39 */
40#define TFM_LINK_SET_OBJECT_IN_PARTITION_SECTION(TFM_PARTITION_NAME) \
41 __attribute__((section(TFM_PARTITION_NAME"_ATTR_FN")))
42
43#endif /* __TFM_PLAT_DEFS_H__ */
tfm_plat_err_t
Error enum for TFM platform functions.
Definition: tfm_plat_defs.h:23