Skip to content

Commit 5fe03af

Browse files
author
Marcus Chang
committed
Increase flash program granularity on Realtek RTL8195AM
The Page size has been set to 1 byte instead of the previous 256. Although 256 is the physical page size, the driver supports writing 1 byte at a time.
1 parent 0d1dc83 commit 5fe03af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/flash_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ uint32_t flash_get_sector_size(const flash_t *obj, uint32_t address)
5656

5757
uint32_t flash_get_page_size(const flash_t *obj)
5858
{
59-
return FLASH_PAGE_SIZE;
59+
return 1;
6060
}
6161

6262
uint32_t flash_get_start_address(const flash_t *obj)

0 commit comments

Comments
 (0)