This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3100SDK: Host Interrupt pin registration

Part Number: CC3100SDK
Other Parts Discussed in Thread: MSP430F5529, CC3100

Hello,

can you please inform me, when host interrupt pin is gotten an interrupt, then how the _SlDrvRxIrqHandler is called means where the pin interrupt and _SlDrvRxIrqHandler is mapped ? I know _SlDrvRxIrqHandler is register through sl_IfRegIntHdlr. But how SDK will know which pin is the host interrupt pin?

  • Hi Atinkumar,

    I recommend you take a look at the <CC3100 SDK version>\cc3100-sdk\platform\msp430f5529lp\board.c file. This is part of the host driver porting layer. You'll see at the top that a function pointer of type "P_EVENT_HANDLER" is defined that will be used to point to the internal handler once the sl_IfRegIntHdlr function is called. The function pointer defined should be attached to the appropriate interrupt mechanism for your system. In the MSP430F5529 case where no OS is used, this is done by calling the function pointer "pIraEventHandler" inside of the appropriate GPIO ISR.

    Best Regards,
    Ben M