Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRAFT_PR: Add flexspi + SPI Storage support #312

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
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
22 changes: 13 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ default = ["mimxrt685s", "rt"]
## [`rp-pac`](https://docs.rs/crates/rp-pac). This brings in the
## [`cortex-m-rt`](https://docs.rs/cortex-m-rt) crate, which adds
## startup code and minimal runtime initialization.
rt = [
"mimxrt685s-pac?/rt",
"mimxrt633s-pac?/rt",
]
rt = ["mimxrt685s-pac?/rt", "mimxrt633s-pac?/rt"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how but its happening automatically. when I added my change, and saved the file, some of the lines are automatically getting formatted. Maybe because I am using rust-analyzer plugin?


## Enable [defmt support](https://docs.rs/defmt) and enables `defmt`
## debug-log messages and formatting in embassy drivers.
Expand Down Expand Up @@ -57,6 +54,7 @@ _mimxrt685s = []
_mimxrt633s = []

[dependencies]
storage-bus-service = { git = "https://github.com/Shaibal-Microsoft/embedded-services", version = "0.1.1" }
embassy-sync = { git = "https://github.com/embassy-rs/embassy" }
embassy-time-driver = { git = "https://github.com/embassy-rs/embassy", optional = true }
embassy-time-queue-utils = { git = "https://github.com/embassy-rs/embassy", optional = true }
Expand All @@ -76,8 +74,6 @@ critical-section = "1.1"
chrono = { version = "0.4", default-features = false, optional = true }
embedded-io = { version = "0.6.1" }
embedded-io-async = { version = "0.6.1" }
embedded-storage = { version = "0.3" }
embedded-storage-async = { version = "0.4.1" }
rand_core = "0.6.4"
fixed = "1.23.1"

Expand All @@ -87,13 +83,21 @@ embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = [
embedded-hal-1 = { package = "embedded-hal", version = "1.0" }
embedded-hal-async = { version = "1.0" }
embedded-hal-nb = { version = "1.0" }

mimxrt600-fcb = "0.1.0"
document-features = "0.2.7"
paste = "1.0"

# PACs
mimxrt685s-pac = { version = "0.2.2", optional = true, features = ["rt", "critical-section", "defmt"] }
mimxrt633s-pac = { version = "0.2.0", optional = true, features = ["rt", "critical-section", "defmt"] }
mimxrt685s-pac = { version = "0.2.2", optional = true, features = [
"rt",
"critical-section",
"defmt",
] }
mimxrt633s-pac = { version = "0.2.0", optional = true, features = [
"rt",
"critical-section",
"defmt",
] }
Comment on lines -95 to +100
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary change


[dev-dependencies]
embassy-executor = { git = "https://github.com/embassy-rs/embassy" }
Expand Down
3 changes: 3 additions & 0 deletions examples/rt685s-evk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ embassy-time = { git = "https://github.com/embassy-rs/embassy", features = [
"defmt",
"defmt-timestamp-uptime",
] }
storage-bus-service = { git = "https://github.com/Shaibal-Microsoft/embedded-services" }
embedded-hal-1 = { package = "embedded-hal", version = "1.0" }
embedded-hal-async = "1.0.0"
futures = { version = "0.3.30", default-features = false, features = [
"async-await",
] }
embedded-storage = { version = "0.3" }
embedded-storage-async = { version = "0.4.1" }
mimxrt600-fcb = "0.1.0"
rand = { version = "0.8.5", default-features = false }

Expand Down
2 changes: 1 addition & 1 deletion examples/rt685s-evk/memory.x
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ SECTIONS {
KEEP(* (.keystore))
. = ALIGN(4);
} > KEYSTORE
}
}
Loading