diff --git a/demos/stm32f405rg_spi_flash/applications/fal_cfg.h b/demos/stm32f405rg_spi_flash/applications/fal_cfg.h index 43abd10..6e9e9e2 100644 --- a/demos/stm32f405rg_spi_flash/applications/fal_cfg.h +++ b/demos/stm32f405rg_spi_flash/applications/fal_cfg.h @@ -25,8 +25,8 @@ extern struct fal_flash_dev nor_flash0; /* partition table */ #define FAL_PART_TABLE \ { \ - {FAL_PART_MAGIC_WROD, "fdb_tsdb1", "norflash0", 0, 1024*1024, 0}, \ - {FAL_PART_MAGIC_WROD, "fdb_kvdb1", "norflash0", 1024*1024, 1024*1024, 0}, \ + {FAL_PART_MAGIC_WORD, "fdb_tsdb1", "norflash0", 0, 1024*1024, 0}, \ + {FAL_PART_MAGIC_WORD, "fdb_kvdb1", "norflash0", 1024*1024, 1024*1024, 0}, \ } #endif /* FAL_PART_HAS_TABLE_CFG */ diff --git a/port/fal/src/fal_partition.c b/port/fal/src/fal_partition.c index 52de8bc..a24e631 100644 --- a/port/fal/src/fal_partition.c +++ b/port/fal/src/fal_partition.c @@ -16,7 +16,6 @@ #define FAL_PART_MAGIC_WORD 0x45503130 #define FAL_PART_MAGIC_WORD_H 0x4550L #define FAL_PART_MAGIC_WORD_L 0x3130L -#define FAL_PART_MAGIC_WROD 0x45503130 struct part_flash_info {