OpenOCD
|
Go to the source code of this file.
Functions | |
static int | countbits (uint32_t b) |
int | nand_calculate_ecc (struct nand_device *nand, const uint8_t *dat, uint8_t *ecc_code) |
int | nand_correct_data (struct nand_device *nand, u_char *dat, u_char *read_ecc, u_char *calc_ecc) |
nand_correct_data - Detect and correct a 1 bit error for 256 byte block More... | |
Variables | |
static const uint8_t | nand_ecc_precalc_table [] |
|
inlinestatic |
Definition at line 101 of file ecc.c.
Referenced by nand_correct_data().
int nand_calculate_ecc | ( | struct nand_device * | nand, |
const uint8_t * | dat, | ||
uint8_t * | ecc_code | ||
) |
Definition at line 48 of file ecc.c.
References nand_ecc_precalc_table.
Referenced by nand_fileio_read().
int nand_correct_data | ( | struct nand_device * | nand, |
u_char * | dat, | ||
u_char * | read_ecc, | ||
u_char * | calc_ecc | ||
) |
nand_correct_data - Detect and correct a 1 bit error for 256 byte block
Definition at line 113 of file ecc.c.
References countbits(), s0, s1, and s2.
Referenced by lpc32xx_read_page_slc().
|
static |
Definition at line 26 of file ecc.c.
Referenced by nand_calculate_ecc().