Jose Alamos
6c1c420164
loramac: add macros for default timer calibration values
2019-01-25 14:18:06 +01:00
Jose Alamos
5b4a26cd69
pkg/semtech-loramac: add timer calibration functions
2019-01-25 14:17:12 +01:00
Jose Alamos
b3d81af38a
pkg/semtech-loramac: remove timer tweaks from contrib
2019-01-25 14:16:11 +01:00
Gunar Schorcht
8984a9b80c
Merge pull request #10860 from miri64/gnrc_ipv6_nib/fix/release-when-queue-full
...
gnrc_ipv6_nib: release when not queuable on AR
2019-01-25 12:17:32 +01:00
Martine Lenders
879321d68a
gnrc_sixlowpan: stop type-finding loop when type is found
...
Currently the loop just continues to run after a viable type is found.
In #10851 this lead to a crash of the tests, when the dependency of
`gnrc_sixlowpan` to `gnrc_ipv6` was removed.
2019-01-25 12:04:30 +01:00
Martine Lenders
aad1997f9b
Merge pull request #10864 from kaspar030/uncrustify_sp_after_cast
...
uncrustify: add "sp_after_cast = remove"
2019-01-25 11:50:45 +01:00
Leandro Lanzieri
ba592ae4d3
Merge pull request #10848 from PeterKietzmann/pr_phy-kw41_ccs811condif
...
boards/phynode-kw41z:enable support for cc811 sensor
2019-01-25 11:42:40 +01:00
PeterKietzmann
536cf1b4e9
boards/phynode-kw41z:enable ccs811,mma8x5x,tcs37727 sensors
2019-01-25 11:10:08 +01:00
f56533b702
uncrustify: add indentation section comment
2019-01-25 10:58:54 +01:00
fe10a37e41
uncrustify: add "sp_after_cast = remove"
2019-01-25 10:52:15 +01:00
55e50d3015
Merge pull request #10858 from miri64/socket_zep/fix/ubsan-timestamp
...
socket_zep: fix undefined timestamp conversion behavior
2019-01-25 09:13:07 +01:00
Martine Lenders
b0beba3c1c
gnrc_ipv6_nib: release when not queuable on AR
...
When a new queue entry is tried to be allocated for a neighbor who's
address is currently tried to be resolved there was no error case
before. The packet that was tried to be put in the queue was thus not
released and stayed in the packet buffer for ever.
2019-01-25 00:13:21 +01:00
Gunar Schorcht
5cb2dd32e0
drivers/enc28j60: fix of #9784
2019-01-24 23:25:17 +01:00
03ed77b141
Merge pull request #10805 from beduino-project/fix-hifive1-coreclock-define
...
boards/hifive1: fix CLOCK_CORECLOCK
2019-01-24 20:48:40 +01:00
José Alamos
e3758fdcd0
Merge pull request #10859 from miri64/gnrc_icmpv6/fix/missing-release
...
gnrc_icmpv6: release in error cases of demux
2019-01-24 16:50:22 +01:00
Martine Lenders
8c1cf53d28
gnrc_icmpv6: release when received packet too short
2019-01-24 15:50:18 +01:00
Martine Lenders
bbde73eb81
gnrc_icmpv6: release on wrong checksum
2019-01-24 14:57:36 +01:00
Martine Lenders
83bc4b162f
socket_zep: fix undefined timestamp conversion behavior
2019-01-24 14:05:31 +01:00
Kevin "Bear Puncher" Weiss
06b5a58e62
Merge pull request #10802 from leandrolanzieri/pr/boards/sensebox_samd21-mtd
...
boards/sensebox_samd21: Add MTD definition
2019-01-24 12:20:16 +01:00
Sebastian Meiling
907b761750
Merge pull request #10792 from gschorcht/esp8266_esp_wifi_netdev
...
esp8266: esp_wifi netdev driver
2019-01-24 12:09:46 +01:00
Sebastian Meiling
a65fede8c4
Merge pull request #10855 from kb2ma/nanocoap/simple_reply_safety
...
net/nanocoap: verify simple reply buffer
2019-01-24 12:08:31 +01:00
Sebastian Meiling
43d772ce63
Merge pull request #10847 from jia200x/pr/fix_netreg_macros
...
net/netreg: fix static netreg init macros
2019-01-24 12:05:30 +01:00
Martine Lenders
fbe43634d9
Merge pull request #10844 from maribu/ethernet_shield
...
boards/arduino*: Added/refactored params for W5100
2019-01-24 11:59:43 +01:00
Jose Alamos
65e985d649
net/netreg: fix static netreg init macros
2019-01-24 11:44:17 +01:00
danpetry
6e21c92418
Merge pull request #10796 from leandrolanzieri/pr/sys/base64_size_macros
...
sys/base64: Add size estimation functions
2019-01-24 11:43:13 +01:00
Gunar Schorcht
d90d546053
Merge pull request #10824 from miri64/gnrc_ipv6_nib/fix/br-slaac
...
gnrc_ipv6_nib: activate SLAAC on border router
2019-01-24 11:20:36 +01:00
Ken Bannister
3343ed3674
net/nanocoap: verify reply length before write
2019-01-24 05:18:12 -05:00
Gunar Schorcht
e6cf33eb4c
tests/lwip*: blacklist esp8266 boards
2019-01-24 10:29:19 +01:00
Gunar Schorcht
49f06efd38
cpu/esp8266: fix pbuf length check in esp_wifi
...
When the size of a received frame is checked, always the total length should be used instead of the length of the first lwIP pbuf in the pbuf chain. Otherwise, the check that the length does not exceed ETHERNET_MAX_LEN will always be true since the maximum size of one lwIP pbuf in a pbuf chain is 512 bytes.
2019-01-24 09:54:53 +01:00
Gunar Schorcht
88c65aff0b
cpu/esp8266: allow _esp_wifi_recv_cb during send
...
Receiption of a frame in _esp_wifi_recv_cb while sending has no effect and should be possible to increases the performance.
2019-01-24 09:39:45 +01:00
Sebastian Meiling
44234783da
Merge pull request #10823 from kb2ma/nanocoap/verify_before_write_option
...
net/nanocoap: validate option length
2019-01-24 09:23:26 +01:00
Gunar Schorcht
0920bbb4fb
cpu/esp8266: log message on reconnect in esp_wifi
2019-01-24 09:21:17 +01:00
Gunar Schorcht
92f6c1a7c6
cpu/esp8266: WiFi mode changed in esp_wifi
...
Although only the station interface is needed, the WiFi interface has to be used in SoftAP + Station mode. Otherwise the send function blocks sporadically. Since the SoftAP interface is not used, it is configured with a hidden SSID and a long beacon interval. Connections from other stations are not allowed.
2019-01-24 09:21:17 +01:00
Gunar Schorcht
538aac00ad
cpu/esp8266: fix of allocated pbuf in esp_wifi
2019-01-24 09:21:17 +01:00
Gunar Schorcht
e384f1e502
cpu/esp8266: send timeout handling in esp_wifi
...
A timeout was introduced if sending a frame takes to long time. In that case the WiFi interface disconnects and reconnects automatically to recover.
2019-01-24 09:21:17 +01:00
Gunar Schorcht
04ee2ebe15
cpu/esp8266: automatic reconnect in esp_wifi
...
A reconnect timer is used to try to reconnect every 20 secons if WiFi interface is in disconnected or connecting state.
2019-01-24 09:21:17 +01:00
Gunar Schorcht
87b87631a6
cpu/esp8266: functions that have to run in IRAM
...
Due to performance reasons _esp_wifi_recv_cb and _send have to be executed in IRAM.
2019-01-24 09:21:17 +01:00
Gunar Schorcht
96d0910d33
cpu/esp8266: avoid _esp_wifi_recv_cb during send
...
To avoid conflicts on receiption of a frame while sending, _esp_wifi_recv_cb should not executed while a frame is in transmission
2019-01-24 09:21:17 +01:00
Gunar Schorcht
78e0aa2a77
cpu/esp8266: usage of _esp_wifi_recv_cb
...
Overriding ethernet_input function _esp_wifi_recv_cb is only used when the WiFi interface is in connected state.
2019-01-24 09:21:17 +01:00
Gunar Schorcht
c5a9058ab9
cpu/esp8266: simplified error handling in esp_wifi
...
wifi_station_connect and wifi_stattion_disconnect never produce errors. Thus, error handling can be removed.
2019-01-24 09:21:17 +01:00
Gunar Schorcht
3225aaa387
cpu/esp8266: different conn states in esp_wifi
...
Different connection states defined to be able to realize a better connect/reconnect handling
2019-01-24 09:21:17 +01:00
Gunar Schorcht
88f6beeca2
cpu/esp8266: use SDK mem management for esp_wifi
...
Some SDK interrupt service routines obviously use malloc/free in the interrupt context. Because the rmutex-based lock/unlock approach of the malloc/free function suite of the newlib does not work in the interrupt context, the SDK memory management functions MUST therefore be used. To use the same memory management functions in RIOT as in the SDK, the malloc/free function suite has to be replaced by wrapper functions.
2019-01-24 09:21:17 +01:00
Gunar Schorcht
5a835e91ba
cpu/esp8266: fix some comments in esp_wifi
2019-01-24 09:21:17 +01:00
Gunar Schorcht
107e196b18
cpu/esp8266: fix of maximum frame length in esp_wif
...
Since complete MAC frames are handled, ETHERNET_MAX_LEN has to be used instead of ETHERNET_DATA_LEN for receive buffer size and length check.
2019-01-24 09:21:17 +01:00
Gunar Schorcht
0e46869e57
cpu/esp8266: react to "out of memory" in esp_wifi
2019-01-24 09:21:17 +01:00
Gunar Schorcht
35a751c245
cpu/esp8266: avoid send interruption in esp_wifi
2019-01-24 09:21:17 +01:00
Gunar Schorcht
f7998c2ad6
cpu/esp8266: automatic reconnect in esp_wifi
2019-01-24 09:21:17 +01:00
Gunar Schorcht
d6664dafad
cpu/esp8266: esp_wifi dbg msg changed to err msg
2019-01-24 09:21:17 +01:00
Gunar Schorcht
be3a2a4cb5
cpu/esp8266: fix compilation problem of esp_wif
2019-01-24 09:21:17 +01:00
Gunar Schorcht
698770ddb5
cpu/esp8266: fix esp_wifi stability issues
...
Fixes sporadic blocking of the wifi thread in esp_wifi_recv_cb function under heavy network load conditions when frames are coming in faster than they can be processed. Since esp_wifi_recv_cb function is not executed in interrupt context, the msg_send function used for ISR event can block when the message queue is full. With this change esp_wifi can be flooded with icmpv6 packets of maximum size without any problems over hours.
2019-01-24 09:21:17 +01:00