1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-16 08:32:45 +01:00
Commit Graph

37014 Commits

Author SHA1 Message Date
Francisco
ae6ffa37ea
Merge pull request #16317 from haukepetersen/opt_nimble_ztimer
pkg/nimble: migrate to ztimer
2021-04-15 10:17:42 +02:00
Hauke Petersen
01770fb9ae sys/shell/sc_nimble_netif: use ztimer 2021-04-15 09:11:53 +02:00
Hauke Petersen
9bd65efe12 tests/nimble_l2cap: fix missing xtimer.h include 2021-04-15 08:21:56 +02:00
Hauke Petersen
ec8d8703ab pkg/nimble/scanlist: fix missing stdio.h include 2021-04-15 08:21:56 +02:00
Hauke Petersen
c94f61596e pkg/nimble/scanlist: switch to ZTIMER_USEC 2021-04-15 08:21:56 +02:00
Hauke Petersen
b4ff5aae3a pkg/nimble: switch from xtimer to ztimer 2021-04-15 08:21:56 +02:00
Hauke Petersen
7e22f644da pkg/nimble: update to temporary upstream branch 2021-04-15 08:21:56 +02:00
Karl Fessel
5735d99971 core/clist: add special cardinality tests and matching unittest
adds clist_exactly_one() and clist_more_than_one()
and a unittest that tests them
2021-04-14 21:00:10 +02:00
benpicco
a1d4ec3e62
Merge pull request #16332 from ant9000/pr_fix_ds18_board_params
drivers/ds18: missing "board.h" include
2021-04-14 20:11:34 +02:00
chrysn
c99bb55e68
Merge pull request #16129 from maribu/compile_commands_json
build system: add compile-commands target to generate compile_commands.json
2021-04-14 18:10:28 +02:00
Antonio Galea
afb39700ae drivers/ds18: missing "board.h" include 2021-04-14 17:52:08 +02:00
Marian Buschsieweke
a07dac9ad1
build system: add new compile-commands make target
By running make compile-commands a `compile_commands.json` in the RIOT base
directory. With the environment variable `COMPILE_COMMANDS` the path of
this file can be changed to a custom location.

The `compile_commands.json` will contain the exact compile command, but
as additional flag `-I/usr/$(TARGET)/include` is added to work around
`clangd` not being able to locate the newlib system headers. The
additional includes can be overwritten using the environment variable
`COMPILE_COMMANDS_EXTRA_INCLUDES`.
2021-04-14 14:51:46 +02:00
Marian Buschsieweke
a8e9fa6253
Merge pull request #16311 from kfessel/p-advance-prio
core/sched: keep scheduler clist internal to sched
2021-04-14 13:24:05 +02:00
Karl Fessel
1dde0f42d4 core/sched: keep scheduler clist internal to sched
adds sched_runq_advance(prio)
used it in core/thread and
test malloc_thread_safety
2021-04-14 09:53:04 +02:00
Martine Lenders
33ca462af6
Merge pull request #16325 from miri64/tests/fix/tests-rtc
tests/unittests/tests-rtc: do not use DST info for normalization
2021-04-13 18:16:47 +02:00
Ichiro Kuroki
1cc02aef2f boards/arduino-nano-33-iot: extend SPI configuration 2021-04-13 18:08:06 +03:00
Ichiro Kuroki
068f029cc8 boards/arduino-nano-33-iot: add ADC configuration 2021-04-13 18:07:51 +03:00
Ichiro Kuroki
a8e9a985d5 boards/arduino-nano-33-iot: add PWM configuration 2021-04-13 18:07:29 +03:00
chrysn
fda4d2d54d
Merge pull request #16234 from chrysn-pull-requests/microbit-peripherals
boards/microbit-v2: Add buttons
2021-04-13 15:24:58 +02:00
benpicco
0ede891755
Merge pull request #16223 from chrysn-pull-requests/dac-dds-int-range
tests/dac_dds: Fix sine wave to fit in PCM range
2021-04-13 14:57:58 +02:00
Martine Lenders
873b71c3e9
tests/unittests/tests-rtc: do not use DST info for normalization
`rtc_tm_normalize` does not use it, so `mktime` should not either.
2021-04-13 14:37:19 +02:00
benpicco
bd6114ae9d
Merge pull request #16187 from benpicco/cpu/sam0_common/get_tamper
cpu/sam0_common: add rtc_get_tamper_event()
2021-04-13 14:11:46 +02:00
benpicco
fa8057ffbf
Merge pull request #16180 from nicoHarel/drivers/ds3231
drivers/ds3231: add alarm support
2021-04-13 13:57:16 +02:00
chrysn
5239f5ed13 boards/microbit-v2: Add buttons 2021-04-13 11:09:57 +02:00
Francisco
2f28ad4f1c
Merge pull request #16231 from maribu/tests/malloc_thread_safety
tests/malloc_thread_safety: improve test
2021-04-13 11:00:16 +02:00
Benjamin Valentin
13fbb7c1a0 cpu/sam0_common: add rtc_tamper_pin_mask() 2021-04-13 10:45:16 +02:00
Benjamin Valentin
9d482c4448 cpu/sam0_common: RTC: only write TAMPCTRL when tamper is enabled
If we configure TAMPCTRL early, GPIO events will set bits in the
TAMPCTRL register.
That means that after a wake-up, we can't tell if the bit was set
because it was the wake-up source or if it was already set by a
run-time GPIO event.
2021-04-13 10:45:16 +02:00
Benjamin Valentin
55c95cd8fd tests/periph_gpio: display tamper wake event 2021-04-13 10:45:16 +02:00
Benjamin Valentin
73dbda99ac cpu/sam0_common: add rtc_get_tamper()
Add a function to query which tamper event woke the CPU from hibernation.
2021-04-13 10:45:16 +02:00
Leandro Lanzieri
58ec967cc6
Merge pull request #16264 from MrKevinWeiss/pr/pkgupdate/kconfig
pkg/*/Kconfig: Model simple pkgs in Kconfig
2021-04-12 19:01:18 +02:00
Jue
80360e5308 cpu/stm32/gpio_f1: fix IRQ handler 2021-04-12 18:45:04 +02:00
Hauke Petersen
3571db64e6
Merge pull request #15648 from haukepetersen/opt_nimble_rmnetifbuffers
pkg/nimble/netif: use global MSYS memory pool
2021-04-12 17:25:17 +02:00
Jue
2f503f11fa cpu/stm32/gpio_all: fix IRQ handler for G0/L5/MP1 families 2021-04-12 17:01:33 +02:00
Hauke Petersen
6a8b6ca3f5 pkg/nimble/netif: use global MSYS memory pool 2021-04-12 16:26:23 +02:00
Hauke Petersen
9926e33751
Merge pull request #15782 from haukepetersen/opt_sema_ztimer
sys/sema: allow to use ztimer and/or xtimer
2021-04-12 14:44:31 +02:00
Francisco
505dcb7a62
Merge pull request #16314 from miri64/tests/enh/periph_rtt_min
tests/periph_rtt_min: harden test
2021-04-12 14:11:41 +02:00
Hauke Petersen
4cd9e96066 tests/sema: add test for sema_wait_timed_ztimer() 2021-04-12 13:08:39 +02:00
Hauke Petersen
b339e91e18 sys/sema: allow to use ztimer and/or xtimer 2021-04-12 13:08:39 +02:00
José Alamos
a4c479ca53
Merge pull request #16313 from fjmolinas/riot-loramac-system-aes
[TAKEOVER]: pkg/semtech-loramac: switch to RIOT AES
2021-04-12 13:06:39 +02:00
Martine Lenders
4e3ed19802
Merge pull request #16302 from iosabi/lwip_test
lwip_sock: Make sock_tcp_read return more data if available and test it
2021-04-12 12:27:26 +02:00
Martine Lenders
fc6dc25da4 tests/periph_rtt_min: harden test
- Better self-containment: read number of expected samples from output
  rather than the environment
- Less reliance on `stdout` timing: Count samples in application and
  output it rather then counting flushed dots.
2021-04-12 11:56:25 +02:00
Oleg Artamonov
a3cbeee9ce
pkg/semtech-loramac: switch to RIOT AES 2021-04-12 11:13:50 +02:00
Hauke Petersen
e28ec7907b
Merge pull request #15806 from haukepetersen/opt_nrf5x_nrfblehfxo
cpu/nrf/radio/nrfble: request HFXO only on demand
2021-04-12 11:04:12 +02:00
chrysn
101a9936ba
Merge pull request #16299 from benpicco/examples/doc-fix
examples: small fixes
2021-04-11 08:14:51 +02:00
Benjamin Valentin
737578a7bf examples/suit_update: allow the use of large MTUs
Transfer time is reduced significantly if we can use fewer frames
with large MTUs.
2021-04-11 01:08:11 +02:00
Benjamin Valentin
44fa20dcc0 examples/suit_update: add LinkHeader dependency
Aiocoap requires the LinkHeader package to be installed.
2021-04-11 01:08:11 +02:00
iosabi
73fab03e31 boards/common/esp8266: Set RTS and DTR to 0 on pyterm.
When flashing the ESP8266 with the flash tool it is possible to connect
RTS to the reset line and DTR to GPIO0 to automatically reboot the
device into flash mode and then reboot the device again into normal
mode.

pyterm leaves these two signals unset unless we specify a --set-rts=0 or
1, and the value of these lines would depend on the UART driver.

This patch explicitly sets RTS and DTR to 0 (high level) in the
Makefile.include config so `make term` releases the reset line,
otherwise the device may be left in reset mode after pyterm starts.
2021-04-10 22:50:35 +02:00
iosabi
0c40158eac cpu/esp8266: Fix typo in esp_gdbstub config.
The extra `)` was a typo from the commit that changes the makefile
inline "if" to a multi-line "if" block.

Tested with `USEMODULE="esp_gdbstub" make BOARD=esp8266-esp-12x -C tests/lwip`
2021-04-10 22:49:23 +02:00
iosabi
9974803f43 tests/lwip: Add a test for partial TCP reads.
Add a new test to check the behavior of `sock_tcp_read` when more data
is available in the connection than the buffer passed. This test checks
issue #16124 as well as reading from multiple small network packets into
a single buffer.
2021-04-10 17:14:11 +00:00
iosabi
e469f2dea4 lwip_sock: Make sock_tcp_read return data if available
When reading from the socket with `sock_tcp_read()` it would only return
data from at most one internal connection buffer, even if the buffer
passed to `sock_tcp_read()` is larger and there is more data available
in the connection. This patch makes `sock_tcp_read` process all the
available data so long as there's more data to read available
immediately.
2021-04-10 18:45:57 +02:00