Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is there a provision in the SDK to handle the event NRF_SPIM_EVENT_STARTED?

Because if there is, I'm not seeing it. It seems to me that the SDKv14 has asks you where you want your event handler function like this:

Where spi_0_event_handler() is going to be used.

And later I have something like this:

This works for ENDTX event. But I never said I was interested in ENDTX. What if I wanted NRF_SPIM_EVENT_STARTED ?  Is there a way to "register" which events I want to call the event_handler with the SPIM peripheral/driver/api/hal? Or would I have to use PPI to set a SWI?

Parents
  • Hello,

    The EGU is a peripheral, as you can see here.

    A list of the tasks and events for the EGU is found here.

    So the EGU is a physical peripheral, but you can use it for interrupt calls on the CPU, instead of only triggering another peripheral.

    BR,

    Edvin

Reply
  • Hello,

    The EGU is a peripheral, as you can see here.

    A list of the tasks and events for the EGU is found here.

    So the EGU is a physical peripheral, but you can use it for interrupt calls on the CPU, instead of only triggering another peripheral.

    BR,

    Edvin

Children
  • Edvin, I closed the ticket because your answer was great. But can you please explain the difference in the SWI and EGU peripherals? I'm having trouble understanding why they share resources, and that EGU seems to be able to do what SWI does and perhaps more? Is it that SWI is really just a support component for EGU?