Commit Graph

10074 Commits (0789c24710938e350e1f28c1cca51f53234f43a7)

Author SHA1 Message Date
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
U-ONSEMI\\fg64rh 86fa3efa15 Conflict resolved 2017-03-13 11:12:46 +00:00
Pierre-Marie Ancele 44c60b55a6 Use #if defined TARGET_STM32L4 2017-03-13 11:12:42 +00:00
Pierre-Marie Ancele c57bce96b6 Fix GPIOG usage of STM32L4 by activating VDDIO2 power supply 2017-03-13 11:12:38 +00:00
jeromecoutant 14065c34a8 STM32 remove warning in hal_tick_32b.c file 2017-03-13 11:12:34 +00:00
adustm 5327930244 fix for issue #3715: correction in startup files for ARM and IAR, alignment of system_stm32f429xx.c files 2017-03-13 11:12:30 +00:00
Martin Kojtal 305f5c491e Merge pull request #3882 from ARMmbed/release-candidate
Release candidate for mbed-os-5.4.0-rc2
2017-03-05 18:03:02 +00:00
Martin Kojtal 57b4d80e88 Update MBED_LIBRARY_VERSION to v138 2017-03-03 17:52:33 +00:00
Mohammad Azim Khan 8a0d18403a Increase HEAP size for UBLOX_EVK_ODIN_W2 and NUCLEO_F429ZI 2017-03-03 17:52:33 +00:00
Martin Kojtal ee3e503c77 Export: fix issue #3865 - cmsis-dap swd
From JTAG to SWD by default. This was causing flashing error.
2017-03-03 17:52:29 +00:00
Christopher Haster 2bb4d3a925 Updated includes of renamed platform header files 2017-03-03 17:52:25 +00:00
Jimmy Brisson 41aff2422c Add the FPU field to the <Cpu> tag it Keil
Recently the Keil IDE has released version 5.23. This version requires
the FPU to be set as part of the <Cpu> tag in the .uvprojx (XML project
file). This patch adds the appropriate FPU settings based on the
trailing F (FPU enabled) or FD (Double precesion FPU enabled) string of
the core.
2017-03-03 17:52:21 +00:00
Sam Grove 3a27568a50 Merge pull request #3773 from geky/fs-filesystem-simple-3
Filesystem: Restructure the filesystem api to be consistent with mbed OS
2017-02-24 18:25:03 -06:00
Christopher Haster 129bae4f7d Filesystem: Added test for basic filesystem operation on cpp api 2017-02-24 15:28:43 -06:00
Sam Grove 262234db27 Merge pull request #3817 from AlessandroA/update_uvisor
Update uVisor to v0.27.0
2017-02-24 14:04:26 -06:00
Christopher Haster 274460bef5 Filesystem: Adopted dynamic allocation of files over static allocation 2017-02-24 12:03:14 -06:00
Christopher Haster c4649afba5 Filesystem: Last minute changes due to feedback on directory iteration
- Changed to use dirent structure type
- Fixed memory leak in closedir
2017-02-24 12:03:14 -06:00
Christopher Haster 7ca4eabf77 Filesystem: Fixed integration with mbed 2 builds 2017-02-24 12:03:14 -06:00
Christopher Haster b9122c73f9 Filesystem: Integrate error handling between c++/posix layers 2017-02-24 12:03:09 -06:00
Christopher Haster c6b1fcbfa5 Filesystem: Integrate filesystem classes with common mbed.h entry point 2017-02-24 11:56:45 -06:00
Christopher Haster eea5c9f08a Filesystem: Integration with retarget code 2017-02-24 11:55:37 -06:00
Christopher Haster e5197ceaca Filesystem: Initial integration with the FATFileSystem 2017-02-24 11:53:17 -06:00
Christopher Haster ee3e920ed1 Filesystem: Moved toolchain-specific types into retarget.h 2017-02-24 11:42:32 -06:00
Christopher Haster a5245e32fe Filesystem: Created prototypical filesystem class
Intention is to make filesystem api and network stack api consistent
as current designs diverge greatly. Attempted to change as little as
possible outside of api structure.
2017-02-24 11:41:34 -06:00
Sam Grove 9844a390d9 Merge pull request #3762 from simonqhughes/ms_20170213_fs_integration
STORAGE: Merging feature-storage branch commits to master
2017-02-24 11:37:42 -06:00
Simon Hughes 794c6f8d04 STORAGE: move fat_file_system test into external repository as this is an SDCard dependent test. 2017-02-24 10:59:46 +00:00
Christopher Haster 2cf67734c4 Filesystem: Remove invalid write to unallocated memory in heap block device 2017-02-23 20:41:38 -06:00
Sam Grove 371aaa53c3 Merge pull request #3789 from yogpan01/master
Separating CoAP library from mbed-client-c
2017-02-23 15:44:58 -06:00
Sam Grove 2e5f2e96fb Merge pull request #3818 from adbridge/master
Add new script to automate compilation of all mbed-os 2 targets in online IDE
2017-02-23 15:44:41 -06:00
Sam Grove e9880c72dc Merge pull request #3830 from ARMmbed/dummy_definitions
Add NS_DUMMY_DEFINITIONS_OK
2017-02-23 15:18:33 -06:00
Christopher Haster 2d41da2c63 Storage/lwip: Renamed lwip/errno.h -> lwip/lwip_errno.h to avoid conflicts 2017-02-23 14:23:39 -06:00
Anna Bridge 415486e780 Removed unecessary exception and replaced with a logging error. 2017-02-23 19:02:55 +00:00
Anna Bridge e95092c91a Address review comments
Replace use of print and write with logging (with different levels).
Add the ability to choose the logging level on the command line.
Fix the exclusion of uARM from compilation.
Remove print_on_fail from run_cmd() functions, now use logging.
2017-02-23 17:51:23 +00:00
Simon Hughes 410c2f8dc0 STORAGE: rebased with master and fixed FATFileSystem.cpp merge conflicts. 2017-02-23 16:50:34 +00:00
Simon Hughes 7b7db588ff STORAGE: remove RTOS_9 test from tests.py. 2017-02-23 16:39:53 +00:00
Simon Hughes 9a1966fadb STORAGE: fixes for BlockDevice test cases. 2017-02-23 16:39:51 +00:00
Christopher Haster ea5ac4bb4d Storage: Last minute changes to the block device api
- Remove write set of functions
  - Caused confusion with small benefit
  - Trivial to add later
- Remove unused error codes
  - Initial expirementation indicates most of these may not be useful
  - Trivial to add later
- Removed bd_error_t
  - Carries to additional type information, int already carries
    sufficient connotation
  - Trivial to add later

per @c1728p9, @sg-
2017-02-23 16:39:49 +00:00
Simon Hughes 5a977eff30 STORAGE: PR 3762 fix to remove FAT_FS, SD_FS, FS_LIBRARY from tools scripts. 2017-02-23 16:39:46 +00:00