From d8f06c8542a727998d38274c7461224cfc427971 Mon Sep 17 00:00:00 2001 From: prife Date: Sun, 16 Feb 2014 14:30:24 +0800 Subject: [PATCH 1/2] simulator: fix compile errors in nand driver(512+16) --- bsp/simulator/drivers/nanddrv_file.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bsp/simulator/drivers/nanddrv_file.c b/bsp/simulator/drivers/nanddrv_file.c index 770751ac79..075ed7f5d8 100644 --- a/bsp/simulator/drivers/nanddrv_file.c +++ b/bsp/simulator/drivers/nanddrv_file.c @@ -4,23 +4,23 @@ #include #define NAND_SIM "nand.bin" + #if 1 #define OOB_SIZE 64 #define PAGE_DATA_SIZE 2048 -#define PAGE_SIZE (2048 + 64) #define PAGE_PER_BLOCK 64 -#define BLOCK_SIZE (PAGE_SIZE * PAGE_PER_BLOCK) +#define ECC_SIZE ((PAGE_DATA_SIZE) * 3 / 256) #define BLOCK_NUM 512 -// #define BLOCK_NUM 2048 #else #define OOB_SIZE 16 -#define PAGE_SIZE (512 + OOB_SIZE) +#define PAGE_DATA_SIZE 512 #define PAGE_PER_BLOCK 32 -#define BLOCK_SIZE (PAGE_SIZE * PAGE_PER_BLOCK) +#define ECC_SIZE ((PAGE_DATA_SIZE) * 3 / 256) #define BLOCK_NUM 512 #endif -#define ECC_SIZE ((PAGE_DATA_SIZE) * 3 / 256) +#define BLOCK_SIZE (PAGE_SIZE * PAGE_PER_BLOCK) +#define PAGE_SIZE (PAGE_DATA_SIZE + OOB_SIZE) static unsigned char block_data[BLOCK_SIZE]; static struct rt_mtd_nand_device _nanddrv_file_device; From 6cfb1098e4410134c9060a49a071a429af811a6f Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Sun, 16 Feb 2014 16:23:18 +0800 Subject: [PATCH 2/2] [ci-skip] --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 4b232a9048..228ad1cae5 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,6 @@ RT-Thread RTOS can support many architectures: * ARM Cortex-R4 * ARM Cortex-A8/A9 * ARM920T/ARM926 etc - * MIPS * x86 * PowerPC