Home
last modified time | relevance | path

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

/AliOS-Things-master/hardware/chip/rtl872xd/hal/
A Dota.c353 int param_part = HAL_PARTITION_PARAMETER_1; in rtl8721d_ota_finish_cb() local
358 hal_flash_erase(param_part, offset, sizeof(ota_boot_param_t)); in rtl8721d_ota_finish_cb()
360 … hal_flash_write(param_part, (uint32_t*)&offset, param, sizeof(ota_boot_param_t)); in rtl8721d_ota_finish_cb()
363 … hal_flash_read(param_part, (uint32_t*)&offset, &param_r, sizeof(ota_boot_param_t)); in rtl8721d_ota_finish_cb()
416 int param_part = HAL_PARTITION_PARAMETER_1; in rtl8721d_ota_rollback() local
419 hal_flash_read(param_part, (uint32_t*)&offset, &param_w, sizeof(ota_boot_param_t)); in rtl8721d_ota_rollback()
424 hal_flash_erase(param_part, offset, sizeof(ota_boot_param_t)); in rtl8721d_ota_rollback()
426 hal_flash_write(param_part, (uint32_t*)&offset, &param_w, sizeof(ota_boot_param_t)); in rtl8721d_ota_rollback()
429 hal_flash_read(param_part, (uint32_t*)&offset, &param_r, sizeof(ota_boot_param_t)); in rtl8721d_ota_rollback()
/AliOS-Things-master/components/ota/hal/
A Dota_hal_param.c29 int param_part = HAL_PARTITION_PARAMETER_1; in ota_read_parameter() local
36 ret = aos_hal_flash_read(param_part, &offset, ota_param, sizeof(ota_boot_param_t)); in ota_read_parameter()

Completed in 8 milliseconds