diff options
| -rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_G431XB/configs/hal_lld.h | 8 | ||||
| -rw-r--r-- | platforms/chibios/boards/GENERIC_STM32_G431XB/configs/stm32_registry.h | 14 |
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 new file mode 100644 index 0000000000..15d7fbec0b --- /dev/null +++ b/platforms/chibios/boards/GENERIC_STM32_G431XB/configs/hal_lld.h | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | // Copyright 2024 QMK | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | #pragma once | ||
| 4 | |||
| 5 | // TODO: Remove when upstream no longer requires patching | ||
| 6 | #include <stm32_registry.h> | ||
| 7 | |||
| 8 | #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 new file mode 100644 index 0000000000..766df5a78e --- /dev/null +++ b/platforms/chibios/boards/GENERIC_STM32_G431XB/configs/stm32_registry.h | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | // Copyright 2024 QMK | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | #pragma once | ||
| 4 | |||
| 5 | // TODO: Remove when STM32_FLASH_SECTORS_PER_BANK fixed upstream | ||
| 6 | #ifndef STM32_FLASH_SECTORS_PER_BANK | ||
| 7 | # define STM32_FLASH_SECTORS_PER_BANK 64 | ||
| 8 | #endif | ||
| 9 | |||
| 10 | #include_next <stm32_registry.h> | ||
| 11 | |||
| 12 | // TODO: Remove when STM32_FLASH_NUMBER_OF_BANKS fixed upstream | ||
| 13 | #undef STM32_FLASH_NUMBER_OF_BANKS | ||
| 14 | #define STM32_FLASH_NUMBER_OF_BANKS 1 | ||
