From 7d7c55e95d24c7da276a5a372cb3a6c8bb2db34e Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Fri, 4 Oct 2024 15:28:19 +0800 Subject: [PATCH] szl switch to fatfs r/w traits --- szl/Cargo.toml | 1 + szl/src/main.rs | 2 +- szl/src/netboot.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/szl/Cargo.toml b/szl/Cargo.toml index 8fc0b85..2f3fd01 100644 --- a/szl/Cargo.toml +++ b/szl/Cargo.toml @@ -16,6 +16,7 @@ default = ["target_zc706"] [dependencies] log = "0.4" byteorder = { version = "1.3", default-features = false } +fatfs = { git = "https://github.com/rafalh/rust-fatfs", default-features = false } libboard_zynq = { path = "../libboard_zynq" } libsupport_zynq = { path = "../libsupport_zynq" } diff --git a/szl/src/main.rs b/szl/src/main.rs index fc91b7e..82dee7a 100644 --- a/szl/src/main.rs +++ b/szl/src/main.rs @@ -8,7 +8,7 @@ mod netboot; use alloc::rc::Rc; use core::mem; -use core_io::{Read, Seek}; +use fatfs::io::{Read, Seek}; use libboard_zynq::{ self as zynq, clocks::source::{ArmPll, ClockSource, IoPll}, diff --git a/szl/src/netboot.rs b/szl/src/netboot.rs index 8552a6e..770c270 100644 --- a/szl/src/netboot.rs +++ b/szl/src/netboot.rs @@ -1,7 +1,7 @@ use alloc::vec; use alloc::vec::Vec; use byteorder::{ByteOrder, NetworkEndian}; -use core_io::{Read, Seek}; +use fatfs::io::{Read, Seek}; use libboard_zynq::{ devc, eth::Eth,