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:
parent
5f0ae29856
commit
50c2abee77
|
@ -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)
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue