Commit Graph

17136 Commits (37aa03611788f05901b47c9669b02daab973fd2c)

Author SHA1 Message Date
bcostm 869b47ddb3 Remove code related to timer channel 2 2018-06-15 13:30:56 +01:00
bcostm f3ea877f3a Replace HAL_GetTick 2018-06-15 13:30:56 +01:00
Vincent Coubard b80471a005 Nordic: Fix nrf sections on ARMCC
The nrf section features has different implementations for each compilers supported by mbed-os. The header guard was ruling out compiler other than GCC by checking if __GNUC__ is defined. This check is not applicable on mbed os as the ARM compiler compile sources with gnu compatibility.

This patch makes sure that the right implementation is selected for the right compiler . The previous patch has been reverted as it is not reliable.
2018-06-15 13:30:56 +01:00
Juha Ylinen 8dbd41c57f Add targets to Greentea EMAC tests
Update test configuration file for WicedInterface
2018-06-15 13:30:56 +01:00
Teppo Järvelin 33653e89e3 Review fix: - set ppp_active false if close fails in ppp disconnect. - unset sigio in ppp disconnect - take ownership of filehandle in CellularNetwork::disconnect even in case of failure 2018-06-15 13:30:56 +01:00
Teppo Järvelin 7a53ed276e Fixed ppp disconnect hangs when connection failure. 2018-06-15 13:30:56 +01:00
Amanda Butler 0d8b331eb0 Copy edit README.md
Tweak bullet's phrasing to clarify meaning
2018-06-15 13:30:56 +01:00
David Saada 4d7a15e0f1 Fix NVStore README file (changed APIs) 2018-06-15 13:30:56 +01:00
Kimmo Vaisanen 58230e0786 Lora: Check for valid ABP params
Check that ABP dev_addr and nwk_id is non-zero and keys are not null.
2018-06-15 13:30:56 +01:00
Hasnain Virk e6e3993d4a dr_range bitfield should be unsigned integer
If the value is an integer, the 4th bit is used for sign, so you can store
values upto 7 only whereas the datarate values could go upto 15. That's why
we need to turn this to an unsigned integer so that the last bit can also be used.
2018-06-15 13:30:56 +01:00
Hasnain Virk 1a074acbb5 Style changes only
Travis astyle check pointed out some of the style mismatches in the code.
Not all of them are worth changing as they make the code unreadable and
some of them are semantically wrong.

So in this commit, we have attempted to pick the most important style
mismatches and rectify.
2018-06-15 13:30:56 +01:00
Hasnain Virk c705f94e49 Moving missing public data structures
A few of the structures were missing from the storage space which is
visible topublic APIs. Suc structures are now being added.
2018-06-15 13:30:56 +01:00
Kimmo Vaisanen 05ee60f8cb Lora: All API methods should check if stack has been initialized 2018-06-15 13:30:56 +01:00
cyliangtw 790d24740a Support default tz_module for event loop & lwip 2018-06-15 13:30:56 +01:00
Kevin Bracey cfed8228eb Nanostack EMAC - avoid initialisation race
Hard fault was possible if packet reception occurred during
initialisation. Adjust start-up ordering and add NULL check to
avoid.
2018-06-15 13:30:56 +01:00
Kevin Bracey b2a6e94cd8 Kinetis EMAC: Correct TX ring pointer array size
TX pointer array was using RX ring length in its declaration.
Wasted memory if RX ring > TX ring, as is the default, but would
be broken if RX ring < TX ring.
2018-06-15 13:30:56 +01:00
Kevin Bracey cedccc7daf Kinetis EMAC: Make number of buffers configurable
16 RX buffers and 8 TX buffers is probably excessive. Nanostack
version of driver successfully used 4+4, and data pump should be
broadly equivalent.

This means that switching K64F devices from Nanostack to EMAC increases
base heap usage by 18K - observed in Nanostack border router builds.

Add a config option to make it possible to lower the number of buffers.
Defer consideration of lowering the default to later.
2018-06-15 13:30:56 +01:00
Michael Schwarcz 4a4c9069f7 Upgrade uvisor to v0.31.1 2018-06-15 13:30:56 +01:00
Jimmy Brisson 6259e81451 Add show full path option to armc6 linker
### Description
Full paths in the map file are required to have correct memap parsing.
This PR adds the option `--show_full_path` to ARMC6 in every profile.
This option only affects the map file output, so it's safe to add.
2018-06-15 13:30:56 +01:00
Kevin Bracey 7c3c8c9d01 Make Nanostack C++ constructor initialise Nanostack
Nanostack object constructor didn't actually initialise Nanostack.
Nanostack initialisation was deferred until an interface was actually
attached to the stack, which generally happened at first interface
connect.

Not normally a problem, unless you're trying to make direct Nanostack
setup calls prior to connect - some applications do this, and were
relying on ThreadInterface::initialise to do Nanostack
initialisation.

Unfortunately in 5.9 ThreadInterface::initialise no longer does
initialise Nanostack immediately, because the mesh interfaces were
aligned and integrated with the Ethernet interfaces, which did
initialisation on connect().

Make the Nanostack object constructor initialise Nanostack (as the LWIP
constructor does for lwIP), so calling Nanostack::get_instance() is the
5.9 API for Nanostack initialisation.

For future work, APIs like ns_file_system_set_root_path should be
exposed as methods of Nanostack, so everything happens with a single
Nanostack::get_instance().file_system_set_root_path().
2018-06-15 13:30:56 +01:00
jeromecoutant aba7367d8b ISM pin configuration is now in ISM driver json file 2018-06-15 13:30:56 +01:00
jeromecoutant 34bfb084c4 Add ISM43362 driver support for STM32 wifi DISCO boards
2 DISCO boards:
- DISCO_F413ZH
- DISCO_L475VG_IOT01A

3 tests supported:
- tests-netsocket-tcp
- tests-netsocket-udp
- tests-network-wifi
2018-06-15 13:30:56 +01:00
Mika Leppänen f0bea4b0a9 Fixed DNS resolution in case all sendto operations fail
DNS resolver now counts how many sendto operations are successful
during one DNS server attempt cycle (attempting to contact DNS
servers from 0 to last index, including stack specific ones). If all
socket sendto operations fail, DNS resolution is aborted.

If one or more are successful, DNS resolution is continued until
total network attempts count is reached or all sendto operations
fails during a cycle.
2018-06-15 13:30:56 +01:00
ccli8 156e8a012a Remove superfluous MOVT in mbed_start_application/start_new_application 2018-06-15 13:30:56 +01:00
ccli8 a77e4072b2 Fix mbed_start_application on Cortex-M23
1. M23 doesn't support ICTR and supports up to 240 external interrupts.
2. Fix reset of SHPR
3. Fix inline assembly compile error with ARMC6
2018-06-15 13:30:56 +01:00
ccli8 4f9de80311 Fix start_new_application compile error on Cortex-M23
With "mov r2, #0", compile OK with GCC_ARM, but failed with ARMC6.
With "ldr r2, =0", compile OK with ARMC6, but failed with GCC_ARM.
Finally, with "movw r2, #0"/"movt r2, #0", compile OK with both ARMC6 and GCC_ARM.
2018-06-15 13:30:56 +01:00
ccli8 88259ac42f Support mbed_start_application for Cortex-M23 2018-06-15 13:30:56 +01:00
Andrew Leech 5d751dfb8f Move mbed_lib.json from targets folder to feature_ble folder The functionality added all affects BLE features in use so this location is a better fit. 2018-06-15 13:30:56 +01:00
Andrew Leech 4dc172b875 Expose softdevice configurations via new nordic-ble library definition file 2018-06-15 13:30:56 +01:00
Andrew Leech c0341fa363 Allow configuration (via defines) of some of the key settings for the NRF51 softdevice. * CENTRAL_LINK_COUNT * PERIPHERAL_LINK_COUNT * gatts_enable_params.attr_tab_size * gatts_enable_params.service_changed * common_enable_params.vs_uuid_count
These settings control the range of functionality enabled in the softdevice as well as ram consumption.
In particular reducing these values is critical to enable usage of 16K nrf51 devices.
2018-06-15 13:30:56 +01:00
Jimmy Brisson 752b6c2efe Use TerminalNotifier in singletest 2018-06-15 13:30:56 +01:00
Cruz Monrreal II 40cc4e3e64 Updated makefile exporter to not rely on enumerating over map. No longer supported in Py3. 2018-06-15 13:30:56 +01:00
Martin Kojtal 9ed564ef07 error: fix undeclared memcpy
Some targets do not get string header file in, results in the warning:
implicit declaration of function 'memcpy'
2018-06-15 13:30:56 +01:00
jeromecoutant 00e3e4165f STM32 : few targets does not support LPTICKER 2018-06-15 13:30:56 +01:00
ccli8 0b1faf1db2 Fix mbed_crc_ctor is missing in some MbedCRC constructor
This error leaves MbedCRC/_mode uninitialized and may cause mbed-os-tests-mbed_drivers-crc/
Test SD CRC polynomials failed.
2018-06-15 13:30:56 +01:00
Yossi Levy 57ea7e188f Fixing some coverity issues. 2018-06-15 13:30:56 +01:00
Marc Emmers 32ecbb71b5 Ticker test: Add ticker_irq_handler call because the time reaching the previous interrupt_timestamp would have triggered one anyway 2018-06-15 13:30:56 +01:00
Marc Emmers 8b1bcc31dc Only schedule mbed_ticker interrupt if queue->head is changed
Reverts change from commit 1057720114
2018-06-15 13:30:56 +01:00
Olli-Pekka Puolitaival 4146eab75e Check that no GPL licence inside code 2018-06-15 13:30:56 +01:00
Andrew Leech 2ba88ba8f6 Redirect NRF asserts to mbed error() in TARGET_NRF5x and SDK 14.2 Add related details to TARGET_NRF5x Readme's 2018-06-15 13:30:56 +01:00
Andrew Leech cee87d9cef Comment out the assert test that requires non-existent symbols from linker 2018-06-15 13:30:56 +01:00
Andrew Leech 5759e17a85 Only enable DEBUG_NRF_USER when NDEBUG is not set 2018-06-15 13:30:56 +01:00
Andrew Leech 2615631a4b Address known typo in nrf sdk 11
ref: https://devzone.nordicsemi.com/f/nordic-q-a/14000/nrf_drv_adc-c-doesn-t-compile-with--ddebug_nrf
2018-06-15 13:30:56 +01:00
Andrew Leech 97ba13b773 Enable ASSERTS's in nrf sdk to catch coding errors.
These will now flow through to mbed standard error handling.
2018-06-15 13:30:56 +01:00
jeromecoutant 87c14d3659 DISCO_F413ZH : pin value error 2018-06-15 13:30:56 +01:00
jeromecoutant f2901a42c3 DISCO_F413ZH : map SPI3 to WIFI module 2018-06-15 13:30:56 +01:00
Vladimir Umek ee0d0f9c02 RTX5 (Cortex-A): exception handling restructured, post processing moved after context save. 2018-06-15 13:30:56 +01:00
Vladimir Umek f5dfc74af2 RTX5: fixed nesting interrupt handling (Cortex-A) 2018-06-15 13:30:56 +01:00
Vladimir Umek 10ec047efc RTX5: ignoring CPUID field in GIC implementation updated interrupt handler for GCC and IAR 2018-06-15 13:30:56 +01:00
Vladimir Umek bbcf5f1aba RTX5: disabled OS Tick interrupt during post processing in IRQ handler for Cortex-A devices 2018-06-15 13:30:56 +01:00