mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-14 17:35:41 -04:00
fw: Add second pre-loaded app slot in flash
This commit is contained in:
parent
1c4d11f49e
commit
ac5c2aef86
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