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

pub unsafe extern "C" fn hal_spi_init(
    spi_num: c_int,
    cfg: *mut c_void,
    spi_type: u8
) -> c_int

Initialize the SPI, given by spi_num.

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