logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git
commit: 93f20e012e9ae5c8d677c8f9e10cc4dcd938a2f8
parent 16800ea8a54dbb3d3b2904db7ced60d8ff69f068
Author: Joel Challis <git@zvecr.com>
Date:   Sat,  3 Feb 2024 19:09:18 +0000

Workaround for G431 eeprom emulation (#23002)


Diffstat:

Aplatforms/chibios/boards/GENERIC_STM32_G431XB/configs/hal_lld.h8++++++++
Aplatforms/chibios/boards/GENERIC_STM32_G431XB/configs/stm32_registry.h14++++++++++++++
2 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/platforms/chibios/boards/GENERIC_STM32_G431XB/configs/hal_lld.h b/platforms/chibios/boards/GENERIC_STM32_G431XB/configs/hal_lld.h @@ -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> diff --git a/platforms/chibios/boards/GENERIC_STM32_G431XB/configs/stm32_registry.h b/platforms/chibios/boards/GENERIC_STM32_G431XB/configs/stm32_registry.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