Browse Source

Workaround for G431 eeprom emulation (#23002)

pull/22764/head
Joel Challis 2 months ago
committed by GitHub
parent
commit
93f20e012e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 changed files with 22 additions and 0 deletions
  1. +8
    -0
      platforms/chibios/boards/GENERIC_STM32_G431XB/configs/hal_lld.h
  2. +14
    -0
      platforms/chibios/boards/GENERIC_STM32_G431XB/configs/stm32_registry.h

+ 8
- 0
platforms/chibios/boards/GENERIC_STM32_G431XB/configs/hal_lld.h View File

@ -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
- 0
platforms/chibios/boards/GENERIC_STM32_G431XB/configs/stm32_registry.h View File

@ -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…
Cancel
Save