Add second pre-loaded app slot in flash

This commit is contained in:
Mikael Ågren 2025-03-18 13:18:33 +01:00
parent 6ad32f7317
commit 970668a47b
No known key found for this signature in database
GPG key ID: E02DA3D397792C46
6 changed files with 73 additions and 35 deletions

View file

@ -9,12 +9,13 @@
#include <stddef.h>
#include <stdint.h>
bool preload_check_valid_app(struct partition_table *part_table);
int preload_load(struct partition_table *part_table);
bool preload_check_valid_app(struct partition_table *part_table,
uint8_t slot);
int preload_load(struct partition_table *part_table, uint8_t from_slot);
int preload_store(struct partition_table *part_table, uint32_t offset,
uint8_t *data, size_t size);
uint8_t *data, size_t size, uint8_t to_slot);
int preload_store_finalize(struct partition_table *part_table, bool use_uss,
uint8_t *uss, size_t app_size);
int preload_delete(struct partition_table *part_table);
uint8_t *uss, size_t app_size, uint8_t to_slot);
int preload_delete(struct partition_table *part_table, uint8_t slot);
#endif