Skip to content

Commit

Permalink
Change page count
Browse files Browse the repository at this point in the history
  • Loading branch information
Jpe230 committed Oct 12, 2022
1 parent 77f358d commit 3f4d1cb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
// The number of pages to use
#ifndef WEAR_LEVELING_SN32_EMULATION_PAGE_COUNT
# if defined(QMK_MCU_SERIES_SN32F240B)
# define WEAR_LEVELING_SN32_EMULATION_PAGE_COUNT 22
# define WEAR_LEVELING_SN32_EMULATION_PAGE_COUNT 23
# elif defined(QMK_MCU_SERIES_SN32F260)
# define WEAR_LEVELING_SN32_EMULATION_PAGE_COUNT 22
# define WEAR_LEVELING_SN32_EMULATION_PAGE_COUNT 23
# endif
#endif

// The origin of the emulated eeprom
#ifndef WEAR_LEVELING_SN32_EMULATION_BASE_PAGE_ADDRESS
# define WEAR_LEVELING_SN32_EMULATION_BASE_PAGE_ADDRESS ((uint32_t)(WEAR_LEVELING_SN32_PAGE_SIZE * WEAR_LEVELING_SN32_EMULATION_TOTAL_PAGE - ((WEAR_LEVELING_SN32_EMULATION_PAGE_COUNT + 2) * WEAR_LEVELING_SN32_PAGE_SIZE)))
# define WEAR_LEVELING_SN32_EMULATION_BASE_PAGE_ADDRESS ((uint32_t)(WEAR_LEVELING_SN32_PAGE_SIZE * WEAR_LEVELING_SN32_EMULATION_TOTAL_PAGE - ((WEAR_LEVELING_SN32_EMULATION_PAGE_COUNT + 1) * WEAR_LEVELING_SN32_PAGE_SIZE)))
#endif

// 4-byte writes
Expand Down

0 comments on commit 3f4d1cb

Please sign in to comment.