diff options
author | Joel Challis <git@zvecr.com> | 2024-02-03 19:09:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-03 19:09:18 +0000 |
commit | 93f20e012e9ae5c8d677c8f9e10cc4dcd938a2f8 (patch) | |
tree | 87979dbff9f60e0ed5ac6f4dce08e77429ad4b8e /platforms/chibios/boards/GENERIC_STM32_G431XB/configs/stm32_registry.h | |
parent | 16800ea8a54dbb3d3b2904db7ced60d8ff69f068 (diff) |
Workaround for G431 eeprom emulation (#23002)
Diffstat (limited to 'platforms/chibios/boards/GENERIC_STM32_G431XB/configs/stm32_registry.h')
-rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_G431XB/configs/stm32_registry.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/platforms/chibios/boards/GENERIC_STM32_G431XB/configs/stm32_registry.h b/platforms/chibios/boards/GENERIC_STM32_G431XB/configs/stm32_registry.h new file mode 100644 index 0000000000..766df5a78e --- /dev/null +++ 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 |