mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-13 17:05:42 -04:00
Add second pre-loaded app slot in flash
This commit is contained in:
parent
6ad32f7317
commit
970668a47b
6 changed files with 73 additions and 35 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue