34.3.2.1 spi_m_os_init
Initialize the SPI HAL instance and hardware for RTOS mode.
int32_t spi_m_os_init(
struct spi_m_os_descriptor *const spi,
void *const hw
)
Initialize SPI HAL with interrupt mode (uses RTOS).
Parameters
- spi
-
Type: struct spi_m_os_descriptor Struct *const
Pointer to the HAL SPI instance.
- hw
-
Type: void *const
Pointer to the hardware base.
Returns
Type: int32_t
Operation status.
- ERR_NONE
-
Success.
- ERR_INVALID_DATA
-
Error, initialized.