Commit Graph

40 Commits

Author SHA1 Message Date
Ulf Lilleengen
51a67cb69a fix: expose less 2023-12-20 13:34:34 +01:00
Ulf Lilleengen
b8777eaea2 better keep missing docs for into 2023-12-20 13:12:32 +01:00
Ulf Lilleengen
b0583b17cb fix: make non-public instead 2023-12-20 13:08:06 +01:00
Ulf Lilleengen
246c49621c docs: embassy-net-adin1110 2023-12-20 12:52:35 +01:00
Dario Nieuwenhuis
98481c20fe use released embedded-hal-mock. 2023-12-14 21:11:33 +01:00
Dario Nieuwenhuis
d81395fab3 Update embedded-hal to 1.0.0-rc.3 2023-12-14 16:19:32 +01:00
Scott Mabin
334900752a update release version in examples and other crates 2023-12-04 13:15:10 +00:00
Dario Nieuwenhuis
c6989dfbca Remove nightly and unstable-traits features in preparation for 1.75. 2023-11-29 17:26:33 +01:00
Dario Nieuwenhuis
4634316749 Update embedded-(hal,io,nal). 2023-11-29 17:01:36 +01:00
Dario Nieuwenhuis
4647df14b1 Update heapless to v0.8, embedded-nal-async to v0.7 2023-11-10 16:43:53 +01:00
Alex Martens
dcce8945af embedded-hal-mock: git -> 0.10.0-rc.1 2023-11-01 16:46:15 -07:00
Dario Nieuwenhuis
e519e00265 Update Rust nightly. 2023-11-01 04:56:56 +01:00
Dániel Buga
40e4ca4751 Prepare embassy-net(/-driver,/-driver-channel) 0.2.0 2023-10-16 20:59:06 +02:00
Dario Nieuwenhuis
213b4c9dca time: add links key, release v0.1.5. 2023-10-16 20:11:35 +02:00
Adam Greig
0621e957a0
time: Update examples, tests, and other code to use new Timer::after_x convenience methods 2023-10-15 01:30:12 +01:00
Dániel Buga
02d2c06b23 Release embassy-time 0.1.4 2023-10-12 18:14:33 +02:00
René van Dorst
c27b0296fe Add more documentation and comment 2023-09-07 22:32:20 +02:00
René van Dorst
336ae54a56 mdio: reenable and async the tests 2023-09-07 21:25:53 +02:00
René van Dorst
d6a1118406 fix some spelling 2023-09-07 21:02:33 +02:00
René van Dorst
1db00f5439 embassy-net-adin1110: Add basic benchmark results. 2023-08-28 20:11:56 +02:00
René van Dorst
7fc17bc150 embassy-net-adin1110 bump deps. 2023-08-28 19:29:32 +02:00
René van Dorst
6e616a6fe6 Update comment about turn around byte. 2023-08-28 19:23:15 +02:00
René van Dorst
d02886786e Show the error type 2023-08-28 19:00:00 +02:00
René van Dorst
e08dbcd027 embassy-net-adin1110: bump version v0.2.0 2023-08-28 00:32:05 +02:00
René van Dorst
5c27265a21 Add fmt.rs to improve log/debug and embbed and PC
Also add `defmt` to the features list.
2023-08-28 00:31:51 +02:00
René van Dorst
13a0be6289 Validate FCS in fifo_read() and refactor tests.
Adding TestHarnass to declutter the tests.
Also added a test for FCS and SPI_CRC.
2023-08-28 00:28:40 +02:00
René van Dorst
7f7256050c Don't let the MAC add FCS when it is done by app
The application can append FSC to outgoing packets and the MAC can detect
and report when a bitflip has occurred.

But the MAC can also add FSC if we want, but we can´t do both.
When adding FSC by the application and MAC results in the packet drop by
the MAC when the TX packet size > (MTU - 4).
Having the application append the FSC is preferred.

So set the right config bits.
2023-08-27 10:37:45 +02:00
René van Dorst
4b6538c8a8 Fix read_fifo() better readout and more checks
read_fifo() used part of the frame buffer to readout non-frame data.
This results in incorrect readout of the fifo buffer but also the full
MTU could not be used.

Also added some more tests to check this and that the readout is a
multipule of 4 bytes.
2023-08-27 10:37:45 +02:00
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