1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 14:58:09 +00:00

unix/flash: default FLASH_FILE

This commit is contained in:
Jan Pochyla 2017-10-18 18:31:19 +02:00
parent c78babdc12
commit 12708b4987

View File

@ -10,6 +10,10 @@
#include "../trezorhal/flash.h" #include "../trezorhal/flash.h"
#ifndef FLASH_FILE
#define FLASH_FILE "/var/tmp/trezor.config"
#endif
#define SECTOR_COUNT 24 #define SECTOR_COUNT 24
static const uint32_t sector_table[SECTOR_COUNT + 1] = { static const uint32_t sector_table[SECTOR_COUNT + 1] = {
@ -40,8 +44,6 @@ static const uint32_t sector_table[SECTOR_COUNT + 1] = {
[24] = 0x08200000, // last element - not a valid sector [24] = 0x08200000, // last element - not a valid sector
}; };
#define FLASH_FILE "tmp"
static uint8_t flash_buffer[0x200000]; static uint8_t flash_buffer[0x200000];
static void flash_sync(void) static void flash_sync(void)