1
0
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:
Pavol Rusnak 2018-10-02 21:19:36 +02:00
parent 9beb6146e4
commit ace3574769
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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