1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

35399 Commits

Author SHA1 Message Date
2fb6a11407
drivers/flashrom: remove deprecated flashrom API (since 2017) 2021-04-05 17:06:24 +02:00
Simon Brummer
458cfb9994 gnrc_tcp: fix data race on fsm status 2021-04-04 17:47:53 +02:00
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
dylad
7f00f00df3 bootloaders/riotboot_dfu: update doc now that DFU_ALT gets set 2021-04-03 18:18:57 +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
Gerson Fernando Budke
948b490cdf boards/atxmega-a1u-xpro: Add periph_pm properties
The periph_pm requires new field to control the power management
feature.  Add missing config at periph_conf for timers and uart.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-04-02 14:24:31 -03:00
Gerson Fernando Budke
93ed3cd9d6 cpu/atxmega: Add periph power management
The current xmega don't have a way to disable peripherals that are
not in used.  Add peripheral management to allow enable only the mcu
blocks that will be used by application.  This saves power on active
and sleep modes.  By default, at clock initialization, all peripherals
are now disabled and each drive must activate at initialization phase.
The periph_timer and periph_uart were updated with this new feature.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-04-02 14:24:31 -03: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
Ollrogge
650e69038c crypto/ciphers: remove unneeded max_key_size in cipher_interface_st 2021-04-02 10:50:58 +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
dylad
7eae017d5d makefiles/dfu-util: add default DFU_ALT for riotboot/flash-slotX 2021-04-01 20:29:46 +02: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
Leandro Lanzieri
835589a301
tests/pkg_tinydtls_sock_async: add missing ID to server PSK 2021-04-01 09:47:39 +02:00
Leandro Lanzieri
6428505017
net/sock/dtls: allow CREDMAN_TAG_EMPTY on sock creation 2021-04-01 09:47:39 +02:00
Leandro Lanzieri
cff9a547af
examples/dtls-sock: add multiple credentials 2021-04-01 09:47:39 +02:00
Leandro Lanzieri
bccfb6e990
pkg/tinydtls/sock: allow multiple RPK credentials 2021-04-01 09:47:38 +02:00
Leandro Lanzieri
1c1c5f1d36
pkg/tinydtls/sock: allow multiple PSK credentials 2021-04-01 09:47:38 +02:00
Leandro Lanzieri
95fd4f947a
net/sock/dtls: add documentation on multi-credential 2021-04-01 09:47:37 +02:00
Leandro Lanzieri
8b57b87258
net/sock/dtls: add RPK callback for credential selection 2021-04-01 09:47:37 +02:00
Leandro Lanzieri
81892ee389
net/sock/dtls: add client PSK callback for credential selection 2021-04-01 09:47:37 +02:00
Leandro Lanzieri
62fb9ad69f
net/sock/dtls: allow to register multiple credentials into a sock 2021-04-01 09:47:36 +02:00
Leandro Lanzieri
d7440ce1e3
net/sock/dtls: allow to set PSK Identity hint 2021-04-01 09:47:36 +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
Marian Buschsieweke
164aa72250
cpu/stm32/periph_eth: fix format specifier in DEBUG()
Use PRIu32 instead of lu to make LLVM happy.
2021-03-31 10:11:46 +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
Marian Buschsieweke
02e069a357
tests/malloc_thread_safety: improve test
- fix false test failure on picolibc
    - For picolibc, the result of mallinfo().uordblks doesn't go back
      to zero after the first allocation. By adding `free(malloc(4))`
      before recording the pre-test mallinfo() value, this issues is
      worked arround
- increase test coverage to also cover realloc()
- ease testing with picolibc by allowing `make PICOLIBC=1 flash test`
2021-03-31 09:17:50 +02:00