This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

The purpose of NRF_MODULE_ENABLED

While creating my own service I used ble_app_blinky as an example, once I opened ble_lbs.c file I saw it contains the service's declaration inside the macro:

#if NRF_MODULE_ENABLED(BLE_LBS)
...

#endif

Would I benefit if I follow the same pattern by leveraging that macro while defining my own services? If so - what is the purpose of the macro and what I should pass as the parameter? The brief documentation provides very little of the information, so I would like to understand what "module" in this context mean and where/how it could/should be enabled/disabled.

Parents Reply Children
No Data
Related