mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-26 17:38:39 +00:00
7f3cff04f1
[no changelog]
26 lines
733 B
C
26 lines
733 B
C
#ifndef LAYOUT_COMMON_H
|
|
#define LAYOUT_COMMON_H
|
|
|
|
#include "flash_area.h"
|
|
|
|
// OTP blocks allocation
|
|
#define FLASH_OTP_BLOCK_BATCH 0
|
|
#define FLASH_OTP_BLOCK_BOOTLOADER_VERSION 1
|
|
#define FLASH_OTP_BLOCK_VENDOR_HEADER_LOCK 2
|
|
#define FLASH_OTP_BLOCK_RANDOMNESS 3
|
|
#define FLASH_OTP_BLOCK_DEVICE_VARIANT 4
|
|
#define FLASH_OTP_BLOCK_FIRMWARE_VERSION 5
|
|
|
|
#define STORAGE_AREAS_COUNT (2)
|
|
|
|
extern const flash_area_t STORAGE_AREAS[STORAGE_AREAS_COUNT];
|
|
extern const flash_area_t BOARDLOADER_AREA;
|
|
extern const flash_area_t SECRET_AREA;
|
|
extern const flash_area_t BHK_AREA;
|
|
extern const flash_area_t TRANSLATIONS_AREA;
|
|
extern const flash_area_t BOOTLOADER_AREA;
|
|
extern const flash_area_t FIRMWARE_AREA;
|
|
extern const flash_area_t UNUSED_AREA;
|
|
|
|
#endif
|