pub unsafe extern "C" fn mtd_erase_sector(
mtd: *mut mtd_dev_t,
sector: u32,
num: u32,
) -> c_int
Expand description
@brief Erase sectors of a MTD device
@param mtd the device to erase @param[in] sector the first sector number to erase @param[in] num the number of sectors to erase
@retval 0 if erase successful @retval <0 if an error occurred @retval -ENODEV if @p mtd is not a valid device @retval -ENOTSUP if operation is not supported on @p mtd @retval -EOVERFLOW if @p addr or @p sector are not valid, i.e. outside memory @retval -EIO if I/O error occurred