flashrom.h
Go to the documentation of this file.
1 /*
2  * Copyright 2014 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
26 #ifndef FLASHROM_H
27 #define FLASHROM_H
28 
29 #include <stdint.h>
30 #include <stddef.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
43 uint8_t flashrom_erase(uint8_t *addr);
44 
54 uint8_t flashrom_write(uint8_t *dst, const uint8_t *src, size_t size);
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 #endif /* FLASHROM_H */
61 
flashrom_write
uint8_t flashrom_write(uint8_t *dst, const uint8_t *src, size_t size)
Write buffer from ram to flash.
flashrom_erase
uint8_t flashrom_erase(uint8_t *addr)
Erase sector.