Martin Kojtal
fef6a6a9aa
Merge pull request #14199 from rwalton-arm/dev/rwalton-arm/refactor-st-mbed-targets
...
Refactor ST Mbed targets to be CMake buildsystem targets
2021-02-04 19:45:57 +00:00
Robert Walton
d9e184b6c6
cmake: Refactor ST targets
...
Refactor all ST targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.
A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-04 15:26:36 +00:00
Robert Walton
0e491cc0cf
cmake: Refactor mbed_set_mbed_target_linker_script
...
Move the mbed_set_mbed_target_linker_script function into its own file
and make it set the linkerscript on the target passed in, rather than
setting the linkerscript on the top level mbed-core target. We use
CMake's automatic forwarding of usage requirements to forward the linker
script to the top level target.
This commit also adds a condition to check whether the MBED_TARGET is a
CMake buildsystem target. If it is we will just link to it in the
idiomatic CMake way, if it's not then we use the 'old' mechanism of
setting the linkerscript for the mbed-core target. This check will be
useful when we refactor MBED_TARGETS to be CMake buildsystem targets as
it will allow us to do the refactoring incrementally.
2021-02-04 15:26:33 +00:00
Robert Walton
8f47212085
cmake: Remove whitespace from mbed-os/CMakeLists.txt
2021-02-04 15:23:49 +00:00
adbridge
c7c30fe9f7
Remove trailing space
2021-02-04 14:25:29 +00:00
adbridge
d1b768ad9a
Tweak events API update and update Greentea tests accordingly
2021-02-04 12:48:41 +00:00
Jamie Smith
7b03aeaf98
Rebase against master
2021-02-03 14:16:07 -08:00
Jamie Smith
9e2b04e945
Whitespace formatting changes.
2021-02-03 14:12:29 -08:00
Jamie Smith
0a67fef995
Add intelhex version info (same as #14201 )
2021-02-03 14:12:29 -08:00
Jamie Smith
df60d42aed
Realized that companion Python script is actually not needed at all, can be replaced with command line
2021-02-03 14:12:28 -08:00
Jamie Smith
8eca0cffb2
Fix incorrect comment in tools/cmake/python_packagecheck.py
...
Co-authored-by: Hugues Kamba <41612201+hugueskamba@users.noreply.github.com>
2021-02-03 14:12:28 -08:00
Jamie Smith
e61a45a0c3
Add extra lines as requested
2021-02-03 14:12:27 -08:00
Jamie Smith
049f1a7bf6
Fix indentation error in tools/cmake/CheckPythonPackage.cmake
...
Co-authored-by: Hugues Kamba <41612201+hugueskamba@users.noreply.github.com>
2021-02-03 14:12:27 -08:00
Jamie Smith
fafb08c1b7
Reformat tools/cmake/CheckPythonPackage.cmake
...
Co-authored-by: Hugues Kamba <41612201+hugueskamba@users.noreply.github.com>
2021-02-03 14:12:27 -08:00
Jamie Smith
947c804295
Parse requirements.txt in CMake
2021-02-03 14:12:26 -08:00
Jamie Smith
c667747309
Fix license header
2021-02-03 14:11:54 -08:00
Jamie Smith
c193527305
Add intelhex to requirements.txt as it's a dependency of memap.
2021-02-03 14:11:54 -08:00
Jamie Smith
029486e640
Add FindPythonPackage and use it to detect memap dependencies
2021-02-03 14:11:53 -08:00
pennam
d059feefe0
Added i2c_device.c to CMakeLists.txt
2021-02-03 15:18:33 +01:00
Martin Kojtal
7135c6545a
Merge pull request #14215 from flippy84/master
...
STM: Fix Hal_GetTick wrap around errors
2021-02-03 14:17:59 +00:00
Martin Kojtal
78bbe274f1
Merge pull request #14203 from kylejansen/sdpk1-usb
...
Adding USB HS Support to the SDP-K1
2021-02-03 14:17:43 +00:00
Martin Kojtal
733975220d
Merge pull request #14228 from ARMmbed/rename_greentea_test_macro
...
CMake: rename greentea test macro
2021-02-03 14:17:20 +00:00
Martin Kojtal
24f035ef3e
Merge pull request #14204 from multiplemonomials/cmake-exe-suffix
...
Set executable suffix in CMake
2021-02-03 14:17:00 +00:00
Hugues Kamba
59bb225f40
CMake: Fix Cypress MCU_PSOC6_M4 build
...
Ensure the RTOS source file are included
if the full profile is used. The macro CY_RTOS_AWARE
is added whenever the full profile is used
2021-02-03 14:15:07 +00:00
pennam
6db7342cf6
manage I2C_IP_VERSION_V1 boards builds
2021-02-03 15:14:42 +01:00
pennam
d968b17e76
code style fix
2021-02-03 14:18:07 +01:00
Martin Kojtal
6dd44e7ec7
Merge pull request #14190 from 0xc0170/fix_ns_cores
...
CMake cores: fix NS cores
2021-02-03 10:17:21 +00:00
Martin Kojtal
d48cc295f2
Merge pull request #14213 from 0xc0170/dev_add_cortexm55
...
Add cortex-m55 to CMake support
2021-02-03 09:39:32 +00:00
Martin Kojtal
f7ed864e8d
Merge pull request #13979 from taunomagnusson/master
...
Support for ST STM32 NUCLEO-G431KB Development Board
2021-02-03 09:37:14 +00:00
Martin Kojtal
40cd33001d
Merge pull request #14195 from jeromecoutant/PR_LORA_BARE
...
LoraRadio test update for baremetal support
2021-02-03 09:31:41 +00:00
Martin Kojtal
5e1d13886c
Merge pull request #14202 from paul-szczepanek-arm/fix-stop-advert
...
BLE: return OK when stopping advertising set that is not active
2021-02-03 09:31:24 +00:00
Martin Kojtal
8a788c9a55
Merge pull request #14212 from adbridge/master
...
Expose the public Stream API
2021-02-03 09:31:03 +00:00
Andreas Carlsson
38b9e8ee5f
STM: prevent task switch errors in HAL_GetTick
2021-02-03 09:42:15 +01:00
Martino Facchin
56c508b974
nRF52: properly clean pwm structures on deinit()
2021-02-03 09:36:27 +01:00
Rajkumar Kanagaraj
6824b14e48
CMake: rename greentea test macro
2021-02-02 07:43:40 -08:00
Martin Kojtal
2e964006b7
Merge pull request #14196 from 0xc0170/fix-cores-gcc
...
CMake cores: fix cpu/fpu flags
2021-02-02 14:18:13 +00:00
Martin Kojtal
276e835e4b
Merge pull request #14181 from hugueskamba/hk_cmake_greentea_mbedtls
...
CMake: Add support for Mbed TLS Greentea tests
2021-02-02 14:17:18 +00:00
Martin Kojtal
ba6f566bd8
Merge pull request #14201 from ladislas/ladislas-update-python-intelhex
...
Update maximum version of intelhex to 2.3.0
2021-02-02 13:08:29 +00:00
Oliver Wildtgrube
6b0215c687
fix namespaces for MBED_NO_GLOBAL_USING_DIRECTIVE feature
...
added namespaces in various files
2021-02-02 12:49:11 +01:00
Martino Facchin
8ca0e9f161
BlockDevices: specify mbed namespace where needed
2021-02-02 12:49:09 +01:00
Jamie Smith
d9819a72d1
Bring back CMAKE_EXECUTABLE_SUFFIX in map filename, with a vengeance!
2021-02-01 19:40:41 -08:00
Martin Kojtal
956b19775c
Merge pull request #14197 from paul-szczepanek-arm/gtest
...
Upgrade gtest to 1.10
2021-02-01 10:44:11 +00:00
Martin Kojtal
04100a14c2
Merge pull request #14092 from hugueskamba/hk_nfc_m24sr_support
...
NFC: Add support for M24SR driver
2021-02-01 09:39:26 +00:00
pennam
506390bcf8
Increase FLAG_TIMEOUT to avoid misleading triggers
2021-02-01 09:13:33 +01:00
pennam
7544f7ef24
Use the proper clock source for any I2C instance
2021-02-01 09:13:21 +01:00
pennam
28a3475c5c
STM32: Compute I2C timing according current I2C clock source and required I2C clock
2021-01-31 14:02:01 +01:00
Jamie Smith
7f2abe6673
Add newline
2021-01-29 09:00:35 -08:00
Martin Kojtal
09e0ffda6e
CMake rtos: add M55 to irq handlers, use m33 handlers = the same
2021-01-29 14:23:01 +00:00
Martin Kojtal
0bcd1f770f
Add cortex-m55 to CMake support
2021-01-28 16:46:18 +00:00
adbridge
9b04617d04
Expose the public Stream API
...
Stream.h contains a public API which is not currently exposed via
mbed.h (when it should be). This commit fixes this.
2021-01-28 16:34:15 +00:00