Revise the value of return value of flash_get_page_size()

Currently the return value of flash_get_page_size() is 1 since the min size per one writing is 1 byte by Flash spec.
However, I noticed that this value causes a enormous write time When writing large data such as FW update.
So I revised this value to 8 byte by considering the writing time, memory alignment and memory hole.
pull/8072/head
TomoYamanaka 2018-09-27 18:54:28 +09:00
parent d5ef4672b1
commit cb087ed63a
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ uint32_t flash_get_sector_size(const flash_t *obj, uint32_t address)
uint32_t flash_get_page_size(const flash_t *obj)
{
return 1;
return 8;
}
uint32_t flash_get_start_address(const flash_t *obj)