forked from lupyuen/stm32-blue-pill-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.test
136 lines (103 loc) · 2.98 KB
/
Cargo.test
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# This file declares the dependencies for the Rust program.
[package]
name = "stm32-blue-pill-rust"
version = "0.3.3"
authors = ["Lee Lup Yuen <luppy@appkaki.com>"]
description = "A sample Rust application for STM32 Blue Pill microcontrollers"
keywords = ["arm", "cortex-m", "stm32", "bluepill"]
categories = ["embedded", "no-std"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/lupyuen/stm32-blue-pill-rust"
# To minimize the executable size, we should always compile with --release flag.
[profile.release]
# To optimize the usage of many crates, we should link with Link Time Optimization (LTO).
lto = true
codegen-units = 1
# Enable debugging in release mode.
debug = true
# Dependencies for the main program: src/main.rs
[dependencies.cortex-m]
version = "0.5.0"
#### TODO: Test version 0.5.1. Previously we used 0.5.0.
[dependencies.cortex-m-rt]
version = "0.5.1"
[dependencies.cortex-m-semihosting]
version = "0.3.0"
[dependencies.panic-semihosting]
version = "0.3.0"
[dependencies.stm32f103xx]
git = "https://github.com/japaric/stm32f103xx"
version = "0.10.0"
[dependencies.stm32f103xx-hal]
git = "https://github.com/japaric/stm32f103xx-hal"
version = "0.1.0"
# Dependencies for the RTFM examples: examples/*
[dev-dependencies]
# For RTFM: Take the latest revision of the "tq" branch, which has fixed the macro issue.
# TODO: Switch to main branch.
cortex-m-rtfm = { git = "https://github.com/japaric/cortex-m-rtfm", rev = "7b598c0749aa5390cfefc8e138c05fafa7599dc6" }
panic-semihosting = "0.3.0"
typenum = "1.10.0"
# cortex-m-rtfm-macros = { path = "macros", version = "0.3.1" }
# panic-abort = "0.1.1"
# panic-itm = "0.1.1"
# heapless = "0.3.6"
# heapless = { git = "https://github.com/japaric/heapless", branch = "object-pool" }
# Here are all the example programs and the features they need.
# Blink the LED.
[[example]]
name = "blinky"
[[example]]
name = "schedule-after"
required-features = ["timer-queue"]
[[example]]
name = "schedule-now"
[[example]]
name = "minimal"
[[example]]
name = "idle"
[[example]]
name = "event-task"
[[example]]
name = "schedule-now-from-event-task"
required-features = ["timer-queue"]
[[example]]
name = "schedule-after-from-event-task"
required-features = ["timer-queue"]
[[example]]
name = "periodic-payload"
required-features = ["timer-queue"]
[[example]]
name = "periodic-preemption-payload"
required-features = ["timer-queue"]
[[example]]
name = "periodic-preemption"
required-features = ["timer-queue"]
[[example]]
name = "periodic"
required-features = ["timer-queue"]
[[example]]
name = "user-struct"
required-features = ["timer-queue"]
# Old examples to be migrated.
# Single task example
[[example]]
name = "old-one-task"
[[example]]
name = "old-custom-type"
[[example]]
name = "old-full-syntax"
[[example]]
name = "old-generics"
[[example]]
name = "old-late-resources"
[[example]]
name = "old-nested"
[[example]]
name = "old-preemption"
[[example]]
name = "old-safe-static-mut-ref"
[[example]]
name = "old-two-tasks"
[[example]]
name = "old-zero-tasks"