comparison Small_CPU/Inc/RTE_FlashAccess.h @ 38:5f11787b4f42

include in ostc4 repository
author heinrichsweikamp
date Sat, 28 Apr 2018 11:52:34 +0200
parents
children 91a8f9893e68
comparison
equal deleted inserted replaced
37:ccc45c0e1ea2 38:5f11787b4f42
1 /**
2 ******************************************************************************
3 * @file RTE_FLashAccess.h based on BonexFLashAccess.h based on firmwareEraseProgram.h
4 * @author heinrichs weikamp gmbh
5 * @version V0.0.1
6 * @date 20-July-2016
7 * @version V0.0.1
8 * @since 20-July-2016
9 * @brief erase and program the STM32F4xx internal FLASH memory for compasss calib etc.
10 *
11 @verbatim
12 ==============================================================================
13 ##### How to use #####
14 ==============================================================================
15 @endverbatim
16 ******************************************************************************
17 * @attention
18 *
19 * <h2><center>&copy; COPYRIGHT(c) 2016 heinrichs weikamp</center></h2>
20 *
21 ******************************************************************************
22 */
23
24 /* Define to prevent recursive inclusion -------------------------------------*/
25 #ifndef RTE_FLASH_ACCESS_H
26 #define RTE_FLASH_ACCESS_H
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32 /* Includes ------------------------------------------------------------------*/
33 #include "stm32f4xx_hal.h"
34
35 /* Exported variables --------------------------------------------------------*/
36 /* Exported types ------------------------------------------------------------*/
37 enum
38 {
39 BFA_OK = 0, //= HAL_OK
40 BFA_ERROR = (uint8_t)HAL_ERROR,
41 BFA_BUSY = (uint8_t)HAL_BUSY,
42 BFA_TIMEOUT = (uint8_t)HAL_TIMEOUT,
43 BFA_EMPTY,
44 };
45
46 /* Exported functions --------------------------------------------------------*/
47
48 uint8_t BFA_readLastDataBlock(uint32_t *dataArray4);
49 uint8_t BFA_writeDataBlock(const uint32_t *dataArray4);
50
51 #ifdef __cplusplus
52 }
53 #endif
54
55 #endif /* RTE_FLASH_ACCESS_H */
56
57 /************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/