modules: hal_nordic: Improve reservation of resources for BT_CTLR
Instead of including from nrfx_glue.h a specific Zephyr Bluetooth controller header file that defines PPI and GPIOTE resources to be reserved for exclusive use by the controller, include a file with only a fixed name and expect the chosen Bluetooth controller to provide the location of this file in include paths. This way, when a different Bluetooth controller implementation is used downstream, a different file can be easily pointed to. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
parent
be7a91fd54
commit
222d42c22a
3 changed files with 17 additions and 5 deletions
|
@ -3,12 +3,12 @@
|
|||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#include "radio_nrf5_fem.h"
|
||||
#include "../radio/radio_nrf5_fem.h"
|
||||
|
||||
#ifdef DPPI_PRESENT
|
||||
#include "radio_nrf5_dppi_resources.h"
|
||||
#include "../radio/radio_nrf5_dppi_resources.h"
|
||||
#else
|
||||
#include "radio_nrf5_ppi_resources.h"
|
||||
#include "../radio/radio_nrf5_ppi_resources.h"
|
||||
#endif
|
||||
|
||||
#if defined(HAL_RADIO_GPIO_HAVE_PA_PIN) || \
|
|
@ -100,3 +100,9 @@ zephyr_library_include_directories(
|
|||
ll_sw/nordic
|
||||
hci/nordic
|
||||
)
|
||||
|
||||
# This path needs to be added globally as it is supposed to be used
|
||||
# in nrfx_glue.h when other libraries are built.
|
||||
zephyr_include_directories(
|
||||
ll_sw/nordic/hal/nrf5/nrfx_glue
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue