1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-15 19:32:46 +01:00
Commit Graph

35176 Commits

Author SHA1 Message Date
iosabi
afddb46c51 lwip_sock: Fix computation of last_offset on partial reads.
lwip receives network buffers that are made available to lwip_sock_tcp
calling `netconn_recv_tcp_pbuf`. The size of these buffers depends on
the size of the network packets. An application calling `sock_tcp_read`
can pass any arbitrary buffer size to read (copy) from these internal
network buffers, which may be smaller. lwip_sock_tcp keeps around the
last network buffer (`struct pbuf last_buf`) and the offset into this
buffer already consumed by the application (`last_offset`).

However, when multiple application reads from the same `pbuf` buffer
occur, the `last_offset` must be updated incrementing it. The code had
a bug that would work only when `last_offset` was either 0 (no previous
partial read) or when the current read was consuming all the remaining
data (when `buf_len == copylen`).

This patch fixes the issue an allows multiple reads from the same
buffer.
2021-04-04 12:45:54 +02:00
Francisco
73ccd1e2e7
Merge pull request #15540 from JulianHolzwarth/pr/software/test/sema
tests/sema/: added simple sema test
2021-04-02 22:03:36 +02:00
JulianHolzwarth
20a3a929c8
tests/sema/: added sema test 2021-04-02 19:40:33 +02:00
Francisco
e04dd4dcce
Merge pull request #16272 from jue89/fix/stm32_gpio_irq
cpu/stm32/gpio: fix IRQ handler
2021-04-02 13:07:39 +02:00
Francisco
9d1d2f9e21
Merge pull request #16172 from kfessel/p-zimer-sec
sys/ztimer: add ZTIMER_SEC, improve auto_init
2021-04-02 08:32:38 +02:00
Jue
43f83a520b cpu/stm32/gpio: fix IRQ handler 2021-04-01 19:31:27 +01:00
Karl Fessel
3f66735bde ztimer/periph_rtc: intialize struct tm to avoid TZ and IDST problems
{ .elem = 0 }  initializes the complete struct to 0
{} is not ISO C conform
2021-04-01 18:19:15 +02:00
Karl Fessel
15f2d0008a native/rtc: ensure no struct tm extra information is used 2021-04-01 18:19:15 +02:00
Karl Fessel
9e7f1d0097 sys/ztimer: add ZTIMER_SEC to Kconfig 2021-04-01 18:19:15 +02:00
Karl Fessel
0b5709a853 ztimer/periph_rtc: count months from 0
contrary to the western civilised world struct tm requires
us to count months from 0
2021-04-01 18:19:15 +02:00
Karl Fessel
72213ec99a native/rtc: avoid dealing with DST 2021-04-01 18:19:15 +02:00
Karl Fessel
febfa5bc62 tests/ztimer_xsec: add a simple high level ztimer test 2021-04-01 18:19:15 +02:00
Karl Fessel
c9e17196de sys/ztimer: enhance periph selection documentation
provide more information about the selection procedure to Doxygen
2021-04-01 18:19:15 +02:00
Karl Fessel
aa770fdd8c ztimer/auto_init: restructure for flexibitily, pm for ZTIMER_SEC
MSEC and SEC are now usable on TIMER(0) without having USEC
pm is configured by used hardware
    OLD configuration values are translated for backward compatibility
prefer rtt for ZTIMER_SEC

avoid doing partial ztimer setup if auto_init_ztimer is disabled

before this patch some const pointers might have been definend to values
that a user who disables auto_init for ztimer does not like.
2021-04-01 18:19:01 +02:00
Marian Buschsieweke
fc3e0b6055 tests/ztimer_underflow: allow testing ZTIMER_SEC 2021-04-01 15:31:40 +02:00
Marian Buschsieweke
cc92a0aea3 tests/ztimer_msg: Allow testing ZTIMER_SEC 2021-04-01 15:31:40 +02:00
Francisco
4b816916dc
Merge pull request #16269 from maribu/drivers/sht1x
drivers/sht1x: fix code style issues
2021-04-01 13:51:53 +02:00
benpicco
156c08854d
Merge pull request #16265 from dylad/pr/sam0/doc_update
cpu/sam0: correct periph_cpu_common.h documentation
2021-04-01 12:57:28 +02:00
benpicco
2f79410444
Merge pull request #16271 from maribu/sys/Makefile.dep2
sys/Makefile.dep: clean up
2021-04-01 12:56:51 +02:00
Francisco
9e092f49f1
Merge pull request #16270 from leandrolanzieri/pr/tests/add_atmega328p_xplained_mini
tests: add atmega328p-xplained-mini to insufficient memory list
2021-04-01 12:17:46 +02:00
Marian Buschsieweke
1454dc3566
sys/Makefile.dep: clean up 2021-04-01 11:06:22 +02:00
Leandro Lanzieri
88d94daeb6
tests: add atmega328p-xplained-mini to insufficient memory list 2021-04-01 10:33:48 +02:00
Marian Buschsieweke
78aa197ab8
sys/shell/commands/sc_sht1x.c: fix style 2021-04-01 10:19:30 +02:00
Marian Buschsieweke
80aaf265d6
drivers/sht1x: fix various style issues 2021-04-01 10:17:28 +02:00
dylad
99764b82ab cpu/sam0: correct periph_cpu_common.h documentation 2021-03-31 22:17:01 +02:00
benpicco
cb06924fb2
Merge pull request #16239 from nandojve/xplained-mini
boards: introduce atmega328p-xplained-mini
2021-03-31 13:37:56 +02:00
Francisco
9a5657a2bc
Merge pull request #15789 from haukepetersen/add_event_timeoutztimer
sys/event: add event_wait_timeout_ztimer()
2021-03-31 11:38:56 +02:00
Hauke Petersen
98de4b968a tests: add event_wait_timeout_ztimer test app 2021-03-31 10:11:51 +02:00
Hauke Petersen
91859fc261 sys/event: add event_wait_timeout_ztimer() 2021-03-31 10:11:29 +02:00
Hauke Petersen
91bf7bc376
Merge pull request #15920 from haukepetersen/add_nimble_netifscchanmap
pkg/nimble/netif: allow to read used channel map
2021-03-31 10:10:35 +02:00
Francisco
c082b42b04
Merge pull request #16238 from aabadie/semtech-loramac_sx126x
pkg/semtech-loramac: add support for sx126x/llcc68 radios
2021-03-31 09:31:46 +02:00
chrysn
fa9a297e7c
Merge pull request #16250 from chrysn-pull-requests/nrf52-more-timers
cpu/nrf52: Expose more timers
2021-03-30 20:28:27 +02:00
efdaf9225f
sys/net/gnrc: disable sx126x auto init with loramac 2021-03-30 19:03:34 +02:00
ba9b626b6d
sys/auto_init/loramac: add support for sx126x radio 2021-03-30 19:03:34 +02:00
5da185c58f
examples/lorawan: add support for sx126x radio 2021-03-30 19:03:34 +02:00
18a0889bc4
Merge pull request #16177 from aabadie/driver_llcc68
drivers: add support for sx1261/2 and llcc68 radio devices
2021-03-30 19:02:27 +02:00
Marian Buschsieweke
ca8641c213
Merge pull request #16258 from maribu/cpu/sam3/periph_rtt
cpu/sam3/periph_rtt: fix rtt_get_alarm()
2021-03-30 17:47:30 +02:00
chrysn
1da4693e5c b/c/microbit: Use timer 2 on microbit-v2
Timer 1 is already in use for NRF802154_TIMER
2021-03-30 16:34:44 +02:00
chrysn
2b09d3162a cpu/nrf52: Expose more timers 2021-03-30 16:34:44 +02:00
Marian Buschsieweke
8919b2c847
Merge pull request #16257 from fjmolinas/pr_arduino_due_config_freq
boards/arduino-due: allow changing frequency
2021-03-30 16:17:43 +02:00
10ab3c2134
drivers: register sx126x in Kconfig net list 2021-03-30 16:12:40 +02:00
bede0cd98c
sys/net/auto_init: add sx126x auto_init logic 2021-03-30 16:12:40 +02:00
c8e343a590
tests/driver_sx126x: add test application 2021-03-30 16:12:39 +02:00
0b5b9bd80f
drivers: add implementation for sx126x lora radio 2021-03-30 16:12:39 +02:00
4fc3112995
makefiles: add sx1261/2 pseudo-modules 2021-03-30 16:12:39 +02:00
300beb79aa
pkg: add driver_sx126x package driver 2021-03-30 16:12:39 +02:00
Francisco
8ebe4f608b
Merge pull request #16226 from jnohlgard/devfs-submodule
devfs: Split devfs-random into two files using submodules
2021-03-30 16:03:06 +02:00
Francisco
c9f8836a9f
Merge pull request #16227 from rgrunbla/fix-doc-random
sys/include/random: generate documentation for random double generation
2021-03-30 15:54:25 +02:00
Francisco
7d2eb7efad
Merge pull request #16229 from yarrick/dhcp_start
pkg/lwip: Start DHCP early for all Ethernet interfaces
2021-03-30 15:54:11 +02:00
Marian Buschsieweke
5a7dd703e3
Merge pull request #16194 from maribu/pm_layered_atomic_utils
sys/pm_layered: use atomic_utils
2021-03-30 15:41:28 +02:00