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:
Andrzej Głąbek 2022-02-24 09:47:23 +01:00 committed by Carles Cufí
commit 222d42c22a
3 changed files with 17 additions and 5 deletions

View file

@ -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) || \

View file

@ -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
)