1
0
Fork 0

Migrate WEAR_LEVELING_*_SIZE to info.json (#22010)

This commit is contained in:
Joel Challis 2023-09-14 00:13:19 +01:00 committed by GitHub
parent 36b4e290c8
commit 00feff656f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
58 changed files with 89 additions and 120 deletions

View file

@ -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
*/

View file

@ -24,6 +24,11 @@
"pid": "0x426E",
"device_version": "1.0.0"
},
"eeprom": {
"wear_leveling": {
"backing_size": 4096
}
},
"ws2812": {
"pin": "B15"
},

View file

@ -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

View file

@ -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.

View file

@ -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"

View file

@ -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)