Commit Graph

10311 Commits (868a5f64ab36a22c72cb3b2964e82818f265bddc)

Author SHA1 Message Date
jeromecoutant ef48d7f97b STM32Cube_FW_F7_V1.6.0 CMSIS v1.1.2 => v1.2.0 STM32F7 HAL v1.1.2 => v1.2.0 2017-03-24 20:39:27 +00:00
Radhika Raghavendran dc52812256 Changed tab to spaces 2017-03-24 20:39:12 +00:00
Radhika Raghavendran a9aaeca5b5 Re-do change for changing ADC range from 0 to 3.3V 2017-03-24 20:39:01 +00:00
Radhika Raghavendran 998f31e8f9 A4 and A5 definitions added 2017-03-24 20:38:50 +00:00
Russ Butler fe4867ea89 rtos: Prevent Thread class from being copied
Make the copy constructor and assignment operator private to prevent
them from being used.
2017-03-24 20:38:42 +00:00
Russ Butler 1bec2f2d5d rtos: Add Inactive return to thread get state
If a thread hasn't been started return Inactive as the status when
Thread::get_state() is called.
2017-03-24 20:38:34 +00:00
Russ Butler edc473a526 rtos: Return an error when a Thread is re-used
Calling Thread::start multiple times leads to undefined behavior since
the Thread class was not designed to handle being restarted.  Return an
error code if Thread::start is called a second time to prevent this
behavior.
2017-03-24 20:38:26 +00:00
Wolfgang Betz bb6df591f0 Correct return values for `I2C::write(int, const char*, int, bool)` 2017-03-24 20:38:18 +00:00
adustm 8f0eb68953 Revert mbedtls selftest to avoid impact on other targets 2017-03-24 20:38:10 +00:00
adustm 3604c3a7d3 remove mbedtls_printf error notification 2017-03-24 20:38:03 +00:00
adustm 48de782b58 Big commit after code review from andesag01 cleanup in include files (unrequired removed + other moved to aes_alt.h) hcryp_aes moved to mbedtls_aes_context to allow multi instances remove ctx->nr, ctx->buf doxygen comments are removed (kept in .h file) function _ALT are removed (full module _ALT) handle error returned by HAL_CRYPxx functions aes is symetric, remove the dupplicated set_key_enc and set_key_dec buffer, and factorize the call to set_key function 2017-03-24 20:37:55 +00:00
adustm 1a5bab8f78 Better use of MBEDTLS_AES_ALT removed from targets.json, added in mbedtls_device.h remove function alternate defines (not used as we replace the full module) 2017-03-24 20:37:47 +00:00
adustm ec5a2ef6f7 Add AES_CBC mode 2017-03-24 20:37:38 +00:00
adustm 7f63650a2e AES ECB for NUCLEO_F439ZI +---------------------------+--------+--------+--------+ | test case | passed | failed | result | +---------------------------+--------+--------+--------+ | mbedtls_aes_self_test | 1 | 0 | OK | | mbedtls_entropy_self_test | 1 | 0 | OK | | mbedtls_sha256_self_test | 1 | 0 | OK | | mbedtls_sha512_self_test | 1 | 0 | OK | +---------------------------+--------+--------+--------+ 2017-03-24 20:37:28 +00:00
Anna Bridge f4864dc642 Merge pull request #3930 from ARMmbed/release-candidate
Release candidate for mbed-os-5.4.1
2017-03-13 15:44:45 +00:00
Simon Vogl c0351446cf can_write(): return error code when no tx mailboxes are available. 2017-03-13 11:20:15 +00:00
Anna Bridge c76d8ffdfc Update MBED_LIBRARY_VERSION to v138 2017-03-13 11:14:55 +00:00
Jimmy Brisson f6388de8f4 Fix toolchain path names in Mbed 2 builds
I accidentally broke only uARM mbed 2 builds. Here is the story: When
scanning for resources, toolchains look for any `TOOLCHAIN_<classname>`
folders to include. These `<classname>`s mostly match the name passed in
on the command line with one exception: `uARM` on the command line maps
to `ARM_MICRO` the class. This would not be a problem except for the bug
that I introduced in a prior commit. The bug is that the mbed2 library
builds will use the name passed in on the command line to construct
`TOOLCHAIN_<cli-name>`. This will not match when scanning.

I fixed it by translating the `<cli-name>` into the `<classname>`.
2017-03-13 11:14:54 +00:00
Christopher Haster 745b8effd2 Filesystem: Restored LocalFileSystem tests for mbed 2 2017-03-13 11:14:50 +00:00
Christopher Haster 44a515dd47 Fixed size_t issue for mbed 2 builds 2017-03-13 11:14:46 +00:00
Mohammad Azim Khan 80fbde313c Fix heap size for NUCLEO_F746ZG on IAR 2017-03-13 11:14:43 +00:00
Andres AG febfa8b720 Update mbed TLS feature to mbedtls-2.4.2 2017-03-13 11:14:39 +00:00
bcostm 4c344d76a9 Add AnalogIn pins on PF3, PF5 and PF10. Don't know why it was missing ? 2017-03-13 11:14:35 +00:00
Christopher Haster 3947dbfa04 bd: Fix missing const attributes on functions 2017-03-13 11:14:31 +00:00
Jimmy Brisson 8a14c4a9c3 Update test_api call to prepare_toolchain
An earlier patch in this series changed the API for
`build_api.prepare_toolchain`. This commit updates the `find_test`
function to call `prepare_toolchain` correctly.
2017-03-13 11:14:27 +00:00
Jimmy Brisson ed60ef142b Remove static analysis scan
An earlier patch in this series relies on the assumption that all
toolchain construction goes through `prepare_toolchain`. This is still
not the case. The only remaining user of the `mbedToolchain` object that
does not go through `prepare_toolchain` is the static analysis scanner.
It's basically dead-code at this point. I say we remove it. So this
patch removes it.
2017-03-13 11:14:23 +00:00
Jimmy Brisson 0b15a05a54 Re-factor mbed2 lib builds to use prepare_toolchain
The prior patch in this series makes the assumption that any building
will go through `build_api.prepare_toolchain`. This was not a valid
assumption for the mbed2 build process. So, instead of maintaining 2
ways of using the toolchain classes, I elected to unify on
`prepare_toolchain`.
2017-03-13 11:14:20 +00:00
Jimmy Brisson a48647f4f1 Ignore build directory from scan resources
This is a bug fix for the following bug (Github issue #437):

If two builds were run specifying a non-default build folder, the second
build would fail to link with duplicate symbols and may not fit on the
device. The root of this problem is that these non-default build folders
are not ignored by scan-resources, and therefore included in the build.

We fix this bug by ignoring the build directory passed into the tools.
2017-03-13 11:14:15 +00:00
bcostm 404b58c4df STM32L4xx: set APB2 clock to 80MHz (instead of 40MHz) 2017-03-13 11:14:11 +00:00
Głąbek, Andrzej 4257bfe774 TARGET_NRF: added a description of the recent change in spi_init(). 2017-03-13 11:14:08 +00:00
Głąbek, Andrzej 2129b29bed TARGET_NRF: corrected spi_init() to properly handle re-initialization on the same pins + minor editorial corrections. 2017-03-13 11:14:04 +00:00
jeromecoutant 74695e74cf STM32 CAN API: correct format and type
astyle done
2017-03-13 11:14:00 +00:00
Laurent MEUNIER 461aa66040 Fix XDOT compilation error
Typo with misplaced closing parenthesis leads to compilation error,
which is fixed with this patch
2017-03-13 11:13:56 +00:00
Laurent MEUNIER 1268ed8dcb STM32: fix formatting
Use the recommended style
if (condition) {
  do();
} else {
  do_else();
}
2017-03-13 11:13:52 +00:00
Laurent MEUNIER 68a5f7af42 STM32: move pwmout device tables to C file
In order to avoid possible multiple definitions errors, move the table
initialization to the C file instead of header file
2017-03-13 11:13:49 +00:00
Laurent MEUNIER ae139d6c22 STM32: pwm period and prescaler calculation
Correct the while loop limit and add a safe guard to avoid infinite loop.
2017-03-13 11:13:45 +00:00
Laurent MEUNIER 1f825c1877 STM32: make PWM driver into a common file
The pwmout driver is very similar for each STM32 family.

The only family specific part is defined in pwmout_device.h file.
It mainly contains few specific information:
- The mapping of PWM/TIMERS to APB1 or APB2 so that we can get the clock
- The clock calculation uses the right APB clock, which was sometimes
not the case before and could have lead to errors in case dividers were
enabled on APB clock settings. This case is now covered.
- Inactivation of inverted support on feaw families
2017-03-13 11:13:41 +00:00
Laurent MEUNIER 0789c24710 STM32 L1: Define PWM Channels in PeripheralsPins.c
As done for other families, let's define the PWM channel in the PWM
pins table definition rather than driver.
2017-03-13 11:13:37 +00:00
Vincent Coubard 6aab786ca5 Fix reference to sleep in hal_patch override
The `sleep` function as been changed into `hal_sleep` by #3607.
Unfortunately the call to `sleep` in the hal_patch for the NRF51822 has not been
updated to `hal_sleep`. The result was a link time error for targets based on
NRF51822_LEGACY compiling with the mbed OS 5 tree.
2017-03-13 11:13:33 +00:00
Russ Butler 6dde4e6316 Prevent underflow in heap size calculation
If the free memory on a device is small enough then the calculation to
determine heap size could underflow to a large value. If this happens
then malloc will never return failure and instead will cause a crash on
allocation. This patch prevents the underflow so malloc works as
expected even with low amounts of free memory.
2017-03-13 11:13:29 +00:00
Jimmy Brisson acf7012a20 Ignore FuzzyWuzzy warnings
Nobody actually cares.
2017-03-13 11:13:25 +00:00
adustm deb7be1376 DISCO_F469NI: allow the use of CAN2 instance when CAN1 is not activated 2017-03-13 11:13:22 +00:00
Jimmy Brisson feb7569da7 Add post-build hook white-list to exporters
We have scripts (written in python) that are run after a binary image is
created in the tools. These scripts are not really exportable, as they
are part of the tools and may include and use any bits of python code
they please. So we don't export them. This patch disables export
combinations that would not work because the post-binary hook is not
exported. A white-list is used for forward compatibility.
2017-03-13 11:13:18 +00:00
Mike Fiore 854d2f3fe5 Define GPIO_IP_WITHOUT_BRR for xDot platform. Resolves #3823. 2017-03-13 11:13:14 +00:00
Laurent MEUNIER 9ba340a964 STM32: change spi error to debug warning
In case the selected frequency is higher than the requested one, it is
better to send a debug warning rather than an blocking error.

In case of such warning, user may need to redefine the clock tree setting
at higher level (reducing peripheral's input clocks during init phase).
2017-03-13 11:13:10 +00:00
Simon Hughes ef6f87ab0d STORAGE: removal of unsupported tests having ported to https://github.com/ARMmbed/sd-driver basic.cpp test. 2017-03-13 11:13:06 +00:00
bcostm 7374f9cc87 Typo: update comment (GPIO_IP_WITHOUT_BRR) 2017-03-13 11:13:02 +00:00
Laurent MEUNIER ed6d03b9cc STM32: gpio SPEED - always set High Speed by default
Up to now, speed was set for outputs and alternate, but this is
also valid for input configuration.

By default, let's configure high speed.

This is done firts, because speed for some families like F1 is mixed
with Input/Output mode settings, so can be later over-ridden if needed.
2017-03-13 11:12:59 +00:00
Hovik Melikyan 6a5d2045a7 Allow to redefine nRF's PSTORAGE_NUM_OF_PAGES outside of the mbed-os source
By default the number of pstorage pages is set 1 and all addresses are
calculated in the pstorage module accordingly. Nordic recommends
changing this macro to whatever number is suitable for the app (see
https://devzone.nordicsemi.com/question/53066/what-will-be-the-starting-
address-of-pstorage-page-how-we-can-change-it/?answer=53085#post-id-5308
5) which is not quite elegant given that pstorage_platform.h is part of
the mbed-os repo. With this modification you can e.g. define
PSTORAGE_NUM_OF_PAGES on the command line, however note that you should
rebuild mbed-os with this setting as it affects pstorage_platform.c.
2017-03-13 11:12:55 +00:00
Christopher Haster 7521e30ec6 lwip: Increase timeout on tests
Sometimes when under heavy load, the CI machines can take a significant
amount of time to bring up a python process (~10s). The timeouts for
the network tests were chosen without much thought, and didn't leave
much room for this sort of delay.

This patch brings up timeouts for ntetwork tests 20s -> 60s
2017-03-13 11:12:51 +00:00