diff options
Diffstat (limited to 'tmk_core')
| -rw-r--r-- | tmk_core/common/chibios/eeprom_stm32_defs.h | 6 |
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 |
