Z_ISR_DECLARE: update for C++ support
The implicit conversion of pointer-to-function to pointer-to-void is not acceptable in C++. Provide a C-style explicit cast to force the reinterpretation. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
df174ded13
commit
9f0aa69843
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ struct _isr_list {
|
||||||
#define Z_ISR_DECLARE(irq, flags, func, param) \
|
#define Z_ISR_DECLARE(irq, flags, func, param) \
|
||||||
static Z_DECL_ALIGN(struct _isr_list) Z_GENERIC_SECTION(.intList) \
|
static Z_DECL_ALIGN(struct _isr_list) Z_GENERIC_SECTION(.intList) \
|
||||||
__used _MK_ISR_NAME(func, __COUNTER__) = \
|
__used _MK_ISR_NAME(func, __COUNTER__) = \
|
||||||
{irq, flags, &func, (void *)param}
|
{irq, flags, (void *)&func, (void *)param}
|
||||||
|
|
||||||
#define IRQ_TABLE_SIZE (CONFIG_NUM_IRQS - CONFIG_GEN_IRQ_START_VECTOR)
|
#define IRQ_TABLE_SIZE (CONFIG_NUM_IRQS - CONFIG_GEN_IRQ_START_VECTOR)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue