File tree Expand file tree Collapse file tree 4 files changed +10
-18
lines changed Expand file tree Collapse file tree 4 files changed +10
-18
lines changed Original file line number Diff line number Diff line change 28
28
- log-rtt,defmt
29
29
# TODO: -log-rtt # log-rtt without defmt, more combos?
30
30
- log-itm
31
- - log-semihost
32
- - cordic,log-rtt,defmt
31
+ - log-semihost,can
32
+ - cordic,usb, log-rtt,defmt
33
33
34
34
steps :
35
35
- uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -15,9 +15,6 @@ version = "0.0.2"
15
15
nb = " 1"
16
16
stm32g4 = { version = " 0.22.0" , package = " stm32g4-staging" }
17
17
paste = " 1.0"
18
- bitflags = " 1.2"
19
- vcell = " 0.1"
20
- static_assertions = " 1.1"
21
18
fugit = " 0.3.7"
22
19
stm32-usbd = { version = " 0.7.0" , optional = true }
23
20
fixed = { version = " 1.28.0" , optional = true }
@@ -30,15 +27,12 @@ features = ["critical-section-single-core"]
30
27
[dependencies .fdcan ]
31
28
version = " 0.2.1"
32
29
features = [" fdcan_g0_g4_l5" ]
30
+ optional = true
33
31
34
32
[dependencies .cast ]
35
33
version = " 0.2.7"
36
34
default-features = false
37
35
38
- [dependencies .bare-metal ]
39
- features = [" const-fn" ]
40
- version = " 0.2.5"
41
-
42
36
[dependencies .embedded-hal-old ]
43
37
package = " embedded-hal"
44
38
features = [" unproven" ]
@@ -54,12 +48,8 @@ version = "0.1.2"
54
48
default-features = false
55
49
version = " 1.0.2"
56
50
57
- [dependencies .stable_deref_trait ]
58
- default-features = false
59
- version = " 1.1"
60
-
61
51
[dependencies .defmt ]
62
- version = " 0.3.2 "
52
+ version = " 1 "
63
53
optional = true
64
54
65
55
[dev-dependencies ]
@@ -110,6 +100,7 @@ cordic = ["dep:fixed"]
110
100
adc3 = []
111
101
adc4 = []
112
102
adc5 = []
103
+ can = [" dep:fdcan" ]
113
104
114
105
[profile .dev ]
115
106
codegen-units = 1
@@ -130,6 +121,10 @@ codegen-units = 1
130
121
incremental = false
131
122
lto = true
132
123
124
+ [[example ]]
125
+ name = " can-echo"
126
+ required-features = [" can" ]
127
+
133
128
[[example ]]
134
129
name = " flash_with_rtic"
135
130
required-features = [" stm32g474" ]
Original file line number Diff line number Diff line change 2
2
//!
3
3
4
4
use crate :: rcc:: { self , Rcc } ;
5
- use fdcan;
6
5
7
6
mod sealed {
8
7
/// A TX pin configured for CAN communication
Original file line number Diff line number Diff line change @@ -25,9 +25,6 @@ compile_error!(
25
25
stm32g4a1"
26
26
) ;
27
27
28
- extern crate bare_metal;
29
- extern crate void;
30
-
31
28
pub extern crate cortex_m;
32
29
pub extern crate nb;
33
30
pub extern crate stm32g4;
@@ -71,6 +68,7 @@ pub use crate::stm32::interrupt;
71
68
72
69
pub mod adc;
73
70
pub mod bb;
71
+ #[ cfg( feature = "can" ) ]
74
72
pub mod can;
75
73
pub mod comparator;
76
74
#[ cfg( feature = "cordic" ) ]
You can’t perform that action at this time.
0 commit comments