Gunar Schorcht
90e9c95c30
cpu/esp32: registration of RX callback in esp_wifi
...
RX callback function should be register when WiFi has been connected to AP successfully and should be unregistered when WiFi disconnects from AP. Therefore, esp_wifi_internal_reg_rxcb is called now in event handler on event SYSTEM_EVENT_STA_CONNECTED. It is reset now on event SYSTEM_EVENT_STA_DISCONNECTED.
2019-01-17 17:10:43 +01:00
Gunar Schorcht
f4cacc1e24
cpu/esp32: improved debug message in esp_wifi
2019-01-17 17:10:43 +01:00
Gunar Schorcht
2c3ac91cf3
cpu/esp32: move wifi_connect to event handler
...
Before function wifi_connect is executed, starting the WiFi driver should have been finished. This is indicated by the WiFi driver by sending event SYSTEM_EVENT_STA_START. Function wifi_connect is moved therefore to the event handler for SYSTEM_EVENT_STA_START.
2019-01-17 17:10:43 +01:00
Gunar Schorcht
8a1da21b1a
cpu/esp32: fixes serious memory leak in esp_wifi
...
The buffer given by the WiFi driver as parameter eb has to be freed explicitly. Otherwise the esp_wifi_netdev stops working after some seconds.
2019-01-17 17:10:43 +01:00
Gunar Schorcht
3ef35e1b78
cpu/esp32: use static WiFi config in esp_wifi
...
The WiFi configuration has to be static to avoid memory access problems when WiFi AP is reconnected.
2019-01-17 17:10:43 +01:00
Gunar Schorcht
d24d73dadf
cpu/esp32: fixes NETOPT_LINK_CONNECTED in esp_wifi
...
esp_wifi was simply returning the connection state instead of filling the referenced value.
2019-01-17 17:10:43 +01:00
Gunar Schorcht
2c97377585
cpu/esp32: fixes NETOPT_IS_WIRED in esp_wifi
...
esp_wifi returns false now.
2019-01-17 17:10:43 +01:00
Gunar Schorcht
078c47d79c
cpu/esp32: fixes frame size handling in esp_wifi
...
The size of received and transmitted frames was stored in an uint8_t, which did not allow to process frames larger than 255 octets. However, WiFi has an MTU of 1500 octets.
2019-01-17 17:10:43 +01:00
Gunar Schorcht
c06172925a
Merge pull request #10766 from gschorcht/esp_compile_time_configs
...
cpu/esp*: compile time configurations for ESP MCUs
2019-01-17 16:39:26 +01:00
Tristan Bruns
6c1f2bb174
boards/hifive1: fix file permissions of flasher.sh
2019-01-17 16:33:25 +01:00
bb97c05b36
Merge pull request #10543 from jcarrano/no-building-with-different-version
...
Makefile.include: remove functionality to build with another version.
2019-01-17 15:55:07 +01:00
José Alamos
69d4235d2f
Merge pull request #10798 from danpetry/doc/rdm0_process_clarification
...
doc/rdm: clarification to revision process
2019-01-17 14:58:27 +01:00
Gunar Schorcht
6c61b69164
cpu/esp32: os_memset redefinition
...
os_memset uses system_secure_memset.
2019-01-17 13:52:22 +01:00
Gunar Schorcht
2215f29883
cpu/esp32: add memset that cannot be optimized out
...
Adds a memset function `system_secure_memset` which cannot be optimized out by the compiler. It uses the libsodium approach of weak symbols. Function system_secure_memset calls the standard memset. Calling an empty function declared with weak attribute after the memset call, prevents the compiler to optimize it out. The overhead is only one function call.
2019-01-17 13:50:56 +01:00
danpetry
b79910995d
doc/rdm: clarification to change process
2019-01-17 12:06:28 +01:00
Martine Lenders
b6eb12c6d4
Merge pull request #10795 from kaspar030/fix_sha256_update_with_zero_length
...
hashes/sha256: don't call memcpy if len==0
2019-01-17 11:28:55 +01:00
Martine Lenders
aef03e620a
Merge pull request #10784 from kaspar030/fix_fmt_signed_conversion
...
fmt: fix fmt_s32_dec() and fmt_s64_dec() sign bit handling
2019-01-17 11:28:00 +01:00
Martine Lenders
d34bf526c1
Merge pull request #10783 from kaspar030/fix_native_timer
...
cpu/native/periph/timer: fix type conversion
2019-01-17 11:11:01 +01:00
d6390b3685
hashes/sha256: don't call memcpy if len==0
2019-01-17 10:56:34 +01:00
Gaëtan Harter
519b9ebc33
Merge pull request #10790 from cladmi/pr/build_system_utils/name_collision_tests
...
tests/build_system_utils: fix TESTS name collision
2019-01-16 19:13:15 +01:00
Martine Lenders
d4b92e931e
Merge pull request #10789 from cladmi/pr/build_dir/fix_jerryscript
...
pkg/jerryscript: namespace BUILD_DIR variable
2019-01-16 18:57:42 +01:00
Ken Bannister
0e1c3ebe50
net/gcoap: make options buf macros configurable
2019-01-16 12:41:06 -05:00
c0785df050
Merge pull request #10786 from kaspar030/fix_pktbuf_empty_memcpy
...
gnrc/pktbuf: avoid memcpy if size <= 0
2019-01-16 18:34:23 +01:00
Gaëtan Harter
5260b62160
tests/build_system_utils: fix TESTS name collision
...
TESTS is used to find the tests files for the application but was used
to list test targets. Rename to COMPILE_TESTS as already done in some of
my other applications.
2019-01-16 18:24:13 +01:00
Gaëtan Harter
6a170583d6
pkg/jerryscript: namespace BUILD_DIR variable
...
BUILD_DIR was introduced but the variable was already used by
`pkg/jerryscript` so there is a name collision.
Namespace it to prevent issues.
2019-01-16 17:47:12 +01:00
7226daf33e
Merge pull request #10558 from dylad/pr/update_arm_cmsis
...
cpu/cortexm_common: Update ARM CMSIS to V5.4.0
2019-01-16 16:49:14 +01:00
Cenk Gündoğan
b24a8fbf3a
Merge pull request #10524 from miri64/gnrc_netif/enh/centralize-dev-type-functions
...
gnrc_netif: centralize device-type-specific functions
2019-01-16 16:44:43 +01:00
a2d679c76f
gnrc/pktbuf: avoid memcpy if size <= 0
2019-01-16 16:13:14 +01:00
Martine Lenders
55b9757044
gnrc_netif: centralize function to init IPv6 MTU
2019-01-16 15:52:54 +01:00
Martine Lenders
ea9bbd72b8
gnrc_netif: centralize function to get l2addr NETOPT
2019-01-16 15:52:54 +01:00
Martine Lenders
8f763535ac
gnrc_netif: centralize S/TLLAO length to address length function
...
The function to infer the link-layer address length from the length of
a S/TLLAO is very dependent on the IPv6 over X specification and thus
should be grouped with the other IP over X functions.
2019-01-16 15:52:53 +01:00
3b76a2c2be
fmt: fix fmt_s32_dec() and fmt_s64_dec() sign bit handling
...
"val = -val" causes UB for INTMIN, thus explicitly cast to unsigned.
2019-01-16 15:23:19 +01:00
f5345fbd38
cpu/native/periph/timer: fix undefined behaviour
2019-01-16 15:16:54 +01:00
Martine Lenders
bd08ea1409
nrfmin: remove long address support
...
The driver is claiming it is needed for IPv6 / 6LoWPAN support, which
is not true (the long address is never used for NRFMIN in fact) and
this assumption actually leads to an assertion when compiled as with
the `gnrc_border_router` example.
2019-01-16 14:59:28 +01:00
Gaëtan Harter
61452669b9
Merge pull request #10038 from smlng/pr/make/buildoutdir
...
make: introduce common BUILD_DIR
2019-01-16 14:18:48 +01:00
Sebastian Meiling
a0e143d09f
Merge pull request #10721 from nmeum/asymcute-out-of-bounds
...
asymcute: check for minimum packet length early
2019-01-16 13:53:49 +01:00
danpetry
9fadbf60b4
Merge pull request #10190 from jcarrano/qualifier-fixes/lua
...
pkg/lua: Fix warnings on discarded qualifiers.
2019-01-16 12:13:29 +01:00
Ken Bannister
f1b0827585
examples/gcoap: handle response buffer too small
2019-01-16 05:41:30 -05:00
Ken Bannister
8a1a2b41fb
examples/gcoap: handle request buffer too small
2019-01-16 05:38:13 -05:00
Leandro Lanzieri
d9be249144
Merge pull request #10578 from MrKevinWeiss/pr/i2capi
...
drivers/i2c: Fix i2c api issues
2019-01-16 11:07:10 +01:00
Sören Tempel
2a6354b07d
asymcute: check for minimum packet length early
...
Without this patch _len_get reads one byte beyond the con->rxbuf
if the incoming packet consists only of the byte 0x01.
2019-01-16 10:06:38 +01:00
Sebastian Meiling
2fde8335c9
Merge pull request #10728 from keestux/memcpy-struct-copy
...
Do normal assignment instead of memcpy
2019-01-16 09:18:44 +01:00
Federico Pellegrin
4b7c37cca0
tests/periph_flashpage: improve flashpage tests
...
-) verify correctness of data written by raw write test
-) write to really last flash page and not last - 1
-) use flashpage_addr instead of manual calculation
2019-01-16 05:29:23 +01:00
Cenk Gündoğan
abb72db73a
Merge pull request #10776 from miri64/gnrc_sixlowpan_frag/enh/detect-duplicates
...
gnrc_sixlowpan_frag: drop received duplicates
2019-01-16 00:08:25 +01:00
Dylan Laduranty
514812fc7c
pkg/cmsis-dsp: update to V5.4.0 from ARM repo
...
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2019-01-15 21:33:24 +01:00
Martine Lenders
01370511df
gnrc_sixlowpan_frag: drop received duplicates
...
Otherwise duplicate fragments are added to the number of already
received datagram bytes in L153 leading to possible race-conditions.
2019-01-15 20:09:49 +01:00
Martine Lenders
e65a017f19
Merge pull request #10775 from aabadie/pr/board/disable_dma_spi_iotlabm3
...
boards/iotlab-m3: disable DMA with SPI
2019-01-15 20:05:39 +01:00
9daf3c74a9
boards/iotlab-m3: disable DMA with SPI
2019-01-15 19:49:32 +01:00
Emmanuel Baccelli
209d90bc00
Merge pull request #10215 from kYc0o/pr/riotboot_multislot
...
riotboot: add multislot support
2019-01-15 19:04:28 +01:00
Emmanuel Baccelli
d8f64a36e4
bootloaders/riotboot: updated documentation on multislot
2019-01-15 18:32:10 +01:00