mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-15 19:08:07 +00:00
embed/extmod/modtrezorconfig: update for T1
This commit is contained in:
parent
9beb6146e4
commit
ace3574769
@ -24,8 +24,12 @@
|
||||
#include "common.h"
|
||||
#include "flash.h"
|
||||
|
||||
#ifndef NORCOW_SECTORS
|
||||
#define NORCOW_SECTORS {FLASH_SECTOR_STORAGE_1, FLASH_SECTOR_STORAGE_2}
|
||||
#if TREZOR_MODEL == T
|
||||
#define NORCOW_SECTORS {FLASH_SECTOR_STORAGE_1, FLASH_SECTOR_STORAGE_2}
|
||||
#elif TREZOR_MODEL == 1
|
||||
#define NORCOW_SECTORS {2, 3}
|
||||
#else
|
||||
#error Unknown TREZOR Model
|
||||
#endif
|
||||
|
||||
// NRCW = 4e524357
|
||||
|
@ -28,7 +28,13 @@
|
||||
*/
|
||||
|
||||
#define NORCOW_SECTOR_COUNT 2
|
||||
#if TREZOR_MODEL == T
|
||||
#define NORCOW_SECTOR_SIZE (64*1024)
|
||||
#elif TREZOR_MODEL == 1
|
||||
#define NORCOW_SECTOR_SIZE (16*1024)
|
||||
#else
|
||||
#error Unknown TREZOR Model
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Initialize storage
|
||||
|
Loading…
Reference in New Issue
Block a user