diff options
Diffstat (limited to 'tmk_core/common/test')
-rw-r--r-- | tmk_core/common/test/eeprom_stm32_tests.cpp | 2 | ||||
-rw-r--r-- | tmk_core/common/test/hal.h | 18 | ||||
-rw-r--r-- | tmk_core/common/test/rules.mk | 4 |
3 files changed, 21 insertions, 3 deletions
diff --git a/tmk_core/common/test/eeprom_stm32_tests.cpp b/tmk_core/common/test/eeprom_stm32_tests.cpp index aa84492b8..5bc8d8790 100644 --- a/tmk_core/common/test/eeprom_stm32_tests.cpp +++ b/tmk_core/common/test/eeprom_stm32_tests.cpp | |||
@@ -46,7 +46,7 @@ extern "C" { | |||
46 | * | 46 | * |
47 | */ | 47 | */ |
48 | 48 | ||
49 | #define EEPROM_SIZE (FEE_PAGE_SIZE * FEE_DENSITY_PAGES / 2) | 49 | #define EEPROM_SIZE (FEE_PAGE_SIZE * FEE_PAGE_COUNT / 2) |
50 | #define LOG_SIZE EEPROM_SIZE | 50 | #define LOG_SIZE EEPROM_SIZE |
51 | #define LOG_BASE (MOCK_FLASH_SIZE - LOG_SIZE) | 51 | #define LOG_BASE (MOCK_FLASH_SIZE - LOG_SIZE) |
52 | #define EEPROM_BASE (LOG_BASE - EEPROM_SIZE) | 52 | #define EEPROM_BASE (LOG_BASE - EEPROM_SIZE) |
diff --git a/tmk_core/common/test/hal.h b/tmk_core/common/test/hal.h new file mode 100644 index 000000000..2d268ad54 --- /dev/null +++ b/tmk_core/common/test/hal.h | |||
@@ -0,0 +1,18 @@ | |||
1 | /* Copyright 2021 QMK | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 3 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #pragma once | ||
17 | |||
18 | // Just here to please eeprom tests | ||
diff --git a/tmk_core/common/test/rules.mk b/tmk_core/common/test/rules.mk index e47e5880c..48632a095 100644 --- a/tmk_core/common/test/rules.mk +++ b/tmk_core/common/test/rules.mk | |||
@@ -3,12 +3,12 @@ eeprom_stm32_tiny_DEFS := $(eeprom_stm32_DEFS) \ | |||
3 | -DFEE_MCU_FLASH_SIZE=1 \ | 3 | -DFEE_MCU_FLASH_SIZE=1 \ |
4 | -DMOCK_FLASH_SIZE=1024 \ | 4 | -DMOCK_FLASH_SIZE=1024 \ |
5 | -DFEE_PAGE_SIZE=512 \ | 5 | -DFEE_PAGE_SIZE=512 \ |
6 | -DFEE_DENSITY_PAGES=1 | 6 | -DFEE_PAGE_COUNT=1 |
7 | eeprom_stm32_large_DEFS := $(eeprom_stm32_DEFS) \ | 7 | eeprom_stm32_large_DEFS := $(eeprom_stm32_DEFS) \ |
8 | -DFEE_MCU_FLASH_SIZE=64 \ | 8 | -DFEE_MCU_FLASH_SIZE=64 \ |
9 | -DMOCK_FLASH_SIZE=65536 \ | 9 | -DMOCK_FLASH_SIZE=65536 \ |
10 | -DFEE_PAGE_SIZE=2048 \ | 10 | -DFEE_PAGE_SIZE=2048 \ |
11 | -DFEE_DENSITY_PAGES=16 | 11 | -DFEE_PAGE_COUNT=16 |
12 | 12 | ||
13 | eeprom_stm32_INC := \ | 13 | eeprom_stm32_INC := \ |
14 | $(TMK_PATH)/common/chibios/ | 14 | $(TMK_PATH)/common/chibios/ |