mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-07-23 07:01:03 -04:00
22 lines
426 B
C
22 lines
426 B
C
// Copyright (C) 2025 - Tillitis AB
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
#ifndef TKEY_RESETINFO_H
|
|
#define TKEY_RESETINFO_H
|
|
|
|
#include <stdint.h>
|
|
|
|
enum reset_type_num {
|
|
UNKNOWN = 0,
|
|
LOAD_APP_FROM_HOST = 1,
|
|
LOAD_APP_FROM_FLASH = 2,
|
|
LOAD_APP_FROM_HOST_WITH_DIGEST = 3,
|
|
LOAD_APP_FROM_FLASH_WITH_DIGEST = 4,
|
|
};
|
|
|
|
struct reset {
|
|
uint32_t type; // Reset type
|
|
uint8_t app_digest[32]; // Program digest
|
|
};
|
|
|
|
#endif
|