Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
This question is to confirm whether the CC2340R2 handles the store/restore of data when handling ISR. In this particular example, a GPIO is used to invoke an interrupt using the function GPIO_setCallback() . Should anything be added to the ISR code snippet below?
static void example_ISR(uint8_t LoopCounter) { uint8_t level; if(LoopCounter == _ITERATIONS) { level = GPIO_read(_ITERATIONS); if (level == 0) { RLLTransport_PostEvt(RLL_MASTER_FLOW_ASSERT_SIG); /* post event */ } else { RLLTransport_PostEvt(RLL_MASTER_FLOW_CLEAR_SIG); /* post event */ } } }
Thank you!