Summer Qin | bce2113 | 2020-08-19 14:28:10 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2020, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #ifndef __TFM_HAL_PLATFORM_H__ |
| 9 | #define __TFM_HAL_PLATFORM_H__ |
| 10 | |
Summer Qin | 0eb7c91 | 2020-08-19 16:08:50 +0800 | [diff] [blame^] | 11 | #include "tfm_hal_defs.h" |
| 12 | |
| 13 | /** |
| 14 | * \brief This function performs the platform-specific initialization. |
| 15 | * |
| 16 | * This function is called after architecture and platform common initialization |
| 17 | * has finished during system early startup. |
| 18 | * |
| 19 | * \retval TFM_HAL_SUCCESS Init success. |
| 20 | * \retval TFM_HAL_ERROR_GENERIC Generic errors. |
| 21 | */ |
| 22 | enum tfm_hal_status_t tfm_hal_platform_init(void); |
| 23 | |
Summer Qin | bce2113 | 2020-08-19 14:28:10 +0800 | [diff] [blame] | 24 | /** |
| 25 | * \brief System reset |
| 26 | */ |
| 27 | void tfm_hal_system_reset(void); |
| 28 | |
| 29 | #endif /* __TFM_HAL_PLATFORM_H__ */ |