Skip to content

Commit 5470444

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: controller: PA/LNA use NRF_P0/P1 define
For PA/LNA implementation use NRF_P0/P1 defines instead of the deprecated NRF_GPIO to reference GPIO Port 0 registers. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
1 parent e51295a commit 5470444

File tree

1 file changed

+2
-2
lines changed
  • subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio

1 file changed

+2
-2
lines changed

subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define NRF_GPIO_PA NRF_P1
2727
#define NRF_GPIO_PA_PIN ((CONFIG_BT_CTLR_GPIO_PA_PIN) - 32)
2828
#else
29-
#define NRF_GPIO_PA NRF_GPIO
29+
#define NRF_GPIO_PA NRF_P0
3030
#define NRF_GPIO_PA_PIN CONFIG_BT_CTLR_GPIO_PA_PIN
3131
#endif
3232
#endif /* CONFIG_BT_CTLR_GPIO_PA_PIN */
@@ -36,7 +36,7 @@
3636
#define NRF_GPIO_LNA NRF_P1
3737
#define NRF_GPIO_LNA_PIN ((CONFIG_BT_CTLR_GPIO_LNA_PIN) - 32)
3838
#else
39-
#define NRF_GPIO_LNA NRF_GPIO
39+
#define NRF_GPIO_LNA NRF_P0
4040
#define NRF_GPIO_LNA_PIN CONFIG_BT_CTLR_GPIO_LNA_PIN
4141
#endif
4242
#endif /* CONFIG_BT_CTLR_GPIO_LNA_PIN */

0 commit comments

Comments
 (0)