comparison BootLoader/Inc/base_bootloader.h @ 30:ea1003f63e44

ADD GPL License ...
author jDG
date Tue, 23 Jan 2018 17:29:40 +0100
parents 97eafbcb81a9
children
comparison
equal deleted inserted replaced
29:3a98f9e7ca58 30:ea1003f63e44
1 ///////////////////////////////////////////////////////////////////////////////
2 /// -*- coding: UTF-8 -*-
3 ///
4 /// \file BootLoader/Inc/base_bootloader.h
5 /// \brief Header for main.c module
6 /// \author MCD Application Team
7 /// \date 26-February-2014
8 ///
9 /// $Id$
10 ///////////////////////////////////////////////////////////////////////////////
11 /// \par Copyright (c) 2014-2018 Heinrichs Weikamp gmbh
12 ///
13 /// This program is free software: you can redistribute it and/or modify
14 /// it under the terms of the GNU General Public License as published by
15 /// the Free Software Foundation, either version 3 of the License, or
16 /// (at your option) any later version.
17 ///
18 /// This program is distributed in the hope that it will be useful,
19 /// but WITHOUT ANY WARRANTY; without even the implied warranty of
20 /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 /// GNU General Public License for more details.
22 ///
23 /// You should have received a copy of the GNU General Public License
24 /// along with this program. If not, see <http://www.gnu.org/licenses/>.
25 //////////////////////////////////////////////////////////////////////////////
1 /** 26 /**
2 ****************************************************************************** 27 ******************************************************************************
3 * @file LTDC/LTDC_Display_2Layers/Inc/main.h 28 * @attention
4 * @author MCD Application Team 29 *
5 * @version V1.0.1 30 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
6 * @date 26-February-2014 31 *
7 * @brief Header for main.c module 32 * Redistribution and use in source and binary forms, with or without modification,
8 ****************************************************************************** 33 * are permitted provided that the following conditions are met:
9 * @attention 34 * 1. Redistributions of source code must retain the above copyright notice,
10 * 35 * this list of conditions and the following disclaimer.
11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2> 36 * 2. Redistributions in binary form must reproduce the above copyright notice,
12 * 37 * this list of conditions and the following disclaimer in the documentation
13 * Redistribution and use in source and binary forms, with or without modification, 38 * and/or other materials provided with the distribution.
14 * are permitted provided that the following conditions are met: 39 * 3. Neither the name of STMicroelectronics nor the names of its contributors
15 * 1. Redistributions of source code must retain the above copyright notice, 40 * may be used to endorse or promote products derived from this software
16 * this list of conditions and the following disclaimer. 41 * without specific prior written permission.
17 * 2. Redistributions in binary form must reproduce the above copyright notice, 42 *
18 * this list of conditions and the following disclaimer in the documentation 43 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 * and/or other materials provided with the distribution. 44 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 * 3. Neither the name of STMicroelectronics nor the names of its contributors 45 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 * may be used to endorse or promote products derived from this software 46 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22 * without specific prior written permission. 47 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * 48 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 49 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 50 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 51 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 52 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 53 *
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 54 ******************************************************************************
30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 55 */
31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 56
32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 *
35 ******************************************************************************
36 */
37
38 /* Define to prevent recursive inclusion -------------------------------------*/ 57 /* Define to prevent recursive inclusion -------------------------------------*/
39 #ifndef BASE_BOOTLOADER_H 58 #ifndef BASE_BOOTLOADER_H
40 #define BASE_BOOTLOADER_H 59 #define BASE_BOOTLOADER_H
41 60
42 /* Includes ------------------------------------------------------------------*/ 61 /* Includes ------------------------------------------------------------------*/
57 #define BACKGRD_LAYER 0 76 #define BACKGRD_LAYER 0
58 77
59 #define SURFMODE 1 78 #define SURFMODE 1
60 #define DIVEMODE 2 79 #define DIVEMODE 2
61 80
62 typedef enum 81 typedef enum
63 { 82 {
64 ST_Boot = 0, 83 ST_Boot = 0,
65 ST_Surface, 84 ST_Surface,
66 ST_Dive, 85 ST_Dive,
67 ST_Menu, 86 ST_Menu,
68 ST_END 87 ST_END
69 } SState; 88 } SState;
70 89
71 typedef enum 90 typedef enum
72 { 91 {
73 ACTION_IDLE_TICK = 0, 92 ACTION_IDLE_TICK = 0,
74 ACTION_IDLE_SECOND, 93 ACTION_IDLE_SECOND,
75 ACTION_MODE_CHANGE, 94 ACTION_MODE_CHANGE,
76 ACTION_TIMEOUT, 95 ACTION_TIMEOUT,
77 ACTION_BUTTON_CUSTOM, 96 ACTION_BUTTON_CUSTOM,
78 ACTION_BUTTON_BACK, 97 ACTION_BUTTON_BACK,
100 void set_globalState_Base(void); 119 void set_globalState_Base(void);
101 120
102 void set_returnFromComm(void); 121 void set_returnFromComm(void);
103 122
104 #endif /* BASE_BOOTLOADER_H */ 123 #endif /* BASE_BOOTLOADER_H */
105
106 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/