annotate BootLoader/Inc/base_bootloader.h @ 25:97eafbcb81a9

FIX move bootloader SFirmwareData at fixed address 0x0800A000
author jdg@air
date Wed, 03 Jan 2018 01:40:59 +0100
parents e65d01b6a17e
children ea1003f63e44
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 ------------------------------------------------------------------*/
25
97eafbcb81a9 FIX move bootloader SFirmwareData at fixed address 0x0800A000
jdg@air
parents: 5
diff changeset
43
97eafbcb81a9 FIX move bootloader SFirmwareData at fixed address 0x0800A000
jdg@air
parents: 5
diff changeset
44 #define STM32F429xx
97eafbcb81a9 FIX move bootloader SFirmwareData at fixed address 0x0800A000
jdg@air
parents: 5
diff changeset
45
5
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
46 #include "stm32f4xx_hal.h"
25
97eafbcb81a9 FIX move bootloader SFirmwareData at fixed address 0x0800A000
jdg@air
parents: 5
diff changeset
47
5
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
48 #include "tStructure.h"
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
49 #include "settings.h"
25
97eafbcb81a9 FIX move bootloader SFirmwareData at fixed address 0x0800A000
jdg@air
parents: 5
diff changeset
50
5
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
51 /* Exported types ------------------------------------------------------------*/
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
52 /* Exported constants --------------------------------------------------------*/
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
53
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
54 /* Exported macro ------------------------------------------------------------*/
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
55
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
56 #define TOP_LAYER 1
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
57 #define BACKGRD_LAYER 0
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
58
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
59 #define SURFMODE 1
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
60 #define DIVEMODE 2
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
61
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
62 typedef enum
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
63 {
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
64 ST_Boot = 0,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
65 ST_Surface,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
66 ST_Dive,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
67 ST_Menu,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
68 ST_END
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
69 } SState;
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
70
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
71 typedef enum
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
72 {
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
73 ACTION_IDLE_TICK = 0,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
74 ACTION_IDLE_SECOND,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
75 ACTION_MODE_CHANGE,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
76 ACTION_TIMEOUT,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
77 ACTION_BUTTON_CUSTOM,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
78 ACTION_BUTTON_BACK,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
79 ACTION_BUTTON_NEXT,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
80 ACTION_BUTTON_ENTER,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
81 ACTION_BUTTON_ENTER_FINAL,
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
82 ACTION_END
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
83 } SAction;
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
84
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
85 /* Exported macro ------------------------------------------------------------*/
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
86 /* Exported functions ------------------------------------------------------- */
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
87
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
88 uint32_t get_globalState(void);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
89 void set_globalState(uint32_t newID);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
90 void get_globalStateList(SStateList *output);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
91 void set_globalState_Menu_Page(uint8_t page);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
92 void set_globalState_Menu_Line(uint8_t line);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
93 void get_idSpecificStateList(uint32_t id, SStateList *output);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
94 void delayMicros(uint32_t micros);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
95 void get_RTC_DateTime(RTC_DateTypeDef * sdatestructureget, RTC_TimeTypeDef * stimestructureget);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
96 void set_RTC_DateTime(RTC_DateTypeDef * sdatestructure, RTC_TimeTypeDef * stimestructure);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
97 uint8_t get_globalMode(void);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
98 void set_globalMode(uint8_t newMode);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
99 void set_globalState_Log_Page(uint8_t pageIsLine);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
100 void set_globalState_Base(void);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
101
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
102 void set_returnFromComm(void);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
103
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
104 #endif /* BASE_BOOTLOADER_H */
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
105
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
106 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/