riot_sys

Function mtd_init

Source
pub unsafe extern "C" fn mtd_init(mtd: *mut mtd_dev_t) -> c_int
Expand description

@brief mtd_init Initialize a MTD device

@param mtd the device to initialize

@retval 0 on success @retval <0 on error probably errno @retval -ENODEV if no device if given or no driver is set @retval -ENOTSUP if device has no init function