OpenBSL  v.0.1.0
OpenBSL.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 /**************************************************************************/
41 #ifndef _OPEN_BSL_H_
42 #define _OPEN_BSL_H_
43 
44 
45 /**************************************************************************/
62 /**************************************************************************/
79 //*****************************************************************************
80 // Include section
81 //*****************************************************************************
82 #include "OpenBSL_Config.h"
83 
84 //*****************************************************************************
85 // Global variable declarations
86 //*****************************************************************************
87 
88 
89 //*****************************************************************************
90 // Macros (defines) and data types
91 //*****************************************************************************
92 
93 
94 //*****************************************************************************
95 // External function declarations
96 //*****************************************************************************
97 
98 extern void OpenBSL_Init(void);
99 extern bool OpenBSL_EntryCheck(void);
100 extern void OpenBSL_RunApp(void);
101 extern void OpenBSL_RunBSL(void);
102 
103 
104 #endif /* _OPEN_BSL_H_ */
bool OpenBSL_EntryCheck(void)
check whether it is necessary to run BSL or application
Definition: OpenBSL_Custom.c:149
void OpenBSL_Init(void)
device/HW initialization function for OpenBSL
Definition: OpenBSL_Core.c:116
void OpenBSL_RunApp(void)
run application, leave BSL mode
Definition: OpenBSL_Custom.c:167
OpenBSL configuration header file.
void OpenBSL_RunBSL(void)
BSL main routine.
Definition: OpenBSL_Core.c:133