TLx493D 3D Hall Sensor Generic Library  1.3
Generic library for the TLx493D 3D Hall sensor family
flash_storage.h
Go to the documentation of this file.
1 /*
2 *****************************************************************************
3 * Copyright (C) 2019 Infineon Technologies AG. All rights reserved.
4 *
5 * Infineon Technologies AG (INFINEON) is supplying this file for use
6 * exclusively with Infineon's products. This file can be freely
7 * distributed within development tools and software supporting such microcontroller
8 * products.
9 *
10 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
11 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
13 * INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR DIRECT, INDIRECT, INCIDENTAL,
14 * ASPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
15 *
16 ******************************************************************************
17 */
18 
22 #ifndef SRC_SHIFTER_FLASH_STORAGE_H_
23 #define SRC_SHIFTER_FLASH_STORAGE_H_
24 
25 #include <stdint.h>
26 #include <stddef.h>
27 
28 #define BASE_ADDR_SECTOR(x) ((uint32_t*)(0x10000000ull + 0x1000ull * (x)))
29 
30 
32 void FLASH_erase_stored_data(void);
33 
35 void FLASH_store(uint32_t *to_store, uint32_t size);
36 
38 void FLASH_load(uint32_t *to_load, uint32_t size);
39 
40 #endif /* SRC_SHIFTER_FLASH_STORAGE_H_ */
void FLASH_load(uint32_t *to_load, uint32_t size)
Load data from flash.
Definition: flash_storage.c:58
void FLASH_store(uint32_t *to_store, uint32_t size)
Store data to flash.
Definition: flash_storage.c:37
void FLASH_erase_stored_data(void)
Erase one flash page at storage address.
Definition: flash_storage.c:25