Dario Nieuwenhuis
2221e1fa93
Replace rustflags with build.rs extra-link-args.
...
Rustflags apply to ALL the crates in the graph, while we only need
them for the toplevel crate which is the only one getting linked.
Rustflags are not equal for all crates, this caused cargo to re-build the
same dependency crate multiple times uselessly. After this change, deps
are reused more, making builds faster.
Note that this only applies when sharing the target/ dir for multiple crates
in the repo which is not the default.
2021-11-07 23:52:11 +01:00
bors[bot]
90095adedf
Merge #471
...
471: Update stm32-data r=Dirbaio a=Dirbaio
Updates to include https://github.com/embassy-rs/stm32-data/pull/98 to check I haven't broken anything.
Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net >
2021-11-05 18:31:19 +00:00
Dario Nieuwenhuis
a8c78a3807
Update stm32-data
2021-11-05 19:30:53 +01:00
bors[bot]
5d863ad19f
Merge #469
...
469: Add support for STM32H723 and fix eth example. r=matoushybl a=matoushybl
Co-authored-by: Matous Hybl <hyblmatous@gmail.com >
2021-11-04 15:28:09 +00:00
Matous Hybl
9b5d9fbfca
Fix v2 ethernet pin definitions. Fix ethernet example for H7 nucleos.
2021-11-04 16:25:30 +01:00
bors[bot]
26f86d7f36
Merge #470
...
470: Add TCP listen. r=Dirbaio a=matoushybl
Co-authored-by: Matous Hybl <hyblmatous@gmail.com >
2021-11-04 12:49:41 +00:00
Matous Hybl
d742d0252e
Add TCP listen.
2021-11-04 13:34:13 +01:00
Jacob Rosenthal
03f2c593d6
fix slice_in_ram for arbitrary size types
2021-11-03 18:56:02 -07:00
Jacob Rosenthal
64e1426b54
clean up some todo comments around infinite play
2021-11-03 18:46:42 -07:00
Jacob Rosenthal
b726ef1886
make SequenceConfig struct is consistent with other Config structs, that are always non_exhaustive and have a Default
2021-11-03 18:37:54 -07:00
Jacob Rosenthal
d961fd1015
rename to SimplePwm and SequencePwm
2021-11-03 18:25:44 -07:00
Jacob Rosenthal
9a6c2de4ea
fix safety comments
2021-11-03 18:19:43 -07:00
Jacob Rosenthal
511c5cb892
intenset in a noop
2021-11-03 18:16:00 -07:00
Jacob Rosenthal
82695c8f65
make both news configure registers in same order
2021-11-03 18:15:42 -07:00
Jacob Rosenthal
44375b427c
restore example and add set_time_stretch api
2021-11-03 15:29:09 -07:00
bors[bot]
1bf6e646c9
Merge #465
...
465: Adjust for STM32U5. r=lulf a=bobmcwhirter
Co-authored-by: Bob McWhirter <bmcwhirt@redhat.com >
2021-11-02 20:42:41 +00:00
Bob McWhirter
f9c266bc10
Omg. More formatting.
2021-11-02 16:06:49 -04:00
Bob McWhirter
16c88e3094
Need to include a bit of embassy for the NVIC.
2021-11-02 15:58:40 -04:00
Bob McWhirter
9deafa8bab
Remove unused imports.
2021-11-02 15:56:04 -04:00
Bob McWhirter
d1272e00bb
Prefix unused variable for now.
2021-11-02 15:45:56 -04:00
Bob McWhirter
44056c2e75
Less allowy.
2021-11-02 15:32:20 -04:00
bors[bot]
569ecd699d
Merge #467
...
467: docs: fix some `cargo doc` warnings r=lulf a=numero-744
There are still 3 warnings (below)
```
Documenting embassy v0.1.0 (embassy)
warning: unresolved link to `channel`
--> src/channel/mpsc.rs:241:22
|
241 | /// [`channel`]: channel
| ^^^^^^^ no item named `channel` in scope
|
= note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
warning: unresolved link to `Task::spawn`
--> src/executor/raw/mod.rs:105:12
|
105 | /// with [`Task::spawn()`], which will fail if it is already spawned.
| ^^^^^^^^^^^^^ no item named `Task` in scope
warning: public documentation for `spawn` links to private item `Executor::spawn`
--> src/executor/raw/mod.rs:156:17
|
156 | /// cause [`Executor::spawn()`] to return the error.
| ^^^^^^^^^^^^^^^^^ this item is private
|
= note: `#[warn(rustdoc::private_intra_doc_links)]` on by default
= note: this link will resolve properly if you pass `--document-private-items`
warning: `embassy` (lib doc) generated 3 warnings
```
Co-authored-by: Côme ALLART <come.allart@etu.emse.fr >
2021-11-02 19:31:15 +00:00
Bob McWhirter
076c795ebb
Even more allowed unused.
2021-11-02 15:28:14 -04:00
Bob McWhirter
6bbf450478
Allow unused macros temporarily until U5 supports DMA.
2021-11-02 15:20:42 -04:00
Bob McWhirter
ee1ea44b60
Add stm32u5 examples to CI run.
2021-11-02 15:11:30 -04:00
Jacob Rosenthal
682274870f
set_duty does indeed loop forever
2021-11-02 11:56:01 -07:00
Bob McWhirter
eaaaa2460a
Formatting, per usual.
2021-11-02 14:53:53 -04:00
Bob McWhirter
3ab1775820
Add STM32U5 example.
2021-11-02 14:43:42 -04:00
bors[bot]
11b0a89b6a
Merge #466
...
466: Update versions of critical-section and atomic-polyfill r=lulf a=lulf
Co-authored-by: Ulf Lilleengen <ulf.lilleengen@gmail.com >
2021-11-02 18:10:01 +00:00
Jacob Rosenthal
c939edb8d0
rename error enum again
2021-11-02 10:57:01 -07:00
Ulf Lilleengen
205a223af3
Update versions of critical-section and atomic-polyfill
2021-11-02 18:52:03 +01:00
Côme ALLART
3dd39e3d46
docs: fix some cargo doc
warnings
2021-11-02 18:49:01 +01:00
Bob McWhirter
705523d0ea
Fix formatting.
2021-11-02 12:13:42 -04:00
Bob McWhirter
29ff0317a3
Update stm32-data.
2021-11-02 12:06:32 -04:00
Bob McWhirter
f12b70535b
Adjust for STM32U5.
2021-11-02 12:05:24 -04:00
Jacob Rosenthal
4647792ad6
seperate start from pwmseq::new
2021-11-01 20:50:18 -07:00
Jacob Rosenthal
49253152cf
seperate sequence from duty cycle pwm struct
2021-11-01 20:50:14 -07:00
Jacob Rosenthal
b297e5f7bd
led dimming example, dont need to keep all examples, just covering ground to test api
2021-11-01 13:51:40 -07:00
Jacob Rosenthal
74e7f4a227
comments
2021-11-01 13:16:24 -07:00
Jacob Rosenthal
f2cfbe4262
align pwm.set_duty with embedded hal to not be one shot
2021-11-01 13:08:55 -07:00
Jacob Rosenthal
5285179218
generalize new and change pwm example to a servo
2021-11-01 13:08:51 -07:00
Jacob Rosenthal
12b2c5d5f7
better not as a constructor?
2021-11-01 08:54:07 -07:00
Jacob Rosenthal
90be851e4b
reduce complexity of loopmode
2021-11-01 08:45:07 -07:00
Jacob Rosenthal
48673e27cd
fix max sequence length
2021-11-01 01:20:04 -07:00
Jacob Rosenthal
14dc524b84
documentation
2021-11-01 01:20:01 -07:00
Jacob Rosenthal
7b092f463e
clarify infinite
2021-11-01 00:30:42 -07:00
Jacob Rosenthal
72fa1c8482
fix additional to remove stuck light at end
2021-11-01 00:25:08 -07:00
Jacob Rosenthal
d98a1707b9
using write dont need to clear
2021-10-31 23:28:26 -07:00
Jacob Rosenthal
78e382c9aa
stop->sequence_stop
2021-10-31 23:13:49 -07:00
Jacob Rosenthal
96df2fdb43
lost comment
2021-10-30 16:23:45 -07:00