mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 11:30:30 +08:00
Workaround for G431 eeprom emulation (#23002)
This commit is contained in:
parent
16800ea8a5
commit
93f20e012e
|
@ -0,0 +1,8 @@
|
||||||
|
// Copyright 2024 QMK
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
// TODO: Remove when upstream no longer requires patching
|
||||||
|
#include <stm32_registry.h>
|
||||||
|
|
||||||
|
#include_next <hal_lld.h>
|
|
@ -0,0 +1,14 @@
|
||||||
|
// Copyright 2024 QMK
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
// TODO: Remove when STM32_FLASH_SECTORS_PER_BANK fixed upstream
|
||||||
|
#ifndef STM32_FLASH_SECTORS_PER_BANK
|
||||||
|
# define STM32_FLASH_SECTORS_PER_BANK 64
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include_next <stm32_registry.h>
|
||||||
|
|
||||||
|
// TODO: Remove when STM32_FLASH_NUMBER_OF_BANKS fixed upstream
|
||||||
|
#undef STM32_FLASH_NUMBER_OF_BANKS
|
||||||
|
#define STM32_FLASH_NUMBER_OF_BANKS 1
|
Loading…
Reference in a new issue