diff options
author | Damien George <damien.p.george@gmail.com> | 2020-02-20 14:37:32 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-03-10 01:53:42 +1100 |
commit | 0ac06a510af8290e2c5e3a1f43c87d232e460b9b (patch) | |
tree | 7d56089f44df927e7ae19f88b69fe8d0f8420b7d /extmod/nimble/modbluetooth_nimble.h | |
parent | 894c550c866211c9f176875d40c15fcf3bf74149 (diff) | |
download | micropython-0ac06a510af8290e2c5e3a1f43c87d232e460b9b.tar.gz micropython-0ac06a510af8290e2c5e3a1f43c87d232e460b9b.zip |
extmod/modbluetooth: Extract out gatts_db functionality from nimble.
For use by other stacks, if they need it.
Work done in collaboration with Jim Mussared aka @jimmo.
Diffstat (limited to 'extmod/nimble/modbluetooth_nimble.h')
-rw-r--r-- | extmod/nimble/modbluetooth_nimble.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extmod/nimble/modbluetooth_nimble.h b/extmod/nimble/modbluetooth_nimble.h index c70c3bc90a..745ff96825 100644 --- a/extmod/nimble/modbluetooth_nimble.h +++ b/extmod/nimble/modbluetooth_nimble.h @@ -27,11 +27,13 @@ #ifndef MICROPY_INCLUDED_EXTMOD_NIMBLE_MODBLUETOOTH_NIMBLE_H #define MICROPY_INCLUDED_EXTMOD_NIMBLE_MODBLUETOOTH_NIMBLE_H +#include "extmod/modbluetooth.h" + #define MP_BLUETOOTH_NIMBLE_MAX_SERVICES (8) typedef struct _mp_bluetooth_nimble_root_pointers_t { // Characteristic (and descriptor) value storage. - mp_map_t *gatts_db; + mp_gatts_db_t gatts_db; // Pending service definitions. size_t n_services; |