Commit graph

12 commits

Author SHA1 Message Date
René van Dorst
1d4d11ba25 refactor write_fifo(), don´t copy frame data
Now this function uses frame data directly in the SPI transaction
instead making a copy of it.
Also fixing some length calculations and refactor/add tests to test this
function.
2023-08-24 00:52:21 +02:00
René van Dorst
5f5e3bcd18 Replace size_align_u32() with next_multiple_of()
Currently next_multiple_of() is behinged a Feature gate: int_rounding.
See https://github.com/rust-lang/rust/issues/88581
But it seems that this function is stablized in rust 1.73.
See https://github.com/rust-lang/rust/pull/94455

Currently Embassy is still using nightly for many other unstable
features. So I do see an issue to use this function.
2023-08-24 00:52:21 +02:00
René van Dorst
4b6045d446 Remove the SPI::Error as a generic parameter. 2023-08-24 00:52:21 +02:00
René van Dorst
ca588f901f add embassy-net-adin1110 to .github/ci/doc.sh 2023-08-24 00:52:21 +02:00
René van Dorst
0a7c061ddc rustfmt 2023-08-24 00:52:21 +02:00
René van Dorst
1ded213ae9 remove the type_alias_impl_trait feature 2023-08-24 00:52:21 +02:00
René van Dorst
0e9524de62 more clippy fixes 2023-08-24 00:52:21 +02:00
René van Dorst
e082cd0cda Remove unneeded files. 2023-08-24 00:52:21 +02:00
René van Dorst
10bf33dcac Fix linting.
I like program with deny(clippy::pedantic) but it was set as allowed, so
I did get less linting errors/hints. Now it is corrected and also fix
the lint errors and hints.

Also fixes some comment and demagic some values.

Rename `FEC` to more appropriate name `FSC`.
2023-08-24 00:52:21 +02:00
René van Dorst
46ddf7013a update README.md after review 2023-08-24 00:52:21 +02:00
René van Dorst
577d644e22 fix warning 2023-08-24 00:52:21 +02:00
René van Dorst
e19f7d9a76 Add embassy-net-adin1110
This add a library for Analog ADIN1110 SPE SPI chip.
This library is inspired by `embassy-net-w5500`.
2023-08-24 00:43:51 +02:00