-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflc.h
69 lines (56 loc) · 2.31 KB
/
flc.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
/*
* flc.c - Header file for flc.c
*
* All rights reserved. Property of Texas Instruments Incorporated.
* Restricted rights to use, duplicate or disclose this code are
* granted through contract.
* The program may not be used without the written permission of
* Texas Instruments Incorporated or against the terms and conditions
* stipulated in the agreement under which this program has been supplied,
* and under no circumstances can it be used with non-TI connectivity device.
*
*/
#ifndef __FLC_H__
#define __FLC_H__
/******************************************************************************
If building with a C++ compiler, make all of the definitions in this header
have a C binding.
*******************************************************************************/
#ifdef __cplusplus
extern "C"
{
#endif
/******************************************************************************
Image file names
*******************************************************************************/
#define IMG_BOOT_INFO "/sys/mcubootinfo.bin"
#define IMG_FACTORY_DEFAULT "/sys/mcuimg1.bin"
#define IMG_USER_1 "/sys/mcuimg2.bin"
#define IMG_USER_2 "/sys/mcuimg3.bin"
/******************************************************************************
Image status
*******************************************************************************/
#define IMG_STATUS_TESTING 0x12344321
#define IMG_STATUS_TESTREADY 0x56788765
#define IMG_STATUS_NOTEST 0xABCDDCBA
/******************************************************************************
Active Image
*******************************************************************************/
#define IMG_ACT_FACTORY 0
#define IMG_ACT_USER1 1
#define IMG_ACT_USER2 2
/******************************************************************************
Boot Info structure
*******************************************************************************/
typedef struct sBootInfo
{
_u8 ucActiveImg;
_u32 ulImgStatus;
}sBootInfo_t;
/******************************************************************************
Mark the end of the C bindings section for C++ compilers.
*******************************************************************************/
#ifdef __cplusplus
}
#endif
#endif /* __FLC_H__ */