File tree Expand file tree Collapse file tree 4 files changed +50
-2
lines changed
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xE Expand file tree Collapse file tree 4 files changed +50
-2
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2020 ARM Limited. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ function (_mbed_get_assembly_stm32f401xe )
5
+ if (${MBED_TOOLCHAIN} STREQUAL "GCC_ARM" )
6
+ set (STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f401xe.S )
7
+ elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
8
+ set (STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f401xe.S )
9
+ elseif (${MBED_TOOLCHAIN} STREQUAL "IAR" )
10
+ set (STARTUP_FILE TOOLCHAIN_IAR/startup_stm32f401xe.S )
11
+ endif ()
12
+ target_sources (mbed-os PRIVATE ${STARTUP_FILE} )
13
+ endfunction ()
14
+
15
+ function (_mbed_set_linker_file )
16
+ if (${MBED_TOOLCHAIN} STREQUAL "GCC_ARM" )
17
+ set (LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR} /TOOLCHAIN_GCC_ARM/STM32F401XE.ld )
18
+ elseif (${MBED_TOOLCHAIN} STREQUAL "ARM" )
19
+ set (LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR} /TOOLCHAIN_ARM/stm32f401xe.sct )
20
+ elseif (${MBED_TOOLCHAIN} STREQUAL "IAR" )
21
+ set (LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR} /TOOLCHAIN_IAR/stm32f401xe.icf )
22
+ endif ()
23
+ set_property (GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${LINKER_FILE} )
24
+ endfunction ()
25
+
26
+ _mbed_get_assembly_stm32f401xe ()
27
+ _mbed_set_linker_file ()
28
+
29
+ mbed_add_cmake_directory_if_labels ("TARGET" )
30
+
31
+ target_include_directories (mbed-os
32
+ PUBLIC
33
+ .
34
+ )
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2020 ARM Limited. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ target_include_directories (mbed-os
5
+ PUBLIC
6
+ .
7
+ )
8
+
9
+ target_sources (mbed-os
10
+ PRIVATE
11
+ PeripheralPins.c
12
+ system_clock.c
13
+ )
Original file line number Diff line number Diff line change 1
- #! armcc -E
1
+ #! armclang -E --target=arm-arm-none-eabi -x c -mcpu=cortex-m4
2
2
; Scatter-Loading Description File
3
3
;
4
4
; SPDX-License-Identifier: BSD-3-Clause
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ The following targets are supported:
22
22
- DISCO_L475VG_IOT01A
23
23
- K64F
24
24
- K66F
25
- - NRF52840_DK
25
+ - NRF52840_DK
26
+ - NUCLEO_F401RE
26
27
- WIO_3G
27
28
28
29
### Supported toolchains
You can’t perform that action at this time.
0 commit comments