[−][src]Function mynewt::hw::hal::hal_spi_init_hw
pub unsafe extern "C" fn hal_spi_init_hw(
spi_num: u8,
spi_type: u8,
cfg: *const hal_spi_hw_settings
) -> c_int
Initialize SPI controller
This initializes SPI controller hardware before 1st use. Shall be called only once.
spi_num
: Number of SPI controllercfg
: Configuration
Return: 0 on success, non-zero error code on failure