| 1 | /* USER CODE BEGIN Header */
|
|---|
| 2 | /**
|
|---|
| 3 | ******************************************************************************
|
|---|
| 4 | * @file Secure_nsclib/secure_nsc.h
|
|---|
| 5 | * @author MCD Application Team
|
|---|
| 6 | * @brief Header for secure non-secure callable APIs list
|
|---|
| 7 | ******************************************************************************
|
|---|
| 8 | * @attention
|
|---|
| 9 | *
|
|---|
| 10 | * Copyright (c) 2026 STMicroelectronics.
|
|---|
| 11 | * All rights reserved.
|
|---|
| 12 | *
|
|---|
| 13 | * This software is licensed under terms that can be found in the LICENSE file
|
|---|
| 14 | * in the root directory of this software component.
|
|---|
| 15 | * If no LICENSE file comes with this software, it is provided AS-IS.
|
|---|
| 16 | *
|
|---|
| 17 | ******************************************************************************
|
|---|
| 18 | */
|
|---|
| 19 | /* USER CODE END Header */
|
|---|
| 20 |
|
|---|
| 21 | /* USER CODE BEGIN Non_Secure_CallLib_h */
|
|---|
| 22 | /* Define to prevent recursive inclusion -------------------------------------*/
|
|---|
| 23 | #ifndef SECURE_NSC_H
|
|---|
| 24 | #define SECURE_NSC_H
|
|---|
| 25 |
|
|---|
| 26 | /* Includes ------------------------------------------------------------------*/
|
|---|
| 27 | #include <stdint.h>
|
|---|
| 28 |
|
|---|
| 29 | /* Exported types ------------------------------------------------------------*/
|
|---|
| 30 | /**
|
|---|
| 31 | * @brief non-secure callback ID enumeration definition
|
|---|
| 32 | */
|
|---|
| 33 | typedef enum
|
|---|
| 34 | {
|
|---|
| 35 | SECURE_FAULT_CB_ID = 0x00U, /*!< System secure fault callback ID */
|
|---|
| 36 | IAC_ERROR_CB_ID = 0x01U /*!< Illegal access secure error callback ID */
|
|---|
| 37 | } SECURE_CallbackIDTypeDef;
|
|---|
| 38 | /* Exported constants --------------------------------------------------------*/
|
|---|
| 39 | /* Exported macro ------------------------------------------------------------*/
|
|---|
| 40 | /* Exported functions ------------------------------------------------------- */
|
|---|
| 41 | void SECURE_RegisterCallback(SECURE_CallbackIDTypeDef CallbackId, void *func);
|
|---|
| 42 |
|
|---|
| 43 | #endif /* SECURE_NSC_H */
|
|---|
| 44 | /* USER CODE END Non_Secure_CallLib_h */
|
|---|
| 45 |
|
|---|