forked from mirrors/qmk_userspace
(develop)AP2: Enable support for WL EEPROM Driver (#17506)
This commit is contained in:
parent
fb05b491e7
commit
4f124574f1
6 changed files with 56 additions and 0 deletions
|
@ -47,3 +47,21 @@
|
|||
|
||||
// Obins stock firmware has something similar to this already enabled, but disabled by default in QMK
|
||||
#define PERMISSIVE_HOLD
|
||||
|
||||
// SPI configuration
|
||||
#define SPI_DRIVER SPID1
|
||||
#define SPI_SCK_PIN A0
|
||||
#define SPI_MOSI_PIN A1
|
||||
#define SPI_MISO_PIN A2
|
||||
|
||||
// Flash configuration
|
||||
#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN A3
|
||||
#define EXTERNAL_FLASH_SPI_CLOCK_DIVISOR 16
|
||||
#define EXTERNAL_FLASH_PAGE_SIZE 256
|
||||
#define EXTERNAL_FLASH_SECTOR_SIZE 4096
|
||||
#define EXTERNAL_FLASH_BLOCK_SIZE 4096
|
||||
#define EXTERNAL_FLASH_SIZE (256 * 1024) // 2M-bit flash size
|
||||
|
||||
// Wear-leveling driver configuration
|
||||
#define WEAR_LEVELING_LOGICAL_SIZE 1024
|
||||
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue