Commit Graph

10083 Commits (404b58c4dffdb2a61d6df485f4099219cba3f0e7)

Author SHA1 Message Date
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
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