Home
last modified time | relevance | path

Searched refs:state_copy (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-3.6.0/components/wear_levelling/
DWL_Flash.cpp131 wl_state_t *state_copy = &sa_copy; in init() local
132 result = this->flash_drv->read(this->addr_state2, state_copy, sizeof(wl_state_t)); in init()
138 uint32_t crc2 = crc32::crc32_le(WL_CFG_CRC_CONST, (uint8_t *)state_copy, check_size); in init()
150 …, version=%i, read_version=%i", __func__, crc1, crc2, this->state.crc, state_copy->crc, this->cfg.… in init()
151 if ((crc1 == this->state.crc) && (crc2 == state_copy->crc)) { in init()
180 …} else if ((crc1 != this->state.crc) && (crc2 != state_copy->crc)) { // This is just new flash or … in init()
213 result = this->flash_drv->write(this->addr_state1, state_copy, sizeof(wl_state_t)); in init()
334 wl_state_t *state_copy = &sa_copy; in updateV1_V2() local
335 result = this->flash_drv->read(this->addr_state2, state_copy, sizeof(wl_state_t)); in updateV1_V2()
337 uint32_t crc2 = crc32::crc32_le(WL_CFG_CRC_CONST, (uint8_t *)state_copy, check_size); in updateV1_V2()
[all …]