mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-25 12:04:47 +00:00
Add nucleo-h563zi/minimal-lfs
This commit is contained in:
1 parent
c8b3659260
commit
d7683ddb60
19 files changed
+1154
-6
No files matched your search
+5
-1
@@ -1,7 +1,8 @@
|
||||
#include "arch.h"
|
||||
#include "config.h"
|
||||
#include "ota.h"
|
||||
|
||||
#if MG_OTA != MG_OTA_NONE && MG_OTA != MG_OTA_CUSTOM
|
||||
#if (MG_OTA != MG_OTA_NONE && MG_OTA != MG_OTA_CUSTOM) || MG_ENABLE_LFS
|
||||
|
||||
struct mg_flash {
|
||||
void *start; // Address at which flash starts
|
||||
@@ -12,6 +13,9 @@ struct mg_flash {
|
||||
bool (*swap_fn)(void); // Swap partitions
|
||||
};
|
||||
|
||||
extern struct mg_flash *mg_flash;
|
||||
bool mg_lfs_init(size_t size);
|
||||
|
||||
bool mg_ota_flash_begin(size_t new_firmware_size, struct mg_flash *flash);
|
||||
bool mg_ota_flash_write(const void *buf, size_t len, struct mg_flash *flash);
|
||||
bool mg_ota_flash_end(struct mg_flash *flash);
|
||||
|
||||
Reference in new issue
Block a user