summaryrefslogtreecommitdiff
path: root/tmk_core/common
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-09-25 00:19:41 +0100
committerGitHub <noreply@github.com>2021-09-25 00:19:41 +0100
commit3a2a39e5ecd43756b5df5e382bd02d9f41061c78 (patch)
treeb011b46243bd67b3452f668034b24ba10509a15d /tmk_core/common
parente1dfbfbfd32e923e2bd499a324f18122a90ac998 (diff)
Initial pass of F405 support (#14584)
* Initial pass of F405 support * remove some conf files * docs * clang
Diffstat (limited to 'tmk_core/common')
-rw-r--r--tmk_core/common/chibios/eeprom_stm32_defs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tmk_core/common/chibios/eeprom_stm32_defs.h b/tmk_core/common/chibios/eeprom_stm32_defs.h
index 57de42c6ba..cc64cda748 100644
--- a/tmk_core/common/chibios/eeprom_stm32_defs.h
+++ b/tmk_core/common/chibios/eeprom_stm32_defs.h
@@ -32,7 +32,7 @@
# ifndef FEE_PAGE_COUNT
# define FEE_PAGE_COUNT 4 // How many pages are used
# endif
-# elif defined(STM32F401xC) || defined(STM32F411xE)
+# elif defined(STM32F401xC) || defined(STM32F405xG) || defined(STM32F411xE)
# ifndef FEE_PAGE_SIZE
# define FEE_PAGE_SIZE 0x4000 // Page size = 16KByte
# endif
@@ -51,12 +51,14 @@
# define FEE_MCU_FLASH_SIZE 256 // Size in Kb
# elif defined(STM32F103xE) || defined(STM32F411xE)
# define FEE_MCU_FLASH_SIZE 512 // Size in Kb
+# elif defined(STM32F405xG)
+# define FEE_MCU_FLASH_SIZE 1024 // Size in Kb
# endif
#endif
/* Start of the emulated eeprom */
#if !defined(FEE_PAGE_BASE_ADDRESS)
-# if defined(STM32F401xC) || defined(STM32F411xE)
+# if defined(STM32F401xC) || defined(STM32F405xG) || defined(STM32F411xE)
# ifndef FEE_PAGE_BASE_ADDRESS
# define FEE_PAGE_BASE_ADDRESS 0x08004000 // bodge to force 2nd 16k page
# endif