[][src]Function mynewt::hw::hal::hal_spi_enable

pub unsafe extern "C" fn hal_spi_enable(spi_num: c_int) -> c_int

Enables the SPI. This does not start a transmit or receive operation; it is used for power mgmt. Cannot be called when a SPI transfer is in progress.

@param spi_num

Return: int 0 on success, non-zero error code on failure.