diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-07-04 09:26:19 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-07-04 09:26:19 +0000 |
commit | 542d350ea36355656946094aabdfa70fbece473e (patch) | |
tree | d1cd1c44bdbf20feee44b78e3730f32116a9ff96 /c/src/lib/libbsp/arm/lpc32xx/include/nand-mlc.h | |
parent | 2011-07-04 Chris Johns <chrisj@rtems.org> (diff) | |
download | rtems-542d350ea36355656946094aabdfa70fbece473e.tar.bz2 |
2011-07-04 Sebastian Huber <sebastian.huber@embedded-brains.de>
* misc/nand-mlc-erase-block-safe.c, misc/nand-mlc-write-blocks.c,
include/nand-mlc.h: Fixed write blocks.
Diffstat (limited to 'c/src/lib/libbsp/arm/lpc32xx/include/nand-mlc.h')
-rw-r--r-- | c/src/lib/libbsp/arm/lpc32xx/include/nand-mlc.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/arm/lpc32xx/include/nand-mlc.h b/c/src/lib/libbsp/arm/lpc32xx/include/nand-mlc.h index 29ad8d04b4..f4512aba3b 100644 --- a/c/src/lib/libbsp/arm/lpc32xx/include/nand-mlc.h +++ b/c/src/lib/libbsp/arm/lpc32xx/include/nand-mlc.h @@ -286,15 +286,25 @@ rtems_status_code lpc32xx_mlc_erase_block_safe(uint32_t block_index); * @brief Erases the block with index @a block_index. * * Variant of lpc32xx_mlc_erase_block_safe() with more parameters for - * efficiency reasons. + * efficiency reasons. The @a page_begin must be the index of the first page + * of the block. The @a page_end must be the page index of the last page of + * the block plus one. */ rtems_status_code lpc32xx_mlc_erase_block_safe_3( uint32_t block_index, - uint32_t first_page_of_block, - uint32_t pages_per_block + uint32_t page_begin, + uint32_t page_end ); /** + * @brief Writes zero values to the pages specified by @a page_begin and + * @a page_end. + * + * The data and spare area are cleared to zero. This marks the pages as bad. + */ +void lpc32xx_mlc_zero_pages(uint32_t page_begin, uint32_t page_end); + +/** * @brief Writes the page with index @a page_index. * * 32-bit writes will be performed. |