SAMD21 and WINC1500

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi everyone,

 

I'm trying to use SERCOM interrupts in my SAMD21J18A Xplained PRO, but when add to the module WINC1500 i get an error saying that " multiple definition of `SERCOM2_Handler' ".

I found out that if i comment the following lines i can use interrupts but cant communicate with WINC1500.

 

<#define _SERCOM_INTERRUPT_HANDLER(n, unused) \
        void SERCOM##n##_Handler(void) \
        { \
            _sercom_interrupt_handlers[n](n); \
        }>

and

 

<MREPEAT(SERCOM_INST_NUM, _SERCOM_INTERRUPT_HANDLER, ~)>

 

So, my question is how do i code an interrupt using WINC1500?