Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ rustflags = [
"-C", "link-arg=-error-limit=0",
"-C", "link-arg=-nmagic",
]
runner = ["probe-rs", "run", "--chip=mimxrt1170"]
15 changes: 10 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ version = "0.1.3"
# imxrt-rs dependencies
#######################

[dependencies.imxrt-enet]
workspace = true
optional = true

[dependencies.imxrt-dma]
workspace = true

Expand All @@ -88,10 +92,10 @@ features = ["imxrt-ral/imxrt1062", "imxrt1060"]
[features]
default = ["imxrt-usbd"]
imxrt1010 = ["imxrt-iomuxc/imxrt1010"]
imxrt1020 = ["imxrt-iomuxc/imxrt1020"]
imxrt1060 = ["imxrt-iomuxc/imxrt1060"]
imxrt1064 = ["imxrt-iomuxc/imxrt1060"]
imxrt1170 = ["imxrt-iomuxc/imxrt1170"]
imxrt1020 = ["imxrt-iomuxc/imxrt1020", "imxrt-enet"]
imxrt1060 = ["imxrt-iomuxc/imxrt1060", "imxrt-enet"]
imxrt1064 = ["imxrt-iomuxc/imxrt1060", "imxrt-enet"]
imxrt1170 = ["imxrt-iomuxc/imxrt1170", "imxrt-enet"]

################
# Extra features
Expand All @@ -102,10 +106,11 @@ imxrt1170 = ["imxrt-iomuxc/imxrt1170"]
eh02-unproven = []

[workspace]
members = ["board", "logging"]
members = ["board", "logging", "tools"]

[workspace.dependencies]
imxrt-dma = "0.1"
imxrt-enet = { git = "https://github.com/mciantyre/imxrt-enet" }
imxrt-iomuxc = "0.2.1"
imxrt-hal = { version = "0.5", path = "." }
imxrt-log = { path = "logging", default-features = false, features = [
Expand Down
11 changes: 11 additions & 0 deletions board/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ edition = { workspace = true }
# Only for testing, documentation.
publish = false

[dependencies.bitflags]
version = "1.2"

[dependencies.defmt]
version = "0.3"

Expand Down Expand Up @@ -54,6 +57,12 @@ version = "0.2"
version = "0.3"
optional = true

[dependencies.smoltcp]
version = "0.10.0"
optional = true
default-features = false
features = ["socket-tcp", "socket-udp", "socket-dhcpv4", "defmt"]

# knurling-rs style defmt-rtt with panic-probe
[target.thumbv7em-none-eabihf.dependencies.defmt-rtt]
version = "0.4"
Expand Down Expand Up @@ -123,6 +132,7 @@ imxrt1170evk-cm7 = [
"defmt-rtt",
"panic-probe",
"imxrt-log",
"enet",
]
logging-defmt = ["imxrt-log/defmt"]

Expand All @@ -133,5 +143,6 @@ logging-defmt = ["imxrt-log/defmt"]
#
# See board-specific documentation for its effects.
spi = []
enet = ["dep:smoltcp"]

lcd1602 = ["dep:lcd_1602_i2c"]
2 changes: 1 addition & 1 deletion board/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
16 * 1024 * 1024,
)
.rodata(imxrt_rt::Memory::Dtcm)
.stack_size(32 * 1024)
.stack_size(48 * 1024)
.build()?;
println!("cargo:rustc-cfg=board=\"imxrt1170evk-cm7\"");
println!("cargo:rustc-cfg=chip=\"imxrt1170\"");
Expand Down
Loading
Loading