-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathimage.h
More file actions
44 lines (36 loc) · 755 Bytes
/
image.h
File metadata and controls
44 lines (36 loc) · 755 Bytes
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
/*
* SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef BL1_2_IMAGE_H
#define BL1_2_IMAGE_H
#include <stddef.h>
#include <stdint.h>
#include "cmsis_compiler.h"
#include "mbedtls/lms.h"
#include "fih.h"
#include "image_layout_bl1_2.h"
#ifdef __cplusplus
extern "C" {
#endif
#define BL1_2_HEADER_SIZE (offsetof(struct bl1_2_image_t, protected_values.encrypted_data.data))
/**
*
* @param image_id
* @return uint32_t
*/
uint32_t bl1_image_get_flash_offset(uint32_t image_id);
/**
* @brief
*
* @param image_id
* @param out
* @return fih_int
*/
fih_int bl1_image_copy_to_sram(uint32_t image_id, uint8_t *out);
#ifdef __cplusplus
}
#endif
#endif /* BL1_2_IMAGE_H */