Skip to content
Permalink
Browse files

drivers: flash: covering more flash page with stats sections

Extended the maximum possible number of sections that track statistics
for each flash page.

Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
  • Loading branch information...
kapi-no authored and nashif committed Apr 25, 2019
1 parent c6d3190 commit 78a39b80aad2b4b047f14b5046ccd32f86a9ae4e
Showing with 1 addition and 1 deletion.
  1. +1 −1 drivers/flash/flash_simulator.c
@@ -28,7 +28,7 @@
#define FLASH_SIZE (FLASH_SIMULATOR_FLASH_SIZE * FLASH_SIMULATOR_ERASE_UNIT)

/* maximum number of pages that can be tracked by the stats module */
#define STATS_PAGE_COUNT_THRESHOLD 40
#define STATS_PAGE_COUNT_THRESHOLD 256

#define STATS_SECT_EC(N, _) STATS_SECT_ENTRY32(erase_cycles_unit##N)
#define STATS_NAME_EC(N, _) STATS_NAME(flash_sim_stats, erase_cycles_unit##N)

0 comments on commit 78a39b8

Please sign in to comment.
You can’t perform that action at this time.