Skip to content
Open
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
5 changes: 0 additions & 5 deletions .cargo/config

This file was deleted.

14 changes: 14 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
runner = "probe-rs run --chip STM32F765VGTx"

[build]
target = "thumbv7em-none-eabihf"

rustflags = [
"-C", "link-arg=-Tlink.x",
"-C", "link-arg=-Tdefmt.x",
"-C", "link-arg=--nmagic",
]

[env]
DEFMT_LOG = "debug"
35 changes: 0 additions & 35 deletions .gdbinit

This file was deleted.

3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

17 changes: 0 additions & 17 deletions .idea/spi-memory.iml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"editor.formatOnSave": true,
"rust-analyzer.cargo.target": "thumbv7em-none-eabihf",
"rust-analyzer.check.allTargets": false,
// "rust-analyzer.cargo.noDefaultFeatures": true
}
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## Unreleased

* Implement `Display` for `Error`
* Migrate to embedded-hal 1.0 and update dependencies
* SpiDevice for initialization

## 0.2.0 - 2020-03-25

Expand Down
66 changes: 28 additions & 38 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,53 +1,43 @@
[package]
name = "w25q"
name = "spi-memory"
version = "0.2.9"
authors = ["Jonas Schievink <jonasschievink@gmail.com>", "Henrik Böving <hargonix@gmail.com>", "David O'Connor <the_alchemist@fastmail.com>", "Diego Frenoux <diego@churrosoft.ar>"]
edition = "2018"
authors = ["Jonas Schievink <jonasschievink@gmail.com>", "Henrik Böving <hargonix@gmail.com>", "David O'Connor <the_alchemist@fastmail.com>", "Diego Frenoux <diego@churrosoft.ar>", "Malte Brieske <mail@mbrieske.de>"]
edition = "2024"
description = "A generic driver for different SPI Flash and EEPROM chips"
documentation = "https://docs.rs/spi-memory/"
repository = "https://github.com/Churrosoft/spi-memory"
repository = "https://github.com/swobbee-dev/spi-memory"
keywords = ["embedded-hal-driver", "serial", "flash", "eeprom", "spi"]
categories = ["embedded"]
readme = "README.md"
license = "0BSD"

# cargo-release configuration
[package.metadata.release]
tag-message = "{{version}}"
no-dev-version = true
pre-release-commit-message = "Release {{version}}"

# Change the changelog's `Unreleased` section to refer to this release and
# prepend new `Unreleased` section
[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = "## Unreleased"
replace = "## Unreleased\n\nNo changes.\n\n## {{version}} - {{date}}"

# Bump the version inside the example manifest in `README.md`
[[package.metadata.release.pre-release-replacements]]
file = "README.md"
search = 'w25q = "[a-z0-9\\.-]+"'
replace = 'w25q = "{{version}}"'

# Bump the version referenced by the `html_root_url` attribute in `lib.rs`
[[package.metadata.release.pre-release-replacements]]
file = "src/lib.rs"
search = "https://docs.rs/w25q/[a-z0-9\\.-]+"
replace = "https://docs.rs/w25q/{{version}}"

[dependencies]
embedded-hal = "0.2.5"
log = { version = "0.4.6", optional = true }
bitflags = "1.0.4"
embedded-hal = "1.0.0"
log = { version = "0.4.27", optional = true }
defmt = { version = "1.0.1", optional = true }
bitflags = "2.9.1"
embedded-hal-async = "1.0.0"
maybe-async = "0.2.10"

[dev-dependencies]
cortex-m = "0.6.0"
cortex-m-rt = "0.6.8"
cortex-m-semihosting = "0.3.3"
stm32f4xx-hal = { version = "0.7.0", features = ["stm32f401"] }
panic-semihosting = "0.5.2"
cortex-m = { version = "0.7.7", features = ["critical-section-single-core"] }
cortex-m-rt = "0.7.5"
cortex-m-semihosting = "0.5.0"
panic-probe = { version = "1.0.0", features = ["print-defmt"] }
defmt = "1.0.1"
defmt-rtt = "1.0.0"
embedded-hal = "1.0.0"
embedded-hal-bus = "0.3.0"
embassy-embedded-hal = "0.3.1"
embassy-stm32 = { version = "0.2.0", features = ["defmt", "stm32f765vg", "time-driver-any", "exti", "unstable-pac", "memory-x"] }
embassy-time = { version = "0.4.0", features = ["defmt", "tick-hz-32_768"] }
heapless = "0.8.0"
embassy-sync = "0.7.0"
embassy-executor = { version = "0.7.0", features = ["arch-cortex-m", "executor-thread"] }

[features]
blocking = ["maybe-async/is_sync"]

[profile.dev]
opt-level = "z"
panic = "abort"
panic = "abort"
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Copyright (C) Jonas Schievink <jonasschievink@gmail.com>
Copyright (C) 2025 Malte Brieske <mail@mbrieske.de>

Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted.
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

[![crates.io](https://img.shields.io/crates/v/spi-memory.svg)](https://crates.io/crates/spi-memory)
[![docs.rs](https://docs.rs/spi-memory/badge.svg)](https://docs.rs/spi-memory/)
[![Build Status](https://travis-ci.org/jonas-schievink/spi-memory.svg?branch=master)](https://travis-ci.org/jonas-schievink/spi-memory)

This crate provides a generic [`embedded-hal`]-based driver for different
families of SPI Flash and EEPROM chips.
Expand All @@ -13,6 +12,11 @@ support other families though!
Please refer to the [changelog](CHANGELOG.md) to see what changed in the last
releases.

## Attribution

This crate is based on the original work by Jonas Schievink at https://github.com/jonas-schievink/spi-memory
and the fork at https://github.com/Churrosoft/spi-memory.

[`embedded-hal`]: https://github.com/rust-embedded/embedded-hal

## Usage
Expand All @@ -21,7 +25,7 @@ Add an entry to your `Cargo.toml`:

```toml
[dependencies]
spi-memory = "0.2.0"
spi-memory = "0.2.9"
```

Check the [API Documentation](https://docs.rs/spi-memory/) for how to use the
Expand Down
13 changes: 0 additions & 13 deletions RELEASE_PROCESS.md

This file was deleted.

13 changes: 0 additions & 13 deletions dev-board/README.md

This file was deleted.

Binary file removed dev-board/dev-board-bottom.png
Binary file not shown.
Binary file removed dev-board/dev-board-top.png
Binary file not shown.
12 changes: 0 additions & 12 deletions dev-board/pcb/.gitignore

This file was deleted.

Loading