[riot-notifications] [RIOT-OS/RIOT] pkg/nimble: optimize package initialization (#11131)

Hauke Petersen notifications at github.com
Thu Mar 7 16:32:37 CET 2019

### Contribution description
Some typical initialization steps for nimBLE need to be (re-)written for any application, so it makes sense to put them in the shared initialization code path to prevent (future) code duplication. I have a couple of additional example applications that I am preparing (mostly around ICN and IPv6 over BLE), that all 

This PR collects some generic initialization artifacts and places them in the global init function. It then removes these lines from the `nimble_gatt` example.

### Testing procedure
Run the `examples/nimble_gatt` example an verify that all services are still working.

### Issues/PRs references
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * pkg/nimble: wait for host/ctrl sync during init
  * pkg/nimble: extract own addr type during init
  * pkg/nimble: auto initialize build-in services
  * examples/nimble_gatt: unroll update_ad()
  * examples/nimble_gatt: drop build-in init calls

-- File Changes --

    M examples/nimble_gatt/main.c (40)
    M pkg/nimble/contrib/include/nimble_riot.h (5)
    M pkg/nimble/contrib/nimble_riot.c (24)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190307/a36a2da9/attachment.html>

More information about the notifications mailing list