Commit Graph

13843 Commits (374b705d969df026a8049cfabbd72d17784c38c3)

Author SHA1 Message Date
adustm 374b705d96 Call to specific _wrap_sbrk to support 2 region model for heap and stack 2018-03-14 14:48:09 -05:00
Ashok Rao 769a566e9f ODIN MTB LEDs Fix 2018-03-14 14:48:09 -05:00
Maciej Bocianski fd2c714019 us_ticker_irq_handler call optimization 2018-03-14 14:48:09 -05:00
Martin Kojtal d43354f506 us ticker: fix fire interrupt handling
Few targets need more than just pending IRQ set. They include some flags to be
set that are checked in IRQ handler. This is the case for targets in this
commit.
2018-03-14 14:48:09 -05:00
Filip Jagodzinski 8bfc1668f6 Tests: Drivers: TimerEvent: Add tests 2018-03-14 14:48:09 -05:00
Filip Jagodzinski 9ebdd5fc13 Drivers: TimerEvent: Update API docs 2018-03-14 14:48:08 -05:00
Fahim Alavi 5bf917acaa Support added for R410M Changes
target added r410m

Spaces removed

Trace updated
2018-03-14 14:48:08 -05:00
Christopher Haster 30d29ca0bb littlefs: Fixed handling of root as target for create operations
Before this patch, when calling lfs_mkdir or lfs_file_open with root
as the target, littlefs wouldn't find the path properly and happily
run into undefined behaviour.

The fix is to populate a directory entry for root in the lfs_dir_find
function. As an added plus, this allowed several special cases around
root to be completely dropped.
2018-03-14 14:48:08 -05:00
Christopher Haster a4e48ffd23 Revert "Added pretty bar printing for compile output"
This reverts commit 471d99c68f.
2018-03-14 14:48:08 -05:00
Marcus Chang 10550884ac Add TRNG for NRF52832
Use SoftDevice API to get random numbers when present and active,
otherwise read random numbers directly from TRNG peripheral.
2018-03-14 14:46:55 -05:00
drewcassidy 597f7245d5 move device_has to OSHCHIP specifically and define device name. These should probably move to the unified target at some point but is outside the scope of this PR 2018-03-14 14:45:25 -05:00
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