Commit Graph

590 Commits

Author SHA1 Message Date
Jonathan Hui 8a037c8aa5 [travis] add build checks for qpg6095 platform (#3567) 2019-02-08 08:41:47 -08:00
Łukasz Duda 070fd834e8 [nrf52811] add support for nRF52811 platform (#3566) 2019-02-08 08:41:22 -08:00
RaKu bfe0c492d9 [nrf52840] disable compilation of unused transports (#3561)
Add DISABLE_TRANSPORTS switch which disables build of all transports and examples using them.
Disable compilation of USB and UART transports if NCP_SPI switch is set. This also disables
the build of CLI example.
2019-02-07 08:42:27 -08:00
Abtin Keshavarzian 29d637683f [settings-flash] ensure SETTINGS_CONFIG_PAGE_NUM >=2 (#3416)
This commit adds code to ensure `SETTINGS_CONFIG_PAGE_NUM` is at
least two. This helps simplify the code and also address
Coverity warnings for unreachable code.
2019-02-04 20:46:23 -08:00
Oleksandr Grytsov c31ab99080 [samr21] Define SETTINGS_CONFIG_PAGE_NAME with const (#3491)
Currently SETTINGS_CONFIG_PAGE_NAME is defined indirectly by addresses of
__d_nv_mem_start and __d_nv_mem_end. But such definition doesn't allow to
perform compile time sanity check. Define this macro with const value 16.

Signed-off-by: Oleksandr Grytsov <al1img@gmail.com>
2019-02-04 18:24:37 -08:00
Oleksandr Grytsov e7a6bde56d [samr21] Implement otPlatLog for SAMR21 XPLAINED PRO board (#3491)
Use EDBG DGI SPI interface to put log.

Signed-off-by: Oleksandr Grytsov <al1img@gmail.com>
2019-02-04 18:24:37 -08:00
Oleksandr Grytsov 513b0f8b8d [samr21] Pass ack frame to otPlatRadioTxDone (#3491)
SAMR21 RF doesn't provide ACK frame payload. Create it manually and pass to
otPlatRadioTxDone.

Signed-off-by: Oleksandr Grytsov <al1img@gmail.com>
2019-02-04 18:24:37 -08:00
Oleksandr Grytsov cf7b57a5cf [samr21] Set RF state to OT_RADIO_STATE_RECEIVE on tx finished (#3491)
OT doesn't always call otPlatRadioReceive to set rx state explicitly. It
causes RF is in wrong state in some cases. SAMR21 RF is switched to
rx state internally when tx is finished and OT platform radio state should
be updated accordingly. This fix is set sState to OT_RADIO_STATE_RECEIVE
when tx is done.

Signed-off-by: Oleksandr Grytsov <al1img@gmail.com>
2019-02-04 18:24:37 -08:00
Oleksandr Grytsov f304177726 [samr21] Add hardware acceleration for the AES block cipher (#3491)
samr21 has HW aes-128 module. It couldn't be used before as mbedtls uses
256 bit random generator. Recently mbedtls introduces
MBEDTLS_CTR_DRBG_USE_128_BIT_KEY flag which makes mbedtls to use 128 bit
random generator. It limits the security of generated keys but allows
to use HW aes-128 module for encrypt/decrypt 802.15.4 frames.

Signed-off-by: Oleksandr Grytsov <al1img@gmail.com>
2019-02-04 18:24:37 -08:00
Oleksandr Grytsov 0073a49dbd [samr21] Update README.md to latest ASF 3.45.0 (#3491)
* update reference to ASF 3.45.0 and gcc 7.3.1
* update other links

Signed-off-by: Oleksandr Grytsov <al1img@gmail.com>
2019-02-04 18:24:37 -08:00
Oleksandr Grytsov c4a7e8570d [samr21] Add possibility to define board with command line (#3491)
By default Makefile-samr21 builds for SAM R21 Xplained Pro board. Another
board can be specified with BOARD variable through command line:

    make -f examples/Makefile-samr21 BOARD=<TARGET_BOARD>

Currently supported following boards: SAMR21_XPLAINED_PRO,
SAMR21G18_MODULE, SAMR21B18_MODULE.

Signed-off-by: Oleksandr Grytsov <al1img@gmail.com>
2019-02-04 18:24:37 -08:00
Oleksandr Grytsov 9fee87c071 [samr21] Remove memcpy from otPlatRadioTransmit (#3491)
samr21 rf driver requires that first byte of transmit buffer should be
psdu length. The psdu was copied to a local buffer with one byte shift then
the local buffer was passed to rf driver. This copying is removed by
extending length of sTransmitPsdu by 1 byte and use &sTransmitPsdu[1] as
transmit frame psdu.

Signed-off-by: Oleksandr Grytsov <al1img@gmail.com>
2019-02-04 18:24:37 -08:00
Oleksandr Grytsov 68d527a530 [samr21] Fix compilation issue with gcc 7.3.1 (#3491)
Internal compiler.h defines __always_inline macro and includes cdefs.h
indirectly. cdefs.h also defines this macro. As result we have redefined
macro error which can't be suppressed. The fix is to use custom compiler.h
which is copy of ASF compiler.h bu defines __always_inline only if it is
not yet defined.

Signed-off-by: Oleksandr Grytsov <al1img@gmail.com>
2019-02-04 18:24:37 -08:00
Jeffrey Hayes 2c866feb48 [efr32] random number generation fix (#3367) 2019-02-04 15:59:18 -08:00
erja-gp 392cfecff8 [qpg6095] add Qorvo QPG6095 platform (#3525) 2019-02-04 10:50:27 -08:00
Yakun Xu e68e86317e [ci] test with time sync and header ie (#3514)
This commit adds the missing test with ie present by enabling TIME_SYNC
feature, so that IE code are covered.
2019-02-01 16:08:43 -08:00
Yakun Xu 15d1603639 [build] clean up switches for POSIX platform (#3517) 2019-01-29 08:54:09 -08:00
Jiacheng Guo e893db15b5 [build] add platform udp build switch (#3450) 2019-01-28 10:43:34 -08:00
Jonathan Hui 560d9350b2 [emsk] set SETTINGS_CONFIG_PAGE_NUM = 2 (#3510) 2019-01-24 18:20:27 -08:00
Yakun Xu 9094c12652 [code] add static assert (#3422) 2019-01-23 21:50:19 -08:00
Yakun Xu 3fabc4660c [slaac] handle slaac internally (#3484) 2019-01-22 23:34:26 -08:00
Yakun Xu f40f49ff32 [dhcp] remove dhcp server api (#3476) 2019-01-18 11:34:40 -08:00
Zhanglong Xia eb7a910638 [efr32] add support for OQPSK modulation in 915MHz band (#3315) 2019-01-18 05:43:51 -08:00
Jonathan Hui 1056c7c93a [style] fix typos (#3451) 2019-01-11 09:03:10 -08:00
Piotr Szkotak cc0bcd3d68 [nrf52840] do not include libjlinkrtt in the SDK version of OT libs (#3445)
Signed-off-by: Szkotak, Piotr <Piotr.Szkotak@nordicsemi.no>
2019-01-09 15:49:47 -08:00
Yakun Xu 3018886993 [windows] fix warnings (#3435) 2019-01-07 09:04:50 -08:00
Kamil Sroka 1b4d05ee37 [nrf52840] increase max children count (#3433) 2019-01-04 08:47:28 -08:00
Kamil Sroka 979b50522d [nrf52840] update nRF52840 radio driver to version 1.2.3 (#3432) 2019-01-04 08:45:41 -08:00
rongli 328239878d [data-poll-manager] check user-specified poll period (#3401) 2018-12-27 22:35:57 -08:00
Jiacheng Guo 0e31b0d617 [nrf52840] allow change state handler config in command line (#3402) 2018-12-27 15:51:15 -08:00
Jiacheng Guo 52c06c6858 [build] option to disable executable build (#3391) 2018-12-24 15:10:30 -08:00
Jiacheng Guo 71ef316bbd [mbedtls] build switch to disable mbedtls in makefile (#3389) 2018-12-21 09:32:57 -08:00
Jeff Bumgardner 782597fe1a [docs] Doxygen fix and efr32 README update (#3393) 2018-12-21 09:23:38 -08:00
Rongli Sun a7f4283e5d [cc2538] add 1K stack space (#3385)
In the observed deepest CoAP process when handling JOIN_FIN, the large
local variables in the nested calls may take up to 2.5K, among with
the three local CoAP headers would add about extra 1K since #3210 which
increases CoAP header from 128 to 512.

This commit adjusts stack to be of 5K by increasing 1K to help commissioning
process goes correctly.
2018-12-18 09:29:39 -08:00
Zhanglong Xia 4279dbc14c [efr32] add support for RTT log (#3285) 2018-12-14 09:25:41 -08:00
Yakun Xu de63012c9e [dhcp6-client] remove dhcp6 client api (#3287) 2018-12-12 09:58:15 -08:00
Jonathan Hui c06179938c [examples] always build examples/platforms/utils (#3355) 2018-12-07 08:39:35 -08:00
Piotr Szkotak 6e25f6f15d [nrf52840] add support for the USB DFU software trigger (#3312) 2018-12-03 09:09:53 -08:00
Łukasz Duda 9e5df47e61 [nrf52840] make sure nrf_mbr.h is in include path (#3330) 2018-11-28 11:34:19 -08:00
Jonathan Hui e14d763e2e [style] relocate OT_UNUSED_VARIABLE (#3299) 2018-11-17 12:04:41 -08:00
Jonathan Hui f6afc5599a [style] apply OT_UNUSED_VARIABLE (#3299) 2018-11-17 12:04:41 -08:00
Łukasz Duda 5da7469269 [nrf52840] update README.md (#3290) 2018-11-13 15:16:08 -08:00
Joseph Newman bf6e854a85 [efr32] add missing volatile qualifiers (#3292) 2018-11-12 18:23:19 -08:00
Łukasz Duda 9f7bc3a6ec [posix] enable sntp client by default (#3289) 2018-11-12 15:55:16 -08:00
Łukasz Duda 90dd7a42d0 [nrf52840] fix uart configuration of HWFC (#3277) 2018-11-12 15:52:20 -08:00
Zhanglong Xia 8440656f88 [cc1352] fix clearing source match entry issue (#3279)
Fixes the same issue on platform cc2650 and cc2652
2018-11-09 06:38:27 -08:00
Yakun Xu b9b57cc9e2 [core] rename UDP proxy to UDP forward (#3266)
Thread defines UDP proxy as a feature to allow secure, two-way
communication of Thread Management Commands between the Commissioner
and any Thread Device in the Thread Network via the Border Agent.

This commit renames the existing UDP proxy feature which forwards UDP
packets back and forth between Host and NCP to UDP forward.
2018-11-05 20:48:08 -08:00
Zhanglong Xia f8909593a9 [api] update message API to create message with priority (#3199) 2018-11-05 12:48:39 -08:00
Łukasz Duda 4a89cc63b6 [sntp] initial implementation of sntp client (#3237) 2018-11-03 08:11:05 -07:00
Yakun Xu 92bcf61a8e [link-raw] fix radio with multiple transmit buffers (#3239) 2018-11-01 21:34:51 -07:00