Commit Graph

13882 Commits (mbed-os-5.7)

Author SHA1 Message Date
drewcassidy 4f1bd0e972 remove redundent 'targets.' in overrides 2018-03-14 14:45:25 -05:00
drewcassidy d3e4c537e9 add LOWPOWERTIMER and I2C_ASYNC to nrf51822 unified 2018-03-14 14:45:25 -05:00
Andrew Cassidy 132357fefe move OSHCHIP to be with other nRF51 boards 2018-03-14 14:45:25 -05:00
Andrew Cassidy 0d6abfc6d1 remove redundent device_has 2018-03-14 14:45:25 -05:00
drewcassidy 3a4535b5a1 fix typo 😖 2018-03-14 14:45:25 -05:00
drewcassidy f03be0efda Add pinout diagram 2018-03-14 14:45:25 -05:00
drewcassidy 95a6544763 Clean up board definition to conform to the target spec 2018-03-14 14:45:25 -05:00
drewcassidy dfc75a689d add board header files 2018-03-14 14:45:25 -05:00
drewcassidy 27031a949c Add target for OSHChip 2018-03-14 14:45:25 -05:00
Anna Bridge 91e6db1ea2
Merge pull request #6201 from ARMmbed/release-candidate
Release candidate for mbed-os-5.7.6
2018-02-26 11:55:24 +00:00
Cruz Monrreal II ca082bd61a Update Mbed version block for patch release 2018-02-23 17:08:31 -06:00
Maciej Bocianski 41d8f0f465 sleep_manager_racecondition: fix for slow devices
sleep_manager_racecondition test fix for devices with low CPU clock

This RP contains fix for sleep_manager_racecondition test
for very slow devices (like NRF51). It fixes the test itself
as well as side effects of fix introduced in
 #5046 (us ticker: fix fire interrupt handling)

The idea of the test was to test race condition between main thread
and interrupt handler calling the same function.
To efficiently test this, each handler call should interrupt
main thread to make race more likely.
On very slow devices (like NRF51) when we set very low ticker period
(e.g less then 1000us for NRF51) there is no much time for thread scheduling.
On such slow devices, setting period to 500 us cause that
main thread is scheduled very rarely and only handler is
constantly called making test unreliable.
Fix introduced in #5046 (us ticker: fix fire interrupt handling)
changed fire_interrupt function implementation causing more
interrupt tailing thus even less time for main thread scheduling.
After introduction of #5046 (us ticker: fix fire interrupt handling)
when running sleep_manager_racecondition test on NRF51
(with ticker1.attach_us(&sleep_manager_locking_irq_test, 500);)
test is failing with timeout due to the fact that interrupt
handler is constantly called and main thread is never scheduled.
2018-02-23 17:08:31 -06:00
Andrew Leech 8d516fdaba nrf5x: gpiote uninit only needs to be run if input pin is configured for irq (or output) 2018-02-23 17:08:31 -06:00
Mahesh Mahadevan cb8bc884a9 ff_lpc546xx: Add support for 220MHz core speed.
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-02-23 17:08:31 -06:00
Mahesh Mahadevan 6cd23941eb LPC546XX: Add support for 220MHz core speed available on LPC54628
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-02-23 17:08:31 -06:00
Christopher Haster 7eaf9da6ab retarget: Fix path behaviour without leading slash
Current behaviour ends up undefined when the constructor leaves early.
Now FilePath just discards leading slashes and otherwise asserts if the
path is bad.
2018-02-23 17:08:31 -06:00
Jimmy Brisson 0f566cade4 Correct single file excludes for some exporters 2018-02-23 17:08:31 -06:00
Martin Kojtal cd562914b4 Pull request template update
New version of the PR template.

Ideal PR should contain:

- detailed description of changes
- how it was tested
- dependencies
- PR type (one of)
2018-02-23 17:08:31 -06:00
Veijo Pesonen 05bb2b6bd0 fixup! LWIP PBUF_POOL_BUFSIZE increased to fit also IPv6 header 2018-02-23 17:08:31 -06:00
Veijo Pesonen 3b57945404 Fix WIFI-CONNECT-PARAMS-CHANNEL-FAIL Greentea test case
The test case is executed succesfully when usage of wrong channel is detected
2018-02-23 17:08:31 -06:00
Veijo Pesonen 2e27e4324b LWIP PBUF_POOL_BUFSIZE increased to fit also IPv6 header
IPv6 header requires 20 more bytes compared to IPv4 header.
2018-02-23 17:08:31 -06:00
Cruz Monrreal II 80957eb4e2 Added quotes around MBED_BOT parameter 2018-02-23 17:08:31 -06:00
Marcus Chang a2bc20f78c Make NRF52 flash work with SoftDevice
How you write and ersae the flash on the NRF52 changes depending on
whether the SoftDevice is enabled or not.

This change does a runtime check before erasing and writing, and
then chooses the correct function to perform the action.
2018-02-23 17:08:31 -06:00
jeromecoutant f6d1258d21 NETSOCKET pressure tests configuration 2018-02-23 17:08:31 -06:00
Christopher Haster 73e87a2f43 littlefs: Fix incorrect lookahead population before ack
Rather than tracking all in-flight blocks blocks during a lookahead,
littlefs uses an ack scheme to mark the first allocated block that
hasn't reached the disk yet. littlefs assumes all blocks since the
last ack are bad or in-flight, and uses this to know when it's out
of storage.

However, these unacked allocations were still being populated in the
lookahead buffer. If the whole block device fits in the lookahead
buffer, _and_ littlefs managed to scan around the whole storage while
an unacked block was still in-flight, it would assume the block was
free and misallocate it.

The fix is to only fill the lookahead buffer up to the last ack.
The internal free structure was restructured to simplify the runtime
calculation of lookahead size.
2018-02-23 17:08:31 -06:00
Przemyslaw Stekiel eb4a7bcc40 K64F lp ticker driver - calculation bug fix.
Delta calculation from lp_ticker_set_interrupt() function:
delta_us = timestamp > now_us ? timestamp - now_us : (uint32_t)((uint64_t)timestamp + 0xFFFFFFFF - now_us);

Lets assume that timestam == now_us.
Expected delta value should be 0 and in this current version is 0xFFFFFFFF.

The following condition:
timestamp > now_us
should have the following form:
timestamp >= now_us

Additionally modified us ticker driver to provide the same logic.
2018-02-23 17:08:31 -06:00
jeromecoutant ac196f1ea2 STM32 STDIO pin redefinition
wiki page https://os.mbed.com/teams/ST/wiki/STDIO updated
2018-02-23 17:08:31 -06:00
ccli8 778143f467 Refine internal_mpi_write_eccreg in ECP alter. 2018-02-23 17:08:31 -06:00
ccli8 e9be37db4b Refine crypto_zeroize/crypto_zeroize32 2018-02-23 17:08:31 -06:00
ccli8 4b33c9343b Support internal self-test for ECP alter. 2018-02-23 17:08:31 -06:00
ccli8 6c962c7c21 Remove mbedtls_internal_ecp_mul in ECP alter.
MbedTLS doesn't support point multiplication for MBEDTLS_ECP_INTERNAL_ALT acceleration configuration.
2018-02-23 17:08:31 -06:00
ccli8 d53641b564 Remove mbedtls prefix for internal functions in ECP alter. 2018-02-23 17:08:31 -06:00
ccli8 8c18a906bc Check divisor is not zero in MODOP_DIV operation in ECP alter. 2018-02-23 17:08:31 -06:00
ccli8 0de10b010d Refine code in ECP alter.
1. Add comment for unnecessary parameter 'n' in mbedtls_internal_run_eccop
2. Fix warning message with goto which causes `bypass initialization`
3. Fix comment
2018-02-23 17:08:31 -06:00
ccli8 1c01ea93da Fix warning in crypto 2018-02-23 17:08:30 -06:00
ccli8 0eb60860f6 Support ECP H/W accelerator 2018-02-23 17:08:30 -06:00
Cruz Monrreal II‰ ed6a8d8b7d Added missing bracket. 2018-02-23 17:08:30 -06:00
Cruz Monrreal II 2c1a79609c Modified 'apt-get update' to loop until successful 2018-02-23 17:08:30 -06:00
Jimmy Brisson c8305a84f4 Correct sector scraping in arm-pack-manager 2018-02-23 17:08:30 -06:00
Jimmy Brisson 35f3332933 Avoid blowing away .mbedignore files in exporters 2018-02-23 17:08:30 -06:00
PHST d5708db984 Simplify and Improve error/warning parser for arm_gcc 2018-02-23 17:08:30 -06:00
Andrew Leech 9163150e0b Avoid importing <memory> as this causes a typedef conflict on `error_t` whien compiling with gcc "-std=gnu++11" or above 2018-02-23 17:08:30 -06:00
Bilal 8f1dc9095d Formatting change - II 2018-02-23 17:08:30 -06:00
Bilal f855ef4c81 Formatting change 2018-02-23 17:08:30 -06:00
Bilal 43a0b8fbf1 Replacing i2c_xxxx(...) calls to reduce binary size and avoid any RTOS waits 2018-02-23 17:08:30 -06:00
Przemyslaw Stekiel 9ea3d2fb65 tests-events-timing - print debug info only in case of failure.
In the 'Testing accuracy of equeue semaphore' test case result is printed out in each loop iteration.
Since debug prints should not exist in the final test version I suggest to print information only in case of failure.
Additionally time needed to print single info is equal to ~25 ms (K64F/GCC_ARM). The while loop is designed to execute until 20000 ms elapses, so this print has also impact on number of times the loop is executed (number of semaphore accuracy checks).
2018-02-23 17:08:30 -06:00
Christopher Haster 9b80763dc3 equeue: Added note about using global event queues in irq 2018-02-23 17:08:30 -06:00
Christopher Haster 10c9712576 equeue: Added test for non-RTOS compilation regressions 2018-02-23 17:08:30 -06:00
Christopher Haster 47d7fc1b6d equeue: Removed RTOS dependencies when RTOS not present 2018-02-23 17:08:30 -06:00
ccli8 6dd4cf0b6d Rework us_ticker and lp_ticker
The rework includes the following:
1. Remove ticker overflow handling because upper layer (mbed_ticker_api.c) has done with it.
   This makes us_ticker/lp_ticker implementation more succinct and avoids potential error.
2. Refine timer register access with low-power clock source
2018-02-23 17:08:30 -06:00