Commit Graph

267 Commits

Author SHA1 Message Date
Kamil Sroka 37ab56aafb Update nRF52840 README.md (#1796)
* Update nRF52840 README.md

* Separate diagnostic module descriptin to DIAG.md file
2017-05-22 09:28:32 -07:00
Qiang Gu ac416b4fd4 Add support for ARC EMSK (#1549)
* Add embARC EMSK BSP in third_party folder.

* Add synopsys in Makefile.am for embARC BSP

* Add platform implementation on ARC EMSK

* Add EMSK in Makefile.am and Makefile-emsk

* Add EMSK support in apps

* Modify configure.ac to add ARC EMSK.
2017-05-22 09:09:18 -07:00
Xiao Ma 064aba2ba7 Set transmit power with value passed from upper layer before transmitting. (#1789) 2017-05-21 10:48:28 -07:00
georgecpr 5da57a3a8b Add support for NXP KW41Z4 (#1774)
* NXP KW41Z4 OpenThread support
2017-05-19 12:44:59 -07:00
pvanhorn 7862f1107e Add support for the Host Power State feature. (#1772)
* Add support for the Host Power State feature.

* Fix compiler ewrrors.

* Fix compiler errors round 2.

* Add newlines to end of file.

* Address review comments.

* Arrange to send the power state response again if the first attempt fails.

* Fix compiler issue.
2017-05-19 11:33:38 -07:00
Shu Chen a246858d66 Add txpower configuration support for CC2538 platform (#1776) 2017-05-16 09:09:36 -07:00
Łukasz Duda 4436798d40 [DOC] Update nRF52840 README.md (#1769) 2017-05-15 05:55:37 -07:00
Seth Rickard 33b079893e implement radio stub functions and catch up on technical debt (#1763) 2017-05-11 22:15:06 -07:00
Robert Lubos f2af98cd8a Increase default mbedTLS heap size for nrf52840. (#1752) 2017-05-10 08:58:47 -07:00
Jonathan Hui fbfd76a990 Apply #include code style. (#1723) 2017-05-05 11:28:29 -07:00
Jonathan Hui da7ba8ba19 Require Thread Master Key to be 16 bytes. (#1724)
- Update code to use `otMasterKey` type.
2017-05-05 09:21:43 -07:00
Shu Chen 66f6e7088d Add otPlatRadioGetReceiveSensitivity() API (#1715)
* Add otPlatRadioGetReceiveSensitivity() API

* Add a new otPlatRadioGetReceiveSensitivity() API to get sensitivity value;

* Use the receive sensitivity value as the noise floor for link metric computation;

* Remove some unused noise floor related functions.

* Add SPINEL_PROP_PHY_RX_SENSITIVITY Spinel/NCP property
2017-05-04 20:38:37 -07:00
Buke Po 75b62c2b36 Add makefile to provide common build switches (#1707)
* add makefile to provide common build switches

* update copyright
2017-05-03 18:57:39 -07:00
Xiao Ma bd6e072647 Plat EFR32: Update the device name supported by JLinkGDBServer. (#1705) 2017-05-03 18:45:31 -07:00
Vaas Krishnamurthy 8d5a701adb Set steering data and enable MLE discovery response filtering. (#1685)
Enable OPENTHREAD_CONFIG_ENABLE_STEERING_DATA_SET_OOB to be able to set
steering data out of band on FFDs.

On joining device, enable filtering MLE discovery responses based on Factory assigned EUI64.
2017-05-03 13:24:02 -07:00
Buke Po 9a35b0de05 Make Network Diagnostic optional for MTD. (#1686)
* make network diagnostic optional for mtd
2017-05-01 20:07:39 -07:00
Abtin Keshavarzian 41b82d3a89 Fix typos in comments (#1688) 2017-05-01 14:46:30 -07:00
Xiao Ma a5e228bf22 Plat EFR32: Replace magic number with "OPENTHREAD_CONFIG_DEFAULT_MAX_TRANSMIT_POWER". (#1687) 2017-04-30 20:46:49 -07:00
Shu Chen 90d62a4e22 Remove some Leader/Router related features from MTD build (#1680)
* Unify the location of "#if OPENTHREAD_FTD" which include/exclude the whole file

Also correct some comments in xxx_api.cpp

* Remove Address Resolver related features from MTD build

* Remove some Leader/Router related features from MTD build

* Remove Leader/Router related APIs from MTD build

* Remove Leader/Router related functions from MTD build
2017-04-30 20:46:22 -07:00
Jonathan Hui 1eabda6a08 Change top-level namespace from 'Thread' to 'ot'. (#1664) 2017-04-27 22:29:05 -07:00
Buke Po 024c44de5c Add PSKc API (#1635)
* add pskc api

* add pskc cli

* add NCP api of PSKc

* apply PSKc from network

* implement PSKC api for windows

* add name for pskc property

* clear active and pending dataset when settings pskc
2017-04-27 16:32:34 -07:00
DuaneEllis-TI d65418c12f Add support for wrap_string.h and others (#1642) 2017-04-27 10:17:09 -07:00
Buke Po 7705bf4c22 Border agent proxy (#1590)
* initial commit for border agent proxy
2017-04-27 10:13:00 -07:00
Robert Lubos 0d84cb06f9 Fix nrf52840 linker script. (#1671) 2017-04-27 07:34:07 -07:00
Abtin Keshavarzian f392421d2c Update otThreadDiscover() to include input argument for setting Joiner flag. (#1658) 2017-04-26 11:10:51 -07:00
Jonathan Hui 7c7519f25a Fix efr32 otPlatRandomGetTrue() declaration. (#1654) 2017-04-25 13:04:12 -07:00
Shu Chen 0a830ecefe Reduce MTD code size by removing some unused MeshCoP features (#1361)
* Seperate FTD-only dataset APIs;

* Remove some unused MeshCoP functions from MTD build;

* Remove some unused CLI functions from MTD build.
2017-04-25 11:51:12 -07:00
Jonathan Hui 115b52e6c4 Require platform TRNG to provide requested output length or error. (#1650) 2017-04-25 09:22:53 -07:00
Abtin Keshavarzian 0d9e403286 Update formatting in NcpSpi and spi-slave.h files (#1648)
This commit contains node logic change. It makes some formatting
changes in the comments, also renames method/function argument/param
variable names to follow the style guideline (e.g.,
`anInputBuf -> aInputBuf`).
2017-04-24 18:46:27 -07:00
Xiao Ma b83f644cb3 Add support for SiLabs EFR32. (#1592)
* Add support for SiLabs EFR32.
2017-04-24 10:48:18 -07:00
Buke Po 957397561e enable all features on posix (#1634) 2017-04-21 08:48:39 -07:00
Jonathan Hui 9428fff1b3 Add src/core header files to PRETTY_FILES. (#1632) 2017-04-20 22:58:58 -07:00
DuaneEllis-TI 358ca8ee77 Support #1619 - MTD vrs FTD builds, and Makefile.am If/Else/Endif issues (#1620)
* Convert FTD/MTD methods and remove if/else/endif from Makefiles
2017-04-20 20:55:40 -07:00
Jonathan Hui fb30b178af Implement true random number generator on posix platform. (#1614) 2017-04-19 11:00:45 -07:00
DuaneEllis-TI 7372571276 #1599 - Update examples/platform/posix/flash.c for speed/memory reasons (#1616)
* PR-1599 - examples/platforms/posix/flash.c fixes

* Some notes:

a)  Do not change this to a for(;;) loop that writes bytes
    This takes forever and causes timeouts to occur.

The math:
    With pagesize = 8K pages, and n-pages=128
    This turns into 1 million calls to "pwrite()"
    Those 1million calls occur during startup.
    the "Thread Cert" tests, in some cases start
    over 30+ instances of the simulated app...

    Tests actually run in parallel, in some cases there are
    70 to 80 instances of the CLI app starting up. Each one
    calling write - 1 million times, writing exactly 1 byte

    That becomes super slow. Thus we write full pages
    On a powerful platform this is fast, very fast.
    On a virtual machine (ie: test-build-farm) it is slow
    Result is: The Thread Cert tests fail/timeout

b)  Do not allocate memory for the page via malloc/free.

    Reason: this causes false failures in some test modes

    Specifically when enabling the address sanitizer ...
    And running thread certification tests *in*parallel*
    The memory requirements become huge.

Background:
    The way "asan" works is this: When you free a page
    the "libasan" does not actually free the page instead
    libasan poisons the page but does not actually free the
    page, why? Because the goal to detect using the memory
    Thus ASAN is like a giant memory leak, it must hold onto
    the page so that it can detect "use-after-free"

    Next (part 2)... the CERT tests, and run in parallel there
    are cases where 70 to 80 instances of the CLI app run
    in parallel - its a huge pseudo-memory leak times 70
    Depending upon your machine you need 8 to 16gig of ram
    Virtual test boxes are often configured with much less

The solution is to use a full page on the stack
it could be a static, variable however, we are
running on Linux, we have plenty of RAM..
2017-04-18 12:45:37 -07:00
Jonathan Hui 04d3032bab Do not revert to non-volatile settings when changed by application. (#1586)
- Invalidate Active and Pending Datasets when configs are changed via APIs.
- Do not allow client to change network configurations while Thread is enabled.
2017-04-13 08:41:35 -07:00
Jonathan Hui 1733f3b825 Update CC2538 flashing instructions. (#1582) 2017-04-12 14:24:23 -07:00
Shu Chen 7eed76c781 Use a new specialized ChildInfo structure for children information persistent storage (#1572)
Create a new specialized ChildInfo structure, which will be only used for children information storage

Also update otPlatSettingsGet() to be consistent with its documentation:
* return the actual length of the setting, but not the actual length it read to aValue
2017-04-11 19:17:20 -07:00
rongli 26e9f3db8b CC2650: enable bootloader backdoor (#1555) 2017-04-06 19:45:56 -07:00
rongli 2ba9933882 not configure discovery scan duration (#1502) 2017-04-06 09:56:31 -07:00
Wojciech Bober fa92a9253c Always build platform utils library. (#1557)
This commit changes build behaviour, so that platform-utils library
is always built. This allows for using opentread in environments which
keep platform files out of openthread tree.
2017-04-05 19:50:51 -07:00
Jonathan Hui 5e34eee014 Remove private code_utils.hpp include from examples. (#1534) 2017-04-04 08:46:54 -07:00
Nick Banks 8951a336fe Logging and Raw Link Layer Cleanup (#1541)
* Logging and Raw Link Layer Cleanup

* make pretty
2017-03-31 08:52:54 -07:00
Nick Banks dfa2154958 otLwf Spinel and Logging Fixes (#1532)
* Fixes some Spinel usage in otLwf and some logging in the core library.

* Undo cc2538 config logging change

* Fix build error for nrf52840 with all logging enabled.

* Update minor version check based off feedback
2017-03-29 21:13:59 -07:00
Robert Quattlebaum 812cc838eb build: Fixes for cross-compilation. (#1527)
This commit includes two changes:

*   Removes existing `AC_NO_EXECUTABLES` from `configure.ac`, since it
    is a hack only intended to be used by the GCC project.
*   Adds a new configure argument: `--enable-no-executables-hack`,
    which restores `AC_NO_EXECUTABLES` for broken build environemnts
    which require it.
*   Removes `--target` from example makefiles, since it is only
    appropriate when compiling compilers.

As a side effect of the second change, cross compiling with the
makefiles now no longer causes the `arm-none-eabi-` prefix to be
prepended to all built executables. This change updates all of the
documentation accordingly.
2017-03-29 13:22:07 -07:00
pvanhorn 02400eecb2 Create and use an enum for Route Config mPreference. (#1525) 2017-03-29 08:49:48 -07:00
Giedrius 77fed906ac Fix otSendMacDataRequest API (#1521)
* Fix otSendMacDataRequest API

* Add otSendMacDataRequest declaration to API headers
* Move otSendMacDataRequest from thread to link API

* Update otSendMacDataRequest to otLinkSendDataRequest
2017-03-29 05:52:32 -07:00
Nick Banks 303d0ba0ad Fix Warnings in Windows Build (#1518)
* Fix WinRT function overloading

* Default Spinel Struct parameter
2017-03-28 09:20:13 -07:00
Nick Banks a4ccc9a7ee Remove _CRT_SECURE_NO_WARNINGS Usage (#1517)
* Remove usage of deprecated/unsafe CRT functions.
2017-03-28 09:19:25 -07:00
Robert Lubos 4fae0c248a Make mbedTLS heap size configurable. (#1506) 2017-03-23 01:44:24 -07:00