aboutsummaryrefslogtreecommitdiff
path: root/tmk_core
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
parente1dfbfbfd32e923e2bd499a324f18122a90ac998 (diff)
downloadqmk_firmware-3a2a39e5ecd43756b5df5e382bd02d9f41061c78.tar.gz
qmk_firmware-3a2a39e5ecd43756b5df5e382bd02d9f41061c78.zip
Initial pass of F405 support (#14584)
* Initial pass of F405 support * remove some conf files * docs * clang
Diffstat (limited to 'tmk_core')
-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 57de42c6b..cc64cda74 100644
--- a/tmk_core/common/chibios/eeprom_stm32_defs.h
+++ b/tmk_core/common/chibios/eeprom_stm32_defs.h
@@ -32,7 +32,7 @@
32# ifndef FEE_PAGE_COUNT 32# ifndef FEE_PAGE_COUNT
33# define FEE_PAGE_COUNT 4 // How many pages are used 33# define FEE_PAGE_COUNT 4 // How many pages are used
34# endif 34# endif
35# elif defined(STM32F401xC) || defined(STM32F411xE) 35# elif defined(STM32F401xC) || defined(STM32F405xG) || defined(STM32F411xE)
36# ifndef FEE_PAGE_SIZE 36# ifndef FEE_PAGE_SIZE
37# define FEE_PAGE_SIZE 0x4000 // Page size = 16KByte 37# define FEE_PAGE_SIZE 0x4000 // Page size = 16KByte
38# endif 38# endif
@@ -51,12 +51,14 @@
51# define FEE_MCU_FLASH_SIZE 256 // Size in Kb 51# define FEE_MCU_FLASH_SIZE 256 // Size in Kb
52# elif defined(STM32F103xE) || defined(STM32F411xE) 52# elif defined(STM32F103xE) || defined(STM32F411xE)
53# define FEE_MCU_FLASH_SIZE 512 // Size in Kb 53# define FEE_MCU_FLASH_SIZE 512 // Size in Kb
54# elif defined(STM32F405xG)
55# define FEE_MCU_FLASH_SIZE 1024 // Size in Kb
54# endif 56# endif
55#endif 57#endif
56 58
57/* Start of the emulated eeprom */ 59/* Start of the emulated eeprom */
58#if !defined(FEE_PAGE_BASE_ADDRESS) 60#if !defined(FEE_PAGE_BASE_ADDRESS)
59# if defined(STM32F401xC) || defined(STM32F411xE) 61# if defined(STM32F401xC) || defined(STM32F405xG) || defined(STM32F411xE)
60# ifndef FEE_PAGE_BASE_ADDRESS 62# ifndef FEE_PAGE_BASE_ADDRESS
61# define FEE_PAGE_BASE_ADDRESS 0x08004000 // bodge to force 2nd 16k page 63# define FEE_PAGE_BASE_ADDRESS 0x08004000 // bodge to force 2nd 16k page
62# endif 64# endif