mbed-os5 only for TYBLE16
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
Diff: components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/secure_fw/core/tfm_platform_core_api.h
- Revision:
- 0:5b88d5760320
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/secure_fw/core/tfm_platform_core_api.h Tue Dec 17 23:23:45 2019 +0000 @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2018, Arm Limited. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + * + */ + +#ifndef __TFM_PLATFORM_CORE_API_H__ +#define __TFM_PLATFORM_CORE_API_H__ + +/** + * \brief Should be called in case of access violation. + * + * There might be platform specific means, by which it is possible on a + * subsystem to detect access violation. For example a platform can have a + * Peripheral Protection Controller, to detect unauthorised accesses to + * peripheral registers. Setting up the protection, and handling the violation + * is implemented in platform specific code. However TF-M should be able to + * decide how to proceed if a violation happens. So to notify TF-M, platform + * code have to call this function, if a violation happens. + */ +void tfm_access_violation_handler(void); + +#endif /* __TFM_PLATFORM_CORE_API_H__ */