annotate BootLoader/Inc/base_bootloader.h @ 9:fb13e2081b7c

FIX recover jeopardized fonts & images structure
author JeanDo
date Mon, 18 Dec 2017 17:08:23 +0100
parents e65d01b6a17e
children 97eafbcb81a9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
1 /**
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
2 ******************************************************************************
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
3 * @file LTDC/LTDC_Display_2Layers/Inc/main.h
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
4 * @author MCD Application Team
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
5 * @version V1.0.1
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
6 * @date 26-February-2014
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
7 * @brief Header for main.c module
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
8 ******************************************************************************
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
9 * @attention
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
10 *
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
12 *
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
13 * Redistribution and use in source and binary forms, with or without modification,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
14 * are permitted provided that the following conditions are met:
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
15 * 1. Redistributions of source code must retain the above copyright notice,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
16 * this list of conditions and the following disclaimer.
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
17 * 2. Redistributions in binary form must reproduce the above copyright notice,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
18 * this list of conditions and the following disclaimer in the documentation
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
19 * and/or other materials provided with the distribution.
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
21 * may be used to endorse or promote products derived from this software
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
22 * without specific prior written permission.
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
23 *
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
34 *
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
35 ******************************************************************************
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
36 */
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
37
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
38 /* Define to prevent recursive inclusion -------------------------------------*/
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
39 #ifndef BASE_BOOTLOADER_H
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
40 #define BASE_BOOTLOADER_H
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
41
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
42 /* Includes ------------------------------------------------------------------*/
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
43 #include "stm32f4xx_hal.h"
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
44 #include "tStructure.h"
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
45 #include "settings.h"
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
46 /* Exported types ------------------------------------------------------------*/
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
47 /* Exported constants --------------------------------------------------------*/
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
48
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
49 /* Exported macro ------------------------------------------------------------*/
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
50
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
51 #define TOP_LAYER 1
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
52 #define BACKGRD_LAYER 0
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
53
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
54 #define SURFMODE 1
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
55 #define DIVEMODE 2
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
56
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
57 typedef enum
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
58 {
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
59 ST_Boot = 0,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
60 ST_Surface,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
61 ST_Dive,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
62 ST_Menu,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
63 ST_END
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
64 } SState;
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
65
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
66 typedef enum
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
67 {
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
68 ACTION_IDLE_TICK = 0,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
69 ACTION_IDLE_SECOND,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
70 ACTION_MODE_CHANGE,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
71 ACTION_TIMEOUT,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
72 ACTION_BUTTON_CUSTOM,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
73 ACTION_BUTTON_BACK,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
74 ACTION_BUTTON_NEXT,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
75 ACTION_BUTTON_ENTER,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
76 ACTION_BUTTON_ENTER_FINAL,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
77 ACTION_END
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
78 } SAction;
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
79
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
80 /* Exported macro ------------------------------------------------------------*/
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
81 /* Exported functions ------------------------------------------------------- */
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
82
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
83 uint32_t get_globalState(void);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
84 void set_globalState(uint32_t newID);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
85 void get_globalStateList(SStateList *output);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
86 void set_globalState_Menu_Page(uint8_t page);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
87 void set_globalState_Menu_Line(uint8_t line);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
88 void get_idSpecificStateList(uint32_t id, SStateList *output);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
89 void delayMicros(uint32_t micros);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
90 void get_RTC_DateTime(RTC_DateTypeDef * sdatestructureget, RTC_TimeTypeDef * stimestructureget);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
91 void set_RTC_DateTime(RTC_DateTypeDef * sdatestructure, RTC_TimeTypeDef * stimestructure);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
92 uint8_t get_globalMode(void);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
93 void set_globalMode(uint8_t newMode);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
94 void set_globalState_Log_Page(uint8_t pageIsLine);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
95 void set_globalState_Base(void);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
96
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
97 void set_returnFromComm(void);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
98
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
99 #endif /* BASE_BOOTLOADER_H */
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
100
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
101 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/