staticint32_tPIOS_Flash_Internal_StartTransaction(uintptr_tflash_id){structpios_internal_flash_dev*flash_dev= (structpios_internal_flash_dev*)flash_id;if(!PIOS_Flash_Internal_Validate(flash_dev))return-1;#ifdefined(PIOS_INCLUDE_FREERTOS)if(xSemaphoreTake(flash_dev->transaction_lock, portMAX_...
HAL_StatusTypeDef status = HAL_OK;/* Unlock the Flash to enable the flash control register access ***/HAL_FLASH_Unlock();/* Get the sector where start the user flash area */NbrOfPages = (USER_FLASH_END_ADDRESS - start)/FLASH_PAGE_SIZE; pEraseInit.TypeErase = FLASH_TYPEERASE_PAGES; ...