-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Has a little debug code left from atsamd-rs/atsamd#459
- Loading branch information
0 parents
commit aba11a5
Showing
3 changed files
with
610 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
Oops, something went wrong.