nRF Connect SDK - SPIS acquiring the semaphore

Hi,

I've been using the SDK shipped with a vendor product and a feature that I use is to acquire the SPIS semaphore as part of the SPIS handler.  The version of the SDK that comes with the vendor product has this snippet in nrfx_spis.h:

/** @brief SPI slave driver event types. */
typedef enum
{
    NRFX_SPIS_BUFFERS_SET_DONE, //!< Memory buffer set event. Memory buffers have been set successfully to the SPI slave device, and SPI transaction can be done.
    NRFX_SPIS_XFER_DONE,        //!< SPI transaction event. SPI transaction has been completed.
    NRFX_SPIS_BUFFER_END,       //!< SPI transaction event. SPI Rx Buffer has been filled.
    NRFX_SPIS_SPIS_ACQUIRED,    //!< SPI transaction event. SPI Semaphore has been acquired.
    NRFX_SPIS_EVT_TYPE_MAX      //!< Enumeration upper bound.
} nrfx_spis_evt_type_t;

Now the vendor has shipped an updated product with updated Nordic libraries and the same file now has this:

/** @brief SPI slave driver event types. */
typedef enum
{
    NRFX_SPIS_BUFFERS_SET_DONE, //!< Memory buffer set event. Memory buffers have been set successfully to the SPI slave device, and SPI transaction can be done.
    NRFX_SPIS_XFER_DONE,        //!< SPI transaction event. SPI transaction has been completed.
    NRFX_SPIS_EVT_TYPE_MAX      //!< Enumeration upper bound.
} nrfx_spis_evt_type_t;

Notably, no NRFX_SPIS_SPIS_ACQUIRED enumeration.

What is the recommended way to acquire the SPIS semaphore?

Regards,

AC

Related