Skip to content

Commit b635c02

Browse files
author
petroborys
committed
Add can_api.c for efm32:review build-IAR
1 parent f29dffa commit b635c02

File tree

1 file changed

+2
-2
lines changed
  • targets/TARGET_Silicon_Labs/TARGET_EFM32

1 file changed

+2
-2
lines changed

targets/TARGET_Silicon_Labs/TARGET_EFM32/can_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,13 +275,13 @@ void can_irq_set(can_t *obj, CanIrqType type, uint32_t enable)
275275
switch ((CANName)obj->instance) {
276276
#ifdef CAN0
277277
case CAN_0:
278-
NVIC_SetVector(CAN0_IRQn, CAN0_IRQHandler);
278+
NVIC_SetVector(CAN0_IRQn, (uint32_t)CAN0_IRQHandler);
279279
NVIC_EnableIRQ(CAN0_IRQn);
280280
break;
281281
#endif
282282
#ifdef CAN1
283283
case CAN_1:
284-
NVIC_SetVector(CAN1_IRQn, CAN1_IRQHandler);
284+
NVIC_SetVector(CAN1_IRQn, (uint32_t)CAN1_IRQHandler);
285285
NVIC_EnableIRQ(CAN1_IRQn);
286286
break;
287287
#endif

0 commit comments

Comments
 (0)