APM:Libraries
flash.h
Go to the documentation of this file.
1 
2 
3 /*
4  * Copyright (C) Siddharth Bharat Purohit 2017
5  * This file is free software: you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This file is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13  * See the GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 #include "hal.h"
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 uint32_t stm32_flash_getpageaddr(uint32_t page);
24 uint32_t stm32_flash_getpagesize(uint32_t page);
25 uint32_t stm32_flash_getnumpages(void);
26 bool stm32_flash_erasepage(uint32_t page);
27 int32_t stm32_flash_write(uint32_t addr, const void *buf, uint32_t count);
28 #ifdef __cplusplus
29 }
30 #endif
bool stm32_flash_erasepage(uint32_t page)
Definition: flash.c:215
uint32_t stm32_flash_getpagesize(uint32_t page)
Definition: flash.c:180
uint32_t stm32_flash_getpageaddr(uint32_t page)
Definition: flash.c:157
int32_t stm32_flash_write(uint32_t addr, const void *buf, uint32_t count)
Definition: flash.c:259
uint32_t stm32_flash_getnumpages(void)
Definition: flash.c:188