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

9 Commits

Author SHA1 Message Date
ebc643ffb0 pkg/nimble/autoadv: fix flag comparisons 2023-02-02 15:45:00 +01: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
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
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
94e314c914 pkg/nimble: fix if(IS_ACTIVE(..) && CONSTANT) with llvm
Fixes

```
/home/kaspar/src/riot.rs/pkg/nimble/autoadv/nimble_autoadv.c:163:46: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand]
    if (IS_ACTIVE(NIMBLE_AUTOADV_FLAG_FIELD) && BLUETIL_AD_FLAGS_DEFAULT) {
                                             ^  ~~~~~~~~~~~~~~~~~~~~~~~~
/home/kaspar/src/riot.rs/pkg/nimble/autoadv/nimble_autoadv.c:163:46: note: use '&' for a bitwise operation
    if (IS_ACTIVE(NIMBLE_AUTOADV_FLAG_FIELD) && BLUETIL_AD_FLAGS_DEFAULT) {
                                             ^~
                                             &
/home/kaspar/src/riot.rs/pkg/nimble/autoadv/nimble_autoadv.c:163:46: note: remove constant to silence this warning
    if (IS_ACTIVE(NIMBLE_AUTOADV_FLAG_FIELD) && BLUETIL_AD_FLAGS_DEFAULT) {
                                            ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
2021-09-16 14:01:33 +02:00
Francisco Molina
fb3860dd05 pkg/nimble/autoadv: make AD flag optionnal
These fields can be omitted if all other FLAGS are 0 and the advertising
packets is not connectable, allowing for 3 extra bytes for advertisement
payload.

Co-authored-by: Roudy Dagher <roudy.dagher@inria.fr>
2021-08-24 09:12:58 +02:00
Hendrik van Essen
fe4f0a69ee sys/nimble_autoadv: add new module
module for automated bluetooth advertising
2020-11-05 10:53:21 +01:00