Commit Graph

33756 Commits (218e93c97ff81a6158519d7d8891c7824131b3ec)

Author SHA1 Message Date
Martin Kojtal 218e93c97f cmsis: fix license header in rtx_def
Upstream fix was merged https://github.com/ARM-software/CMSIS_5/pull/1238. Included here as it will be overwritten once again updated
2021-07-29 14:29:57 +01:00
Martin Kojtal b9043fb91c cmsis: importer sha removal
I had to resolve conflicts with these sha. CMSIS 5.8.0 includes fixes and makes these changes
irrelevant.
2021-07-27 10:06:40 +01:00
Bartek Szatkowski 4744fdb2f3 CMSIS/RTX: Allow overwriting mutex ops for ARMC
(cherry picked from commit 08ab8cc47d)
2021-07-27 10:06:39 +01:00
Deepika 06b815a9d2 CMSIS/RTX: Patch to conditionally compile
tz_context.c should be compiled only for secure world,
definition of API's in tz_context.h should be part of secure
binary/bootloader when building mbed-os as non-secure

(Cherry picked from d0a43b8af0)

(cherry picked from commit fb354752eb)
2021-07-27 10:06:38 +01:00
Bartek Szatkowski 8ade0d46ec CMSIS/RTX: Patch RTX4 to preserve osThreadDef compatibility
mbed OS used older RTX4 version and with osThreadDef accepting only 3
parameters, to preserve compatibility we hardcode the 'instances'
parameter to 1.

(cherry picked from commit 428acae1b2ac15c3ad523e8d40755a9301220822)
(cherry picked from commit 4360b7bbf8)
2021-07-27 10:06:37 +01:00
Martin Kojtal 7941286531 [CMSIS_5]: Updated to 13b9f72f2 2021-07-27 10:06:34 +01:00
Martin Kojtal 6827b4275b
Merge pull request #14397 from macronix/macronix_spi_NAND
add SPI NAND Block device driver
2021-07-26 15:24:47 +02:00
Martin Kojtal e2ec3cd720
Merge pull request #14831 from jeromecoutant/PR_DISCO_WB_LED
DISCO_WB5MMG: add RGB LED
2021-07-26 13:21:09 +02:00
Martin Kojtal efaf159ca4
Merge pull request #14945 from OpenNuvoton/nuvoton_tfm_missing_update
TFM: Add missing IPC file for PSA Firmware Update
2021-07-23 14:33:06 +02:00
Martin Kojtal 379afe794f
Merge pull request #14953 from LDong-Arm/post_build_hook_rework
Rework post-build to support multiple executables
2021-07-23 13:29:45 +02:00
jeromecoutant 68529322dd DISCO_WB5MMG: add RGB LED 2021-07-23 12:34:49 +02:00
Jaeden Amero c8b889ea89
Merge pull request #14914 from nicole-osaz/my_mbed-os_branch
Deprecate the Greentea metrics API
2021-07-23 10:34:38 +01:00
Chun-Chieh Li d5130d33d7 TFM: Add missing IPC file for PSA Firmware Update
On a target that doesn't support Firmware Update, compilation still works, and any attempt to call the Firmware Update API returns a runtime error which is good enough.
2021-07-23 09:26:17 +08:00
Lingkai Dong 23d659ef9e CMake: Add test for multiple-executable support
Add a test to build two executables in two directories under a single
project.
2021-07-22 17:31:45 +01:00
Lingkai Dong 91b8186615 Cypress: Improve `mbed_post_build_psoc6_merge_hex()`
The CMake macro `mbed_post_build_psoc6_merge_hex()` takes the name of
a Cypress target and an optional Cortex-M0 hex image as arguments. The
proper way to define and parse optional arguments of a function or
macro is `cmake_parse_arguments()`, which allows the caller to
indicate what they are passing rather than rely on an argument's
relative position within `${ARGN}` which is not rigorous.

Also, avoid duplicating the common part of the post build command
when the optional argument is passed/not passed.
2021-07-22 17:31:45 +01:00
Lingkai Dong 351680fb18 Rework post-build to support multiple executables
When building greentea tests, each test is an executable with its
own output binary path. This is also the case when a user project
produces multiple executables. But the current implementation of
post-build operations always assumes there's only one executable,
at the root of the build directory.

The post-build command depends on Mbed target, and it always takes
the the executable we build as an input file. To achieve this, we
let each Mbed target (that has a post-build command) define a function

    function(mbed_post_build_function target)

which takes a CMake executable target as an argument from which it can
get its binary path using generator expressions. It generates and adds
to the passed executable target a post-build custom command.

Notes:
* The function name needs to be exact, because CMake only supports
literal function calls - CMake can't dereference a function name from
a variable. To avoid multiple definitions of this function, each Mbed
target needs to guard it with a macro to check if the user is
building this Mbed target.
* `mbed_post_build_function()` is a function, but it is usually
defined by another macro rather than a parent function, because
nesting functions would make many variables inaccessible inside the
innermost `mbed_post_build_function()`.
* There's no more need to force regenerate images. Previously, post-
build commands were custom *targets* which always got to run, so we
force regenerated images on every build to avoid patching an image
that's already been patched once on previous build. Now post-build
commands are custom *commands* of the same executable target, and they
are only run if the executable target itself is rebuilt.
2021-07-22 17:31:22 +01:00
Martin Kojtal 0f5e062b69
Merge pull request #14939 from jeromecoutant/PR_PIN_ALIAS
Standard Pin Names validation script update
2021-07-22 15:04:00 +02:00
Jerome Coutant 97cd8e928d pinvalidate.py script: add deprecated ARDUINO test 2021-07-22 13:55:52 +02:00
Jerome Coutant 77e7720cb0 pinvalidate.py script: add SPI and I2C alias check
Goal is to follow
hal/include/hal/PinNameAliases.h
2021-07-22 13:55:52 +02:00
Jerome Coutant 616a84f370 pinvalidate.py script: remove spaces 2021-07-22 13:55:52 +02:00
Robert Walton fcd57b24d3 CMake: Move post build functions out of root CMakeLists.txt
The 'post build' functions are made visible by adding the mbed-os
subdirectory. This is not ideal as any components in mbed-os wishing to
call the functions must be added after the functions are defined. To
improve modularity move these functions to a separate CMake script.

We include the post build CMake script in app.cmake for now so we don't
break user's projects.
2021-07-22 11:50:43 +01:00
Jaeden Amero 662bd59973
Merge pull request #14940 from Patater/update-prettytable
python: Allow newer prettytable with newer python
2021-07-21 14:55:52 +01:00
Jaeden Amero 14d4ee3f3b python: Allow newer prettytable with newer python
This helps to allow installation of Mbed OS's Python requirements, when
CMake is used, into the same Python environment as mbed-os-tools. The
versions specified here are aligned with mbed-os-tools;
tools/cmake/requirements.txt depends on the same version of prettytable
as mbed-os-tools's requirements.txt.
2021-07-21 13:55:18 +01:00
Jaeden Amero 8ffab0ae5a python: Remove direct dependency on prettytable
Mbed CLI 1 parses the base requirements.txt and attempts to
automatically install missing python libraries for you. Unfortunately,
it's requirements parser is not as capable as the one shipping with pip.
In particular, we are unable to express different version of libraries
conditional on the version of Python being used.

    ---
    [mbed] ERROR: Unknown Error: Unsupported environment marker:  python_version < '3.6'

Remove the direct dependency on prettytable from requirements.txt, as
mbed-os-tools depends on prettytable and we can pick up the dependency
(as properly expressed conditionally on the Python version) from there,
without having to use the limited requirements parser in Mbed CLI 1.
2021-07-21 13:52:52 +01:00
Martin Kojtal e060c8c007
Merge pull request #14730 from Ekidna/fix/sx126x-select-pins
Add config macros for device-variant, freq-support and xtal config
2021-07-21 14:52:44 +02:00
Martin Kojtal 655d889e91
Merge pull request #14912 from ARMmbed/move_unittest_ble_headers_lib
Move ble stubs to FEATURE_BLE lib
2021-07-21 14:52:01 +02:00
Martin Kojtal 530c90b351
Merge pull request #14932 from ARMmbed/remove_tools_host_tests
Remove host_tests from mbed-os/tools
2021-07-21 14:51:30 +02:00
Rajkumar Kanagaraj fb5b0ede45 CMake: Limit the mbed-fakes-ble to required dependency mock 2021-07-21 01:56:29 -07:00
Rajkumar Kanagaraj 9df7a50f39 CMake: Move ble fakes into FEATURE_BLE double dir
Previously ble fakes as part of UNITTESTS/fakes, this PR moves
ble fakes to FEATURE_BLE double directory to make ble stubs
to be self-contained.
2021-07-21 01:56:29 -07:00
Rajkumar Kanagaraj 1b5f5970a2 CMake: fakes ble: Remove trailing whitespace 2021-07-21 01:56:29 -07:00
Rajkumar Kanagaraj 86737bdb89 Remove mbed-headers-connectivity
Moved all the headers out of mbed-headers-connectivity, and these changes remove
that headers lib reference from lorawan and cellular unit tests
2021-07-21 01:56:29 -07:00
Rajkumar Kanagaraj a61392ae30 CMake: Create mbed-headers-ble library
Previously ble headers are part of mbed-headers-connectivity, this PR
moves ble headers into new mbed-headers-ble to make ble stubs to be
more self-contained and improves the composition of the library.
2021-07-21 01:51:48 -07:00
Nicole Osazuwa 24451695e8 greentea: Add missing license header
Add missing license header to greentea_metrics.h
2021-07-20 17:01:34 +01:00
Nicole Osazuwa e8bd2fb530 Deprecate the Greentea metrics API
Add the deprecated macro to where the Greentea metrics API is declared.

Fixes #14790
2021-07-20 17:01:34 +01:00
Jaeden Amero c703b0de23
Merge pull request #14880 from Patater/dont-require-icetea
Dont require icetea
2021-07-20 15:54:51 +01:00
Martin Kojtal 146c98ccd6
Merge pull request #14920 from hazzlim/refactor-connectivity-netsocket-unittests
Refactor connectivity netsocket unittests
2021-07-20 14:58:40 +02:00
Rajkumar Kanagaraj e75b67fada Remove host_tests from mbed-os/tools
host tests (mbedhtrun) is maintained as part of mbed-os-tools but there
is a redundant duplicate of host_tests under mbed-os/tools/ directory
this PR changes to remove those duplicates and update test_api py modules
to use host tests from mbed-host-tests
2021-07-20 05:07:28 -07:00
Martin Kojtal 2181d7cc77
Merge pull request #14924 from ARMmbed/refactor_cellular_unittest
Refactor cellular unittest CMake
2021-07-20 10:09:57 +02:00
Martin Kojtal 26889ca2f7
Merge pull request #14927 from paul-szczepanek-arm/master
add workflow for checking ble feature selection compilation
2021-07-20 10:09:47 +02:00
Martin Kojtal 2bb1539ec4
Merge pull request #14922 from ARMmbed/at-handler-fix
Cellular: AT command fix - hex string shouldn't be quoted on bc95
2021-07-20 10:04:02 +02:00
Martin Kojtal c9234177c1
Merge pull request #14921 from paul-szczepanek-arm/fix-ble-default-db
BLE: suppress error when no path is passed in for ble security db
2021-07-20 10:02:28 +02:00
Martin Kojtal 1a7175d0a7
Merge pull request #14919 from paul-szczepanek-arm/fix-feature-toggle
BLE: fix missing define guards for feature selection
2021-07-20 10:02:12 +02:00
Martin Kojtal 11439bf264
Merge pull request #14909 from DDC-NDRS/ndrs-pst
SPIF: fixed _address_size to always initialize as 3_BYTES in ::init()
2021-07-20 09:55:08 +02:00
Martin Kojtal b6e044a2f3
Merge pull request #14894 from hazzlim/refactor-connectivity-lorawan-unittests
Unit tests: Connectivity: Make lorawan test header dependencies explicit
2021-07-20 09:54:49 +02:00
Martin Kojtal 2a24d81ef0
Merge pull request #14821 from boraozgen/rtos-events-enable
RTOS: Add configuration to enable RTX events
2021-07-20 09:47:59 +02:00
Martin Kojtal a07ec0bfeb
Merge pull request #14805 from rkotan/I2C_Multiple_Buses_fix
i2c: fix issue #14735 with multiple buses
2021-07-20 09:44:59 +02:00
ndrs-pst 8394988354 SPIF: Moving _address_size = SPIF_ADDR_SIZE_3_BYTES from constructors into ::init() instead 2021-07-19 17:30:00 +07:00
Hari Limaye 14cab32df4 Unittests: Make netsocket test header dependencies explicit
The CMake target `mbed-headers` brings in all
headers, and we are gradually moving away from it and explicitly use
only headers needed by each unit test.
2021-07-19 10:37:45 +01:00
Hari Limaye 4e54bf94d0 Unittests: Replace files with stubs in netsocket unit tests
Some netsocket unit tests depend on nanostack-libservice library, but
should use stubs instead of including the source files. We remove the
source files and link to mbed-stubs-nanostack-libservice.
2021-07-19 10:37:25 +01:00
Hari Limaye 8ad216ae1a Unittests: Clean up unused sources from netsocket
Some source files included when building netsocket unit tests with CMake
were determined to be unused by removing the files from target_sources()
and verifying that the tests still built and ran successfully. These
files have been removed from CMake builds.
2021-07-19 10:37:16 +01:00