This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SWI user flags

Hello to all nordic jedi masters out there!

I am using nRF SDK v11.0 with the nRF52832.

I am a little bit confused about the usage/meaning of the flag argument in the nrf_drv_swi_trigger function.

Is it an arbitrary "context" variable I can use with any unsigned integer value? If so, then I have noticed that nrf_swi_flags_t is an alias for uint16_t but the flag argument of nrf_drv_swi_trigger is of uint8_t type.

Let me piggyback another question. I am using SD13.2 and the app_timer library. In order for me to use a SWI in my application, is it sufficient to define SWI_DISABLE0? If I don't, I get the error: "Symbol SWI0_EGU0_IRQHandler multiply defined (by app_timer.o and nrf_drv_swi.o)".

Thank you!

Related