Skip to content

Commit

Permalink
Workaround for G431 eeprom emulation
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr committed Feb 3, 2024
1 parent 2f37a78 commit 2b9fe04
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
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>
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

0 comments on commit 2b9fe04

Please sign in to comment.