Use hex-constants to avoid implicit int-casts.

This commit is contained in:
Ralf Corsepius
2009-10-22 05:43:06 +00:00
parent db96a76b29
commit 05c599df30
2 changed files with 8 additions and 8 deletions

View File

@@ -33,8 +33,8 @@ static spi_memdrv_t spi_flash_m25p40_rw_drv_t = {
erase_before_program: true,
empty_state: 0xff,
page_size: 256, /* programming page size in byte */
sector_size: 64*1024, /* erase sector size in byte */
mem_size: 512*1024 /* total capacity in byte */
sector_size: 0x10000 /* 64*1024 */, /* erase sector size in byte */
mem_size: 0x80000 /* 512*1024 */ /* total capacity in byte */
}
};
@@ -51,8 +51,8 @@ static spi_memdrv_t spi_flash_m25p40_ro_drv_t = {
erase_before_program: true,
empty_state: 0xff,
page_size: 256, /* programming page size in byte */
sector_size: 64*1024, /* erase sector size in byte */
mem_size: 512*1024 /* total capacity in byte */
sector_size: 0x10000 /* 64*1024 */, /* erase sector size in byte */
mem_size: 0x80000 /* 512*1024 */ /* total capacity in byte */
}
};

View File

@@ -32,9 +32,9 @@ static spi_memdrv_t spi_fram_fm25l256_rw_drv_t = {
baudrate: 2000000,
erase_before_program: false,
empty_state: 0xff,
page_size: 32*1024, /* programming page size in byte */
page_size: 0x8000 /* 32*1024 */, /* programming page size in byte */
sector_size: 1, /* erase sector size in byte */
mem_size: 32*1024 /* total capacity in byte */
mem_size: 0x8000 /* 32*1024 */ /* total capacity in byte */
}
};
@@ -50,9 +50,9 @@ static spi_memdrv_t spi_fram_fm25l256_ro_drv_t = {
baudrate: 2000000,
erase_before_program: false,
empty_state: 0xff,
page_size: 32*1024, /* programming page size in byte */
page_size: 0x8000 /* 32*1024 */, /* programming page size in byte */
sector_size: 1, /* erase sector size in byte */
mem_size: 32*1024 /* total capacity in byte */
mem_size: 0x8000 /* 32*1024 */ /* total capacity in byte */
}
};