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

40840 Commits

Author SHA1 Message Date
Gunar Schorcht
20032afa0d pkg/esp32_sdk_lib_bt_esp32c3: add BLE library for ESP32-C3 2022-08-24 18:02:21 +02:00
benpicco
18d500ed4d
Merge pull request #18498 from MrKevinWeiss/pr/fixlicense
LICENSE: Fix github badge
2022-08-24 14:27:29 +02:00
benpicco
2abc8501b5
Merge pull request #18439 from gschorcht/cpu/esp32/enable_ble_nimble
cpu/esp32: add Bluetooth LE and NimBLE host support
2022-08-24 13:50:54 +02:00
Gunar Schorcht
4b0d920e9d tests: add NimBLE/esp_wifi coexistence test 2022-08-24 09:05:25 +02:00
Gunar Schorcht
f848f668e3 cpu/esp32: add some debugging info in esp_ble_nimble 2022-08-24 09:05:25 +02:00
Gunar Schorcht
35676ca712 cpu/esp_common: fix of blocking mechanism in FreeRTOS queus
When FreeRTOS semaphores, as required by ESP-IDF, are used together with `gnrc_netif`, RIOT may crash if `STATUS_RECEIVE_BLOCKED` is used as a blocking mechanism in the FreeRTOS adaptation layer. The reason for this is that `gnrc_netif` uses thread flags since PR #16748. If the `gnrc_netif` thread is blocked because of a FreeRTOS semaphore, and is thus in `STATUS_RECEIVE_BLOCKED` state, the `_msg_send` function will cause a crash because it then assumes that `target->wait_data` contains a pointer to a message of type `msg_t`, but by using thread flags it contains the flag mask. This situation can happen if the ESP hardware is used while another thread is sending something timer controlled to the `gnrc_netif` thread.

To solve this problem `STATUS_MUTEX_LOCKED` is used instead of `STATUS_RECEIVE_BLOCKED` and `STATUS_SEND_BLOCKED`
2022-08-24 09:05:25 +02:00
Gunar Schorcht
4bcaab1eb7 pkg/ccn-lite: declare gettimeofday function as weak symbol
The definition of gettimeofday in pkg/ccn-lite leads to multiple definitions on platforms where gettimeofday is compiled in in newlib. Therefore, the gettimeofday function in pkg/ccn-lite is declared as weak symbol.
2022-08-24 09:05:25 +02:00
Gunar Schorcht
9910559593 pkg/nimble: fix nimble_rpl compilation if nimble_controller isn't used
`nimble_rpl` was not compilable without `nimble_controller` because the header includes were inside the conditional for `MODULE_NIMBLE_CONTROLLER`.
2022-08-24 09:05:25 +02:00
Gunar Schorcht
26956a9a2b cpu/esp_common: use BLE as netdev_default if nimble_netif is used
To reduce the required RAM in default configuration, the BLE interface is used as netdev_default instead of ESP-NOW. Further network interfaces can be enabled with the modules `esp_now`, `esp_wifi` or `esp_eth`.
2022-08-24 09:05:25 +02:00
Gunar Schorcht
56e59eb036 cpu/esp32: add NimBLE support for ESP32 2022-08-24 09:05:25 +02:00
Gunar Schorcht
abccc41db7 cpu/esp32: add BLE support for ESP32 2022-08-24 09:05:25 +02:00
Gunar Schorcht
48e7263674 cpu/esp32: add BLE support in linker scripts for ESP32 2022-08-24 09:03:38 +02:00
Gunar Schorcht
e257652e1d cpu/esp32/esp-idf: add ESP-IDF module for BLE support 2022-08-24 09:03:38 +02:00
Gunar Schorcht
cdc8a725a4 cpu/esp_common/freertos: changes required for BLE 2022-08-24 09:03:38 +02:00
Gunar Schorcht
b74bf015ef cpu/esp32: change the UART interrupt number
When using Bluetooth LE, the former UART interrupt number 5 is occupied by the ESP32 Bluetooth Controller. Therefore, another interrupt number has to be used for UART.
2022-08-24 09:03:38 +02:00
Gunar Schorcht
13770be456 pkg/esp32_sdk_lib_bt_esp32: add BLE library for ESP32 2022-08-24 09:03:38 +02:00
Gunar Schorcht
5b004f387d pkg/esp32_sdk: patch needed for ESP32 Bluetooth LE controller 2022-08-24 09:03:38 +02:00
Gunar Schorcht
0bef4c0c30 pkg/nimble: conditional compilation of nRF5x code
The package uses the nRFx SDK package `nrfx`. In addition, the `mynewt-nimble` repository contains some files (`porting/nimble/src/hal_timer.c` and `porting/npl/riot/src/nrf5x_isr.c`) that are compilable only for nRF MCUs. To allow the compilation for other platforms, the use of the `nrfx` package and the compilation of these files are now dependent on the use of any nRF5x MCU.
2022-08-24 09:03:38 +02:00
Gunar Schorcht
e3b2b75aff pkg/nimble: add module for HCI UART H4 transport protocol
If the package is used for a controller that supports the HCI UART H4 transport layer protocol, the functions implemented in `nimble/transport/common/hci_h4` are very useful to deal with H4 formatted packages. If required, they can be enabled by module `nimble_transport_hci_h4`.
2022-08-24 09:03:38 +02:00
benpicco
4b75725dd3
Merge pull request #18503 from gschorcht/cpu/esp32/add_esp32s2_support_in_makefiles
cpu/esp32: add ESP32-S2 support to makefiles
2022-08-23 20:06:52 +02:00
benpicco
b232deea9f
Merge pull request #18499 from mariemC/dist/tools/key_encryption
dist/tools/suit: encrypt an existing key
2022-08-23 19:23:22 +02:00
benpicco
05921bf6bf
Merge pull request #18502 from gschorcht/dist/tools/esptools/add_esp32s2_toolchain
dist/tools/esptools: add ESP32-S2 toolchain support to {install,export}.sh
2022-08-23 18:23:45 +02:00
Gunar Schorcht
fbdad5fe02 cpu/esp32: add ESP32-S2 support to ESP-IDF compilation 2022-08-23 17:34:38 +02:00
Gunar Schorcht
cd5c350e88 cpu/esp32: add ESP32-S2 support in makefiles 2022-08-23 17:34:25 +02:00
Gunar Schorcht
94a1792c32 dist/tools: add toolchain installtion for ESP32-S2 2022-08-23 17:33:31 +02:00
Marian Buschsieweke
0d555de986
Merge pull request #18479 from jia200x/pr/fix_lwip_concurrency
pkg/lwip: fix netdev concurrency issues
2022-08-23 16:34:43 +02:00
benpicco
bc82cf1cd6
Merge pull request #18497 from MrKevinWeiss/pr/fix/ieeehal
drivers/kw2xrd/Kconfig: fix kconfig model
2022-08-23 13:36:01 +02:00
Jose Alamos
a2bf203485
pkg/lwip: fix handling of netdev send return code 2022-08-23 11:57:11 +02:00
mariem.charrada
0e6ecd1350 dist/tools/suit: encrypt an existing key 2022-08-23 11:32:11 +02:00
MrKevinWeiss
6527408c98
.murdock: add pba-d-01-kw2x to kconfig tests 2022-08-23 10:04:47 +02:00
MrKevinWeiss
a4bc692148
drivers/kw2xrd/Kconfig: fix kconfig model
Nightlies are currently failing as there is a difference between make
and kconfig.
This tries to match the kconfig with the makefile dep.
The only issue is the
```
ifneq (,$(filter netdev,$(USEMODULE)))
  USEMODULE += netdev_ieee802154_submac
endif
```

which may have the same effect as select
HAVE_IEEE802154_RADIO_HAL_INTERFACE.
2022-08-23 10:04:44 +02:00
MrKevinWeiss
caa964c6b5
LICENSE: Fix github badge 2022-08-23 09:46:56 +02:00
Martine Lenders
f15fbb3c15
Merge pull request #18441 from miri64/dns_cache/fix/ttl0
dns_cache: handle TTL=0 properly
2022-08-23 02:58:13 +02:00
José Alamos
39987817ce
Merge pull request #18496 from jia200x/pr/gnrc_netif_multi_queue
net/gnrc_netif: add support for priority queues
2022-08-22 22:54:55 +02:00
52351d11bf
Merge pull request #18491 from maribu/tests/ztimer_periodic
tests/ztimer_periodic: improve output and relax on native
2022-08-22 20:02:15 +02:00
Jose Alamos
5fd601ae97
gnrc/init_devs/kw2xrf: use high priority queue for drivers 2022-08-22 18:00:15 +02:00
Jose Alamos
2c9f3072fb
net/gnrc_netif: add support for priority queues 2022-08-22 18:00:14 +02:00
benpicco
00ede8f7d2
Merge pull request #18421 from gschorcht/cpu/esp32/add_esp32s3_cpu_support
cpu/esp32: add support for ESP32-S3
2022-08-22 17:33:05 +02:00
benpicco
6c6ebce118
Merge pull request #18470 from MrKevinWeiss/pr/fixmurdockloudness
makefiles: quiet messages on CI
2022-08-22 13:33:29 +02:00
MrKevinWeiss
0489630aa7
makefiles: quiet messages on CI
After introducing #18423 there are occasional messages that still happen.
These messages cause a diff output when testing with TEST_KCONFIG=1.
This then causes a failure when comparing make/kconfig modules and packages.
2022-08-22 11:35:56 +02:00
chrysn
777e148bc2
Merge pull request #18489 from nica-f/pr1
pkg/lvgl: remove version comment fixing build issue
2022-08-21 14:56:57 +02:00
Nicole Faerber
5e073797e6 pkg/lvgl: remove version comment fixing build issue 2022-08-21 13:51:01 +02:00
Marian Buschsieweke
7ea0cab22e
tests/ztimer_periodic: improve output and relax on native
- Explain the reason on why the test fails if it fails
- Relax offset for ZTIMER_USEC on native, as this depends on the jitter
  emitted by the non-realtime OS native is running on

fixes issue #18490
2022-08-21 13:12:43 +02:00
chrysn
36595fd366
Merge pull request #18483 from chrysn-pull-requests/ccn-lite-388
pkg/ccn-lite: patch to fix use-after-free
2022-08-21 12:51:00 +02:00
benpicco
ed3d680aa2
Merge pull request #18482 from benpicco/coap_timeout_avr
nanocoap: fix type of CONFIG_COAP_ACK_TIMEOUT_MS (for AVR)
2022-08-20 18:37:15 +02:00
chrysn
ee3b56fa08 pkg/ccn-lite: patch to fix use-after-free
Workaround-For: https://github.com/cn-uofbasel/ccn-lite/pull/388
2022-08-20 17:47:50 +02:00
benpicco
a4564df7a5
Merge pull request #18474 from gschorcht/pkg/nimble/fix_statconn_peer_type
pkg/nimble:derive peer address type from peer address
2022-08-20 17:17:27 +02:00
Benjamin Valentin
071ae2ccc0 nanocoap: fix type of CONFIG_COAP_ACK_TIMEOUT_MS 2022-08-20 16:32:20 +02:00
chrysn
0a4bd3d68f
Merge pull request #18389 from chrysn-pull-requests/rust-cstr-update
rust: Update cstr dependency
2022-08-20 15:43:44 +02:00
Jose Alamos
d0403fc32d
pkg/lwip: acquire and release device lock 2022-08-19 19:44:32 +02:00