mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-04-27 18:36:23 -04:00

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>
21 lines
617 B
C
21 lines
617 B
C
// 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
|