2023-06-30 10:12:55 +00:00
|
|
|
#ifndef LAYOUT_COMMON_H
|
|
|
|
#define LAYOUT_COMMON_H
|
|
|
|
|
2023-11-01 12:40:50 +00:00
|
|
|
#include "flash_area.h"
|
2023-06-30 10:12:55 +00:00
|
|
|
|
|
|
|
// 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
|
2024-08-27 10:36:35 +00:00
|
|
|
#define FLASH_OTP_BLOCK_FIRMWARE_VERSION 5
|
2023-06-30 10:12:55 +00:00
|
|
|
|
|
|
|
#define STORAGE_AREAS_COUNT (2)
|
|
|
|
|
|
|
|
extern const flash_area_t STORAGE_AREAS[STORAGE_AREAS_COUNT];
|
|
|
|
extern const flash_area_t BOARDLOADER_AREA;
|
2023-07-20 11:20:50 +00:00
|
|
|
extern const flash_area_t SECRET_AREA;
|
2023-06-28 08:51:30 +00:00
|
|
|
extern const flash_area_t BHK_AREA;
|
2023-08-11 15:57:32 +00:00
|
|
|
extern const flash_area_t TRANSLATIONS_AREA;
|
2023-06-30 10:12:55 +00:00
|
|
|
extern const flash_area_t BOOTLOADER_AREA;
|
|
|
|
extern const flash_area_t FIRMWARE_AREA;
|
|
|
|
extern const flash_area_t WIPE_AREA;
|
|
|
|
extern const flash_area_t ALL_WIPE_AREA;
|
|
|
|
|
|
|
|
#endif
|