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

221 Commits

Author SHA1 Message Date
Marian Buschsieweke
edc43201db
tree-wide: fix typos in doc and comments
This should not change any generated binary
2023-10-16 12:17:48 +02:00
bors[bot]
ceaf6bd7aa
Merge #19634
19634: tree-wide: mixed box of compilation fixes with clang r=benpicco a=maribu

### Contribution description

As the title says: This should increase the number of apps being able to build with clang quite a bit.


Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
2023-07-18 10:47:46 +00:00
Marian Buschsieweke
88648f5e7d
pkg/nimble: fix compilation with LLVM 2023-07-18 12:24:10 +02:00
Dylan Laduranty
883d138e1c pkg: don't align nrf53 features on nrf51/nrf52
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
2023-07-13 13:22:28 +02:00
ebc643ffb0 pkg/nimble/autoadv: fix flag comparisons 2023-02-02 15:45:00 +01:00
Захваткина Виктория Федоровна
96595fa16e pkg/nimble: signal LINK_UP on initialisation 2022-11-25 20:52:45 +03:00
Marian Buschsieweke
3b2df89b4c
treewide: fix conditionals on deprecated module
As a leftovers from https://github.com/RIOT-OS/RIOT/pull/18355 are still
present that check for `MODULE_SHELL_COMMANDS` rather than
`MODULE_SHELL_CMDS`. This updates the conditionals as needed.
2022-09-21 09:42:37 +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
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
Gunar Schorcht
367707a158 pkg/nimble: derive used address type in statconn from peer address
Using a `BLE_ADDR_RANDOM` as the peer address type allows connecting only to peers that have a static random address. Deriving the peer address type from the peer address is simple and allows connections to be established with peers that have either a public or
static random address.
2022-08-18 18:45:13 +02:00
Gunar Schorcht
2635af9a20 pkg/nimble: fix event queue size for nimble_adv_ext
If the Bluetooth 5 Advertising Extension is enabled by the `nimble_adv_ext` module, up to 3 events come in from the controller during connection establishment before they are processed by the host. The default size of the event queue `MYNEWT_VAL_BLE_TRANSPORT_EVT_COUNT` with only 2 entries is therefore too small and the connection establishment fails.
2022-08-18 07:51:39 +02:00
Gunar Schorcht
7b1e0c005f pkg/nimble: fix legacy advertising in statconn 2022-08-16 13:49:23 +02:00
Gunar Schorcht
20f3e8b4fc pkg/nimble: add feature ble_adv_ext
To control the compilation of NimBLE modules `nimble_*_ext` that require the Bluetooth 5 Advertising Extension, the `ble_adv_ext` is introduced to indicate that a platform supports this feature.
2022-08-12 16:15:14 +02:00
Gregory Holder
25a476ff48
pkg/nimble: Replace double quotes with single quotes for two CFLAGS
Using double quotes can cause issue when the final cmake command is called, and you end up with un-escpaed nested double quotes.
2022-07-27 09:43:17 +02:00
Francisco
e5c7e3b633
Merge pull request #18029 from haukepetersen/verbump_nimble_nrfx2022
pkg/nimble: version bump to NimBLE 1.5.0 RC1
2022-06-10 04:11:26 +02:00
Marian Buschsieweke
5ea582b3dd
sys/shell_commands: convert to SHELL_COMMAND()
Make use of XFA for shell commands
2022-06-07 09:25:04 +02:00
Hauke Petersen
930a880896 pkg/nimble: optimize HCI config to save RAM 2022-06-07 09:24:00 +02:00
Hauke Petersen
948b4c9db0 pkg/nimble: remove cast-align path
This patch was applied to upstram NimBLE, so no need to have it in RIOT.
2022-06-02 14:59:50 +02:00
Hauke Petersen
568576de04 pkg/nimble: version bump to 1.5.0 RC1 2022-06-02 14:59:50 +02:00
Francisco Molina
439cf969b9 pkg/nimble/contrib: add utility to convert to BLE HCI phy enum 2022-04-27 10:10:32 +02:00
Francisco Molina
d474b8ff8a pkg/nimble/autoadv: add shell 2022-04-27 10:10:32 +02:00
Francisco Molina
1de00ba504 makefiles/pkg/nimble.adv.mk: add utility to assign adv instance 2022-04-27 08:22:58 +02:00
Francisco Molina
81cd99980e pkg/nimble/netif: make advertisement instance configurable 2022-04-27 08:22:58 +02:00
Francisco Molina
3702087084 pkg/nimble/autoadv: add support for ext_adv 2022-04-27 08:22:58 +02:00
Francisco Molina
da9a37a984 pkg/nimble/autoadv: prefix configurations with CONFIG_ 2022-04-25 08:43:51 +02:00
ca6b273400
nimble: Use sysctl in docs 2022-02-08 19:50:05 +01:00
Francisco
dbae3ed706
Merge pull request #16860 from haukepetersen/add_nimble_netifextadv
nimble/netif: add support for BT5 PHY modes
2022-02-04 11:16:11 +01:00
Hendrik van Essen
e840b61091 pkg/nimble: configure nimble values for stdio_nimble 2022-01-28 19:26:38 +01:00
Hendrik van Essen
72a6ca6366 sys/stdio_nimble: add new stdio module using nimble
Implement a new module stdio_nimble, which uses nimble
for stdio. The characteristic for stdin is writable and
the characteristic for stdout uses the indicate mechanism
to publish the system's output to a connected device.
Data will be sent out asynchronously via callout functions.

The module can be enabled with "USEMODULE += stdio_nimble"

Co-authored-by: Francisco Molina <femolina@uc.cl>
2022-01-28 19:26:38 +01:00
Hauke Petersen
c7b3d8416d nimble/autoconn: allow to select PHY mode 2022-01-27 10:30:30 +01:00
Hauke Petersen
0a4585d4c8 nimble/rpble: allow to select PHY mode 2022-01-27 10:30:30 +01:00
Hauke Petersen
2634063f5f nimble/statconn: allow to define PHY mode 2022-01-27 10:30:29 +01:00
Hauke Petersen
0ea7bf33d0 nimble/netif: support ext adv and BLE 5 PHY modes 2022-01-27 10:30:29 +01:00
Hauke Petersen
56c4460785 nimble/scanner: include CODED PHY only if featured 2022-01-27 10:10:09 +01:00
Hauke Petersen
1b15b203cc pkt/nimble/contrib: add enum for PHY modes 2022-01-27 10:10:09 +01:00
Hauke Petersen
f5aba5301d pkg/nimble: cleanup dep resolution for PHY modes 2022-01-27 10:10:09 +01:00
Jose Alamos
49527fc994
pkg/nimble/netif: adapt ops->init to handle driver initialization 2022-01-10 13:59:25 +01:00
Jose Alamos
e7fac9f661
net/gnrc_netif: add return values to init 2022-01-10 13:59:01 +01:00
benpicco
1efc53b598
Merge pull request #17344 from haukepetersen/opt_nimble_statconnerrno
nimble/statconn: use errno return values
2021-12-06 14:11:23 +01:00
Hauke Petersen
d36879c6bc nimble/statconn: return errno values 2021-12-06 11:27:46 +01:00
Hauke Petersen
40579c6598 nimble/rpble: fix scanning 2021-12-06 09:48:32 +01:00
Hauke Petersen
ca98df258c nimble/autoconn: fix scanning 2021-12-06 09:48:32 +01:00
Hauke Petersen
2f70f17962 nimble/scanner: fix scan duration for HS_FOREVER 2021-12-06 09:48:32 +01:00
Francisco
3afa47d8f2
Merge pull request #14955 from maribu/cflags-cast-align
makefiles/cflags.inc.mk: Add -Wcast-align
2021-12-03 17:47:24 +01:00
Marian Buschsieweke
79103d3156
pkg/nimble: add -Wno-cast-align
Also brutally silence -Wcast-align warnings in OS_MBUF_PKTHDR()
and OS_MBUF_PKTHDR_TO_MBUF(), as those are used by nimble users.

It might make sense to check if the silenced / disabled warnings do
indeed point out unaligned memory accesses.
2021-12-03 10:12:33 +01:00
Hauke Petersen
ad8ddf5748 nimble/rpble: adapt to scanner API changes 2021-12-03 08:43:31 +01:00
Hauke Petersen
650445812a nimble/autoconn: adapt to scanner API changes 2021-12-03 08:43:14 +01:00
Hauke Petersen
d2c46e8a4b nimble/npl: add hfxo_request wrappers 2021-12-02 23:31:33 +01:00
Hauke Petersen
b65c80c37b nimble_netif: remove l2cap_ping from API
Upstream NimBLE removed the l2cap ping call from its L2CAP API,
as it was not standard conformant, so we can't use it for
nimble_netif...
2021-12-02 23:31:33 +01:00