Further tidy up of STM32 eeprom emulation (#14591)

This commit is contained in:
Joel Challis 2021-10-16 02:58:48 +01:00 committed by GitHub
parent 5c6a8f599f
commit 83e978da1f
Failed to generate hash of commit
3 changed files with 10 additions and 38 deletions

View file

@ -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