mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-23 00:47:02 +06:00
NK65 eeprom compatibility with 128KB and 256KB (#10804)
* NK65 define hack for 128kb 256kb versions of F303 * Updated to chibios define
This commit is contained in:
parent
e041ec1655
commit
4b839db384
|
@ -144,3 +144,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
// VIA lighting is handled by the keyboard-level code
|
// VIA lighting is handled by the keyboard-level code
|
||||||
#define VIA_CUSTOM_LIGHTING_ENABLE
|
#define VIA_CUSTOM_LIGHTING_ENABLE
|
||||||
|
|
||||||
|
/* Custom EEPROM start addressing. This is to support
|
||||||
|
* both 128kb and 256kb versions of F303.
|
||||||
|
* Register 0x1FFFF7CC holds the size of the flash memory.
|
||||||
|
*/
|
||||||
|
#define EEPROM_START_ADDRESS
|
||||||
|
#define FEE_MCU_FLASH_SIZE \
|
||||||
|
({ \
|
||||||
|
uint16_t (*flash_size) = (uint16_t*)FLASHSIZE_BASE; \
|
||||||
|
*flash_size; \
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user