Migrate WEAR_LEVELING_*_SIZE to info.json (#22010)
This commit is contained in:
parent
36b4e290c8
commit
00feff656f
58 changed files with 89 additions and 120 deletions
|
@ -3,14 +3,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
* Wear Leveling EEPROM Emulation
|
||||
*/
|
||||
|
||||
#define WEAR_LEVELING_LOGICAL_SIZE 2048 // Number of bytes "exposed" to the rest of QMK and denotes the size of the usable EEPROM.
|
||||
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2) // Number of bytes used by the wear-leveling algorithm for its underlying storage, and needs to be a multiple of the logical size.
|
||||
|
||||
|
||||
/*
|
||||
* RGB Matrix
|
||||
*/
|
||||
|
|
|
@ -24,6 +24,11 @@
|
|||
"pid": "0x426E",
|
||||
"device_version": "1.0.0"
|
||||
},
|
||||
"eeprom": {
|
||||
"wear_leveling": {
|
||||
"backing_size": 4096
|
||||
}
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "B15"
|
||||
},
|
||||
|
|
|
@ -1,5 +1 @@
|
|||
# Copyright 2022 Binepad (@binpad)
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
EPROM_DRIVER = wear_leveling
|
||||
WEAR_LEVELING_DRIVER = embedded_flash
|
||||
# This file intentionally left blank
|
|
@ -1,12 +0,0 @@
|
|||
// Copyright 2023 Binepad (@binepad)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
/*
|
||||
* Wear Leveling EEPROM Emulation
|
||||
*/
|
||||
|
||||
#define WEAR_LEVELING_LOGICAL_SIZE 2048 // Number of bytes "exposed" to the rest of QMK and denotes the size of the usable EEPROM.
|
||||
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2) // Number of bytes used by the wear-leveling algorithm for its underlying storage, and needs to be a multiple of the logical size.
|
|
@ -6,6 +6,11 @@
|
|||
"cols": ["A1", "A2", "A6"],
|
||||
"rows": ["B6", "B7", "B2"]
|
||||
},
|
||||
"eeprom": {
|
||||
"wear_leveling": {
|
||||
"backing_size": 4096
|
||||
}
|
||||
},
|
||||
"processor": "STM32F103",
|
||||
"usb": {
|
||||
"device_version": "2.0.0"
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
// Copyright 2022 BINEPAD (@binepad)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#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