Update README
[fw/stlink] / include / stlink / flash_loader.h
1 /*
2  * File:   stlink.h
3  *
4  * This should contain all the common top level stlink interfaces, regardless
5  * of how the backend does the work....
6  */
7 #ifndef STLINK_FLASH_LOADER_H_
8 #define STLINK_FLASH_LOADER_H_
9
10 #include <stdint.h>
11 #include <stddef.h>
12
13 #include "stlink.h"
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 int stlink_flash_loader_init(stlink_t *sl, flash_loader_t* fl);
20 int stlink_flash_loader_write_to_sram(stlink_t *sl, stm32_addr_t* addr, size_t* size);
21 int stlink_flash_loader_run(stlink_t *sl, flash_loader_t* fl, stm32_addr_t target, const uint8_t* buf, size_t size);
22
23 #ifdef __cplusplus
24 }
25 #endif
26
27 #endif /* STLINK_FLASH_LOADER_H_ */