-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstm32_boot_xip.h
81 lines (69 loc) · 2.04 KB
/
stm32_boot_xip.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/**
******************************************************************************
* @file : stm32_boot_xip.h
* @version : 1.0.0
* @brief : Header for stm32_boot_xip.c file.
******************************************************************************
* @attention
*
* Copyright (c) 2023 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
* in the root directory of this software component.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __XIPBOOT__H__
#define __XIPBOOT__H__
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
/** @addtogroup BOOT_XIP
* @{
*/
/* Exported defines ---------------------------------------------------------*/
/**
* @defgroup BOOT_XIP_Private_Defines Boot XIP exported Defines
* @{
*/
/**
* @brief list of error code of XIP
*/
typedef enum {
BOOT_OK,
BOOT_ERROR_UNSUPPORTED_MEMORY, /* !< unsupported memory type */
BOOT_ERROR_NOBASEADDRESS, /* !< not base address for the memory */
BOOT_ERROR_MAPPEDMODEFAIL, /* !< error during map processing */
BOOT_ERROR_INCOMPATIBLEMEMORY, /* !< selected memory not compatible with XIP boot */
BOOT_ERROR_DRIVER,
}BOOTStatus_TypeDef;
/**
* @}
*/
/* Private function prototypes -----------------------------------------------*/
/**
* @defgroup BOOT_XIP_Exported_Functions Boot XIP exported functions
* @{
*/
/**
* @brief this function boot on the application, the operation consists to map the memory
* and jump in the application.
*
* @return @ref BOOTStatus_TypeDef
**/
BOOTStatus_TypeDef BOOT_Application(void);
/**
* @}
*/
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#endif /* __XIPBOOT__H__ */