Welcome to mirror list, hosted at ThFree Co, Russian Federation.

bootloader.h « Inc « Core « STM32_bootloader - github.com/ClusterM/famicom-dumper-writer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7206cc334f84f4a5efb34485e522fb54d01decdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _BOOTLOADER_H_
#define _BOOTLOADER_H_

// Version of the PCB
#define HARDWARE_VERSION_MAJOR 3
#define HARDWARE_VERSION_MINOR 2
#define HARDWARE_VERSION_SUFFIX 0

#define HARDWARE_VERSION_ADDRESS 0x08070000 - 2048
#define MSD_ADDRESS 0x08020000
#define APP_ADDRESS 0x08040000
#define WRITE_TO_FLASH_TIME 1500

#define MSD_BLOCK_SIZE 2048
#ifndef DEBUG
#define MSD_BLOCK_COUNT 192 * 1024 / MSD_BLOCK_SIZE
#else
#define MSD_BLOCK_COUNT 128 * 1024 / MSD_BLOCK_SIZE
#endif

#define SVF_BUFFER_SIZE 2048

#endif