flash_helper.h
Go to the documentation of this file.
1 /*
2  Copyright 2012-2015 Benjamin Vedder benjamin@vedder.se
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 /*
19  * flash_helper.h
20  *
21  * Created on: 6 maj 2015
22  * Author: benjamin
23  */
24 
25 #ifndef FLASH_HELPER_H_
26 #define FLASH_HELPER_H_
27 
28 #include "conf_general.h"
29 
30 // Functions
31 uint16_t flash_helper_erase_new_app(uint32_t new_app_size);
32 uint16_t flash_helper_write_new_app_data(uint32_t offset, uint8_t *data, uint32_t len);
34 
35 #endif /* FLASH_HELPER_H_ */
void flash_helper_jump_to_bootloader(void)
Definition: flash_helper.c:141
uint16_t flash_helper_erase_new_app(uint32_t new_app_size)
Definition: flash_helper.c:87
uint16_t flash_helper_write_new_app_data(uint32_t offset, uint8_t *data, uint32_t len)
Definition: flash_helper.c:116