eeprom_stm32: add stm32f4 series support
based on code by @yulei in https://github.com/qmk/qmk_firmware/pull/7803
This commit is contained in:
@ -22,6 +22,26 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if defined(EEPROM_EMU_STM32F303xC)
|
||||
# define STM32F303xC
|
||||
# include "stm32f3xx.h"
|
||||
#elif defined(EEPROM_EMU_STM32F103xB)
|
||||
# define STM32F103xB
|
||||
# include "stm32f1xx.h"
|
||||
#elif defined(EEPROM_EMU_STM32F072xB)
|
||||
# define STM32F072xB
|
||||
# include "stm32f0xx.h"
|
||||
#elif defined(EEPROM_EMU_STM32F042x6)
|
||||
# define STM32F042x6
|
||||
# include "stm32f0xx.h"
|
||||
#elif defined(EEPROM_EMU_STM32F411xC)
|
||||
# define EEPROM_EMU_STM32F4
|
||||
# define STM32F411xE
|
||||
# include "stm32f4xx.h"
|
||||
#else
|
||||
# error "not implemented."
|
||||
#endif
|
||||
|
||||
#include <ch.h>
|
||||
#include <hal.h>
|
||||
|
||||
|
Reference in New Issue
Block a user