Skip to content

Commit

Permalink
Copy+comment atsamd-usbd-uart
Browse files Browse the repository at this point in the history
Has a little debug code left from
atsamd-rs/atsamd#459
  • Loading branch information
ianrrees committed Jul 8, 2021
0 parents commit aba11a5
Show file tree
Hide file tree
Showing 3 changed files with 610 additions and 0 deletions.
39 changes: 39 additions & 0 deletions atsamd-usbd-spi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[package]
name = "atsamd-usbd-spi"
version = "0.1.0"
authors = ["Ian Rees <code@ianrees.nz>"]
keywords = ["no-std", "arm", "cortex-m", "atsamd", "usb", "embedded-hal"]
edition = "2018"

[dependencies]
# Using bbqueue because it gives a low-cost method to attempt a USB write,
# without removing data from the structure, where heapless::spsc would seem to
# require an intermediate buffer.
bbqueue = {version = "0.4.12", features = ["thumbv6"]}

cortex-m = "~0.6"

# TODO Remove defmt before publishing?
defmt = "0.2.0"
defmt-rtt = "0.2.0"

usb-device = "0.2.7"

[dependencies.atsamd-hal]
# TODO stop using this
path = "/home/irees/Projects/20201112 - atsamd-rs/hal"

# TODO specify as a minimum version of atsamd-hal once the UARTv2 PR is merged
features = ["usb"]

[features]
default = [
"defmt-default",
]

defmt-default = []
defmt-trace = []
defmt-debug = []
defmt-info = []
defmt-warn = []
defmt-error = []
5 changes: 5 additions & 0 deletions atsamd-usbd-spi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
atsamd-usbd-spi
===

Work in progress toward a firmware USB Class for ATSAMD parts, which implements a USB-to-SPI-master.

Loading

0 comments on commit aba11a5

Please sign in to comment.