OpenBSL  v.0.1.0
OpenBSL_Config.h
Go to the documentation of this file.
1 /******************************************************************************
2 * Copyright (c) 2013, Leo Hendrawan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the copyright holder(s) nor the names of its
13 * contributor(s) may be used to endorse or promote products derived
14 * from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTOR(S) BE LIABLE FOR
20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
25 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 ******************************************************************************/
27 
28 /**************************************************************************/
40 #ifndef _OPEN_BSL_CONFIG_H_
41 #define _OPEN_BSL_CONFIG_H_
42 
43 
44 //*****************************************************************************
45 // Include section
46 //*****************************************************************************
47 
48 
49 //*****************************************************************************
50 // Global variable declarations
51 //*****************************************************************************
52 
56 #define OPEN_BSL_CONFIG_DEBUG (false)
57 
62 #define OPEN_BSL_NUM_OF_MEM_SECTIONS (2)
63 
69 #define OPEN_BSL_CONFIG_PASSWORD_PROTECTED (true)
70 
74 #define OPEN_BSL_CONFIG_SUPPORT_CMD_ERASE_IMAGE (true)
75 
79 #define OPEN_BSL_CONFIG_SUPPORT_CMD_DOWNLOAD_IMAGE (true)
80 
84 #define OPEN_BSL_CONFIG_SUPPORT_CMD_UPLOAD_IMAGE (true)
85 
89 #define OPEN_BSL_CONFIG_SUPPORT_CMD_CALCULATE_CHECKSUM (true)
90 
94 #define OPEN_BSL_CONFIG_SUPPORT_CMD_ERASE_SEGMENT (true)
95 
99 #define OPEN_BSL_CONFIG_SUPPORT_CMD_DOWNLOAD_SEGMENT (true)
100 
104 #define OPEN_BSL_CONFIG_SUPPORT_CMD_UPLOAD_SEGMENT (true)
105 
109 #define OPEN_BSL_CONFIG_SUPPORT_CMD_JUMP_TO_ADDR (true)
110 
116 #define OPEN_BSL_CONFIG_PASSWORD {'M', 'Y', 'P', 'A', 'S', 'S', 'W', 'D'}
117 
118 
119 
120 //*****************************************************************************
121 // Macros (defines) and data types
122 //*****************************************************************************
123 
124 
125 //*****************************************************************************
126 // External function declarations
127 //*****************************************************************************
128 
129 
130 #endif /* _OPEN_BSL_CONFIG_H_ */