Commit Graph

9590 Commits (mbed-os-5.3)

Author SHA1 Message Date
Martin Kojtal 5faf4b26c5 Merge pull request #3837 from ARMmbed/release-candidate
Release candidate for mbed-os-5.3.6
2017-02-27 14:51:58 +01:00
Anna Bridge e0b27cc28e Update MBED_LIBRARY_VERSION to v137 2017-02-24 15:01:23 -06:00
TomoYamanaka e46ff4d907 Bug fix of initial value of interrupt edge in "gpio_irq_init" again
I modified the bug in PR #3289. But It seems not enough the changes.
For the reason, It occured the following issue.
https://github.com/ARMmbed/mbed-os/issues/3694
So I reviewed and re-modified about the setting of initial value of interrupt edge in "gpio_irq_init".
2017-02-24 13:25:02 +00:00
pradeep-gr e5e32ac348 NCS36510: I2C idle delay of 1us
It is added between I2C commands as I2C_COMMAND_FIFO is too fast to push commands out.
2017-02-24 13:24:58 +00:00
0xc0170 6e4d261df8 NXP KL43Z/KL27Z: fix spi format bits check
Fixes #2989. It was always true for valid values (if its not 8 neither 16 bits, fail).
2017-02-24 13:24:54 +00:00
Christopher Haster 243d47f9fc events: Increased test tolerance to +-5ms 2017-02-24 13:24:50 +00:00
Christopher Haster 1b0fad4bd0 events: Added better handling of desynchronized timers in platform layer
An odd bug (c0951c9) in the NCS36510 ticker code caused the timer/ticker
classes to become desynchronized. Updated the handling to not assume the
timers are perfectly in synch. This will increase the event's tolerance of
less robust platforms.
2017-02-24 13:24:46 +00:00
Christopher Haster e0ae5e57d8 NCS36510: Fixed drift in ticker interrupt
The NCS36510 is limited to 16bit timers. Construction of larger
intervals is performed in software by counting the number of 16bit
intervals that pass.

Either this counting takes a bit of time, or there is a math error
somewhere (maybe a long critical section?), because there is a
roughly ~1us delay between when the interrupt occurs and the ticker
progresses onto the next 16bit interval. This is normally a completely
reasonable error, except that the error accumulates. After a while,
the equeue tests find themselves with tens of milliseconds of error.
To make matters worse, this error is random because of other interrupts
occuring in the system, making the exact issue quite a bit difficult
to track down.

This fix drops the software counter in favor of just recalculating
the next delay interval from the target time and value of the running
timer. The running timer used to calculate the current tick is left to
overflow in hardware and doesn't have this drift.
2017-02-24 13:24:42 +00:00
Christopher Haster 668e91f2cb events: Added equeue platform timing tests
Tests the timer/semaphores at a lower level than the event queue,
which removes a layer of concerns from issues in the rtos timing.
2017-02-24 13:24:37 +00:00
adustm 12c498ad9b Bug fix to fullfill 64bytes transfer in HID 2017-02-24 13:24:33 +00:00
Laurent MEUNIER 9b89b0632a STM32: spi_frequency table index fix
In case of prescaler_rank was 0, a -1 index was being used,
which resulted in initialization of the Init.BaudRatePrescaler with
random values.

Now let's better check index and avoid -1 operation, so that prescaler_rank
can be only from 0 to "last_index".
2017-02-24 13:24:29 +00:00
jeromecoutant 182c9bfaff STM32F7 : remove multiple HSE_VALUE define value 2017-02-24 13:24:25 +00:00
jeromecoutant 251545215e STM32L4 HAL update for RTC Wake Up Timer 2017-02-24 13:24:21 +00:00
ccli8 6538fd6fb7 Support exporting IAR project 2017-02-24 13:24:18 +00:00
ccli8 d60057e9ef Change sbrk() allocation to be 32-byte aligned 2017-02-24 13:24:14 +00:00
ccli8 684e5f059d Remove power-down support from us_ticker 2017-02-24 13:24:10 +00:00
pbrier 7697432377 Added __packed macro to be compatible with GCC compiler, in order to build USB libs with GCC_ARM 2017-02-24 13:24:06 +00:00
Martin Kojtal bcf7085d85 Merge pull request #3755 from ARMmbed/release-candidate
Release candidate for mbed-os-5.3.5
2017-02-14 10:54:15 +01:00
Martin Kojtal bd70614c07 Update MBED_LIBRARY_VERSION to v136 2017-02-13 13:27:22 +00:00
ccli8 c9bce8fdc8 Fix USB EP setting error in USBAudio
NUC472/M453 USB doesn't support configuration of the same EP number for IN/OUT simultaneously.
2017-02-13 13:27:18 +00:00
Jimmy Brisson 907e7db562 Fix access before variable defined bug in test_api
The worker_result variable was not guaranteed to have a `'result'` or
`'reason'` key and accessing them before testing for them could result
in an error when they are not provided. This patch changes the checks to
prevent check for their existence before accessing them.
2017-02-13 13:27:15 +00:00
pradeep-gr 5f726b957d NCS36510: spi_format function bug fix 2017-02-13 13:27:10 +00:00
Sarah Marsh cdbd0ff31c Add IAR export support for NUCLEO_F207ZG 2017-02-13 13:27:06 +00:00
Russ Butler ecbafafffc Enforce device_name is valid in targets.json
Add a CI test ensure that device_name exists inside the pack index.
2017-02-13 13:27:02 +00:00
Russ Butler fcb2f21483 Fix or remove invalid device names
The field device_name is intended to match that of a target in a
device family pack. Remove this field for devices which do not have
a pack. Fix the name for devices that have the name incorrect. Update
IAR definitions for device which no longer have a device_name but
still need to have support for the IAR exporter.
2017-02-13 13:26:57 +00:00
Russ Butler 45fa0f28b1 exporters: allow target name to be used for IAR
Allow the IAR exporter to fall back to a target's name if the
device_name entry is missing.
2017-02-13 13:26:55 +00:00
Brian Daniels 62b61505ae Adding case insensitive 'error' detection
GCC Assembler errors were being missed because it prints 'error'
with a captial 'E'. This change allows the 'e' to be either lower
case or upper case.
2017-02-13 13:26:51 +00:00
adustm a7a3ae2c55 Modify forder structure so that targets with the same device can share files 2017-02-13 13:26:47 +00:00
JojoS 2cbc35d58d Fix for #2884, LPC824: export to LPCXpresso, target running with wrong clock speed
SystemInit() was called condititionally, but necessary defines were not
set in mbed. Calling SystemInit() unconditional now.
Removed also conditiional calls to legacy CodeRed lib.
2017-02-13 13:26:42 +00:00
Jaeden Amero 0bd09b0189 uVisor: Standardize available legacy heap and stack
With the RTOS, the STACK_SIZE specified here is unrelated to the stack
size available for the main thread (that runs pre_main). Save memory by
reducing the stack size to a more reasonable amount.

On uVisor, HEAP_SIZE is both a minimum available and maximum available
heap size. The heap can't grow beyond the end of the heap into the
neighboring stack. On all uVisor-supported platforms, guarantee at least
0x6000 bytes of heap space. This increases the portability of uVisor
applications as the memory available for legacy heap allocations is
guaranteed. This helps to avoid out of memory errors on platforms that
were previously guaranteeing less memory.
2017-02-13 13:26:38 +00:00
Brian Daniels de47c55a19 Fixing uvisor defines to fix build issues 2017-02-13 13:26:35 +00:00
Anna Bridge 0bb8e2bc10 Updated to allow for new directory structure for mbed-dev source.
Fixed issue where some deleted files/folders where not being removed from
 the repo.
 Removed code no longer used/needed.
2017-02-13 13:26:32 +00:00
Laurent MEUNIER 32137fa275 STM32: I2C: reset state machine
this I2C IP is meant for automatic STOP, based on programmed number
of bytes to be sent or receivede, not a user triggered STOP.
So the state machiine needs to be reset in case we use this I2C mbed
unitary API (start / byte_write / byte_read / stop).
2017-02-13 13:26:28 +00:00
adustm d085d33dbe STM32F302x8 folder struct 2017-02-13 13:26:25 +00:00
adustm 5cf85171fe STM32F334x8 folder struct 2017-02-13 13:26:20 +00:00
adustm 4159c70507 STM32F303xC folder struct 2017-02-13 13:26:16 +00:00
adustm d98aef9e49 STM32F303x8 folder struct 2017-02-13 13:26:13 +00:00
adustm 351f7d65f4 STM32F303xE folder structure modification 2017-02-13 13:26:09 +00:00
adustm 1b972d53a4 STM32L432xC folder structure rework 2017-02-13 13:26:04 +00:00
adustm 022ba3d507 STM32L476xG STM32L486xG folder structure modification 2017-02-13 13:26:00 +00:00
adustm ecec5f0750 STM32F410xB folder structure update 2017-02-13 13:25:56 +00:00
adustm 3e117c125e STM32F401xE folder structure update 2017-02-13 13:25:52 +00:00
adustm f06c46bca4 STM32F469xI folder structure update 2017-02-13 13:25:48 +00:00
adustm bdf504f7c1 STM32F412xG folder structure update 2017-02-13 13:25:45 +00:00
adustm 5ef202c977 STM32F407xG folder structure update 2017-02-13 13:25:41 +00:00
adustm dc8a83ab1e STM32F401xC folder structure update 2017-02-13 13:25:38 +00:00
adustm c2ca2fdb95 STM32F429 / F439 folder rework 2017-02-13 13:25:34 +00:00
adustm ec8fccc40f STM32F411xE folder structure update 2017-02-13 13:25:30 +00:00
adustm 788fcd7663 STM32F446xE folder structure update 2017-02-13 13:25:26 +00:00
Jimmy Brisson 810d502c7c Add core to uvision exporter template
Strip trailing F's and D's off of the Cputype in uvision
2017-02-13 12:02:40 +00:00