-
-
Notifications
You must be signed in to change notification settings - Fork 40.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround for G431 eeprom emulation
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
platforms/chibios/boards/GENERIC_STM32_G431XB/configs/hal_lld.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
14 changes: 14 additions & 0 deletions
14
platforms/chibios/boards/GENERIC_STM32_G431XB/configs/stm32_registry.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |