forked from mirrors/qmk_userspace
Further tidy up of STM32 eeprom emulation (#14591)
This commit is contained in:
parent
5c6a8f599f
commit
83e978da1f
3 changed files with 10 additions and 38 deletions
|
@ -19,11 +19,11 @@
|
|||
#include <hal.h>
|
||||
#include "flash_stm32.h"
|
||||
|
||||
#if defined(EEPROM_EMU_STM32F103xB)
|
||||
#if defined(STM32F1XX)
|
||||
# define FLASH_SR_WRPERR FLASH_SR_WRPRTERR
|
||||
#endif
|
||||
|
||||
#if defined(EEPROM_EMU_STM32F401xC)
|
||||
#if defined(STM32F4XX)
|
||||
# define FLASH_SR_PGERR (FLASH_SR_PGSERR | FLASH_SR_PGPERR | FLASH_SR_PGAERR)
|
||||
|
||||
# define FLASH_KEY1 0x45670123U
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue