Skip to content

Commit 9a4bdb8

Browse files
jancotipsarevicPerez
andauthored
Add STM32F103xD and xG entries in CMakeLists.txt (ARMmbed#155)
* Add STM32F103xD, STM32F103xG series and fix STM32F103xE startup file * Add system_clock.c file for STM32F103xD series * Add STM32F103xD and STM32F103xG to targets.json * Update CMakeLists.txt to add STM32F103xD and STM32F103xG series add_subdirectory(TARGET_STM32F103xD EXCLUDE_FROM_ALL) add_subdirectory(TARGET_STM32F103xG EXCLUDE_FROM_ALL) * Add remaps for STM32F1 timers as in original mbed-os Added extra remaps for timers 9 to 14 for STM32F1 needed in STM32F103xG series #define AFIO_REMAP_TIM9_ENABLE 17 #define AFIO_REMAP_TIM10_ENABLE 18 #define AFIO_REMAP_TIM11_ENABLE 19 #define AFIO_REMAP_TIM13_ENABLE 20 #define AFIO_REMAP_TIM14_ENABLE 21 --------- Co-authored-by: Perez <[email protected]>
1 parent e93b80a commit 9a4bdb8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

targets/TARGET_STM/PeripheralPins.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
#define AFIO_REMAP_TIM2_PARTIAL_1 14
5353
#define AFIO_REMAP_TIM2_PARTIAL_2 15
5454
#define AFIO_REMAP_TIM4_ENABLE 16
55+
#define AFIO_REMAP_TIM9_ENABLE 17
56+
#define AFIO_REMAP_TIM10_ENABLE 18
57+
#define AFIO_REMAP_TIM11_ENABLE 19
58+
#define AFIO_REMAP_TIM13_ENABLE 20
59+
#define AFIO_REMAP_TIM14_ENABLE 21
5560
#endif
5661

5762

targets/TARGET_STM/TARGET_STM32F1/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
add_subdirectory(TARGET_STM32F103x8 EXCLUDE_FROM_ALL)
55
add_subdirectory(TARGET_STM32F103xB EXCLUDE_FROM_ALL)
66
add_subdirectory(TARGET_STM32F103xC EXCLUDE_FROM_ALL)
7+
add_subdirectory(TARGET_STM32F103xD EXCLUDE_FROM_ALL)
78
add_subdirectory(TARGET_STM32F103xE EXCLUDE_FROM_ALL)
9+
add_subdirectory(TARGET_STM32F103xG EXCLUDE_FROM_ALL)
810
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
911

1012
add_library(mbed-stm32f1 INTERFACE)

0 commit comments

Comments
 (0)