-
Notifications
You must be signed in to change notification settings - Fork 219
Expand file tree
/
Copy pathCargo.toml
More file actions
104 lines (85 loc) · 2.16 KB
/
Cargo.toml
File metadata and controls
104 lines (85 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[package]
authors = [
"Paul Sajna <sajattack@gmail.com>",
"Wez Furlong <wez@wezfurlong.org>",
]
categories = ["embedded", "hardware-support", "no-std"]
description = "Board Support crate for the Adafruit PyGamer"
edition = "2021"
exclude = ["assets"]
keywords = ["no-std", "arm", "cortex-m", "embedded-hal"]
license = "MIT OR Apache-2.0"
name = "pygamer"
readme = "README.md"
repository = "https://github.com/atsamd-rs/atsamd"
version = "0.16.3"
[dependencies]
cortex-m = {version = "0.7", features = ["critical-section-single-core"]}
embedded-hal-bus = "0.3.0"
# This version is pinned as recommended by: https://docs.rs/embedded-hal-bus/0.2.0/embedded_hal_bus/spi/struct.ExclusiveDevice.html#method.new_no_delay
st7735-lcd = "=0.10.0"
[dependencies.cortex-m-rt]
optional = true
version = "0.7"
[dependencies.atsamd-hal]
default-features = false
path = "../../hal"
version = "0.23.3"
features = ["undoc-features"]
[dependencies.usb-device]
optional = true
version = "0.3.2"
[dependencies.ws2812-spi]
features = ["mosi_idle_high"]
optional = true
version = "0.5.0"
[dev-dependencies]
embedded-graphics = "0.8.1"
embedded-sdmmc = "0.8.1"
lis3dh = "0.4.3"
micromath = "2.1"
panic-halt = "1"
rtic = {version = "2.1.2", features = ["thumbv7-backend"]}
smart-leds = "0.4"
tinybmp = "0.6"
usbd-serial = "0.2"
[features]
# ask the HAL to enable atsamd51j support
default = ["rt", "atsamd-hal/samd51j"]
dma = ["atsamd-hal/dma"]
max-channels = ["dma", "atsamd-hal/max-channels"]
neopixel-spi = ["dep:ws2812-spi"]
panic_led = []
rt = ["cortex-m-rt", "atsamd-hal/samd51j-rt"]
usb = ["atsamd-hal/usb", "usb-device"]
# Enable async support from atsamd-hal
async = ["atsamd-hal/async"]
# Enable rtic support from atsamd-hal
rtic = ["atsamd-hal/rtic"]
# for cargo flash
[package.metadata]
chip = "ATSAMD51J19A"
[[example]]
name = "blinky_basic"
[[example]]
name = "blinky_rtic"
required-features = ["rtic"]
[[example]]
name = "button_rtic"
[[example]]
name = "clock_out"
[[example]]
name = "ferris_img"
[[example]]
name = "pwm_tc4"
[[example]]
name = "pwm_tcc0"
[[example]]
name = "qspi"
[[example]]
name = "sd_card"
[[example]]
name = "timer"
[[example]]
name = "usb_poll"
required-features = ["usb"]