mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-14 09:25:49 -04:00
Add start of pre-loaded app from flash
Based on earlier code by Daniel Jobson <jobson@tillitis.se> now integrated into the new world order. Co-authored-by: Mikael Ågren <mikael@tillitis.se> Co-authored-by: Daniel Jobson <jobson@tillitis.se>
This commit is contained in:
parent
20b008d20e
commit
f2b78be4cb
7 changed files with 352 additions and 1 deletions
20
hw/application_fpga/fw/tk1/preload_app.h
Normal file
20
hw/application_fpga/fw/tk1/preload_app.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright (C) 2024 - Tillitis AB
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
#ifndef PRELOAD_APP_H
|
||||
#define PRELOAD_APP_H
|
||||
|
||||
#include "partition_table.h"
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
bool preload_check_valid_app(struct partition_table *part_table);
|
||||
int preload_load(struct partition_table *part_table);
|
||||
int preload_store(struct partition_table *part_table, uint32_t offset,
|
||||
uint8_t *data, size_t size);
|
||||
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);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue