nrfx_common: Fix build error with clang

Unlike gcc's, the clang preprocessor does not accept
pasting macro parameters with two sets of ##.
Fix it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2023-09-28 12:09:01 +02:00
parent 5f0ae29856
commit 50c2abee77
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,8 @@
IRQn_Type nrfx_get_irq_number(void const * p_reg){
#define IS_PERIPHERAL_REG(p, per, nbr, post) \
(p >= (void*)NRF_##per##nbr####post##_BASE) && \
((intptr_t)p < (intptr_t)NRF_##per##nbr####post##_BASE + sizeof(NRF_##per##_Type))
(p >= (void*)NRF_##per##nbr##post##_BASE) && \
((intptr_t)p < (intptr_t)NRF_##per##nbr##post##_BASE + sizeof(NRF_##per##_Type))
#if defined(NRF52833_XXAA)
/*