Commit Graph

8640 Commits

Author SHA1 Message Date
Dario Nieuwenhuis
7d65c5c4fa usb-synopsys-otg: ensure ep alloc fails when endpoint_count < MAX_EP_COUNT.
Before, it would alloc the endpoint fine and then panic later due to out of range.
This ensures it falis at ep alloc time, and with a panic message that says
what's the actual problem: "no free endpoints available".
2024-08-03 00:15:45 +02:00
Dario Nieuwenhuis
a2ea2630f6
Merge pull request #3224 from towynlin/adin1110-readme
Fix broken link to OPEN Alliance spec for ADIN1110
2024-08-02 15:49:23 +00:00
Zachary Crockett
4e905bfcba
Fix broken link to OPEN Alliance spec for ADIN1110 2024-08-02 08:39:37 -07:00
Ulf Lilleengen
f2c29ba9d8
Merge pull request #3174 from JomerDev/add-count-to-read_to_break
RP2040: Add read_to_break_with_count
2024-08-02 13:50:32 +00:00
Dario Nieuwenhuis
2b031756c6
Merge pull request #3222 from bobrippling/fix/bootloader-overflow
Fix bootloader-rp's bootloader memory region overflow
2024-07-31 17:20:44 +00:00
Rob Pilling
ec53b9187d Fix bootloader-rp's bootloader memory region overflow
The bootloader region (`FLASH`) mentioned below overflows into the
`BOOTLOADER_STATE` region by `0x100` bytes

```
0x10000100 + 24K = 0x10006100
```

32adddff9c/examples/boot/bootloader/rp/memory.x (L3-L8)
2024-07-31 18:16:04 +01:00
Ulf Lilleengen
32adddff9c
Merge pull request #3221 from wllenyj/lazy-lock
embassy-sync: fix the data of LazyLock never drop
2024-07-31 16:28:06 +00:00
Ulf Lilleengen
91f135e25b
Merge pull request #3161 from diondokter/hsem
Add function to get the active HSEM interrupt
2024-07-31 14:34:11 +00:00
wanglei
05562b92af embassy-sync: more unit-test for LazyLock
Signed-off-by: wanglei <wllenyj@gmail.com>
2024-07-31 10:32:44 +08:00
wanglei
93696c912e embassy-sync: fix the data of LazyLock never drop
Using `union` can save more space.

And the `MaybeUninit<T>` will never drop the T, when dropping the
`MaybeUninit<T>`. Fixed it.

Signed-off-by: wanglei <wllenyj@gmail.com>
2024-07-31 10:31:56 +08:00
Dario Nieuwenhuis
e89ff7d129
Merge pull request #3219 from mirkomartn/bound-dns-servers
embassy-net: dns: bound the dns_servers slice
2024-07-29 21:36:35 +00:00
Gasper Stukelj
c5d077a2c6 embassy-net: dns: bound the dns_servers slice
`smoltcp::socket::dns::Socket::update_servers()` will
panic if a slice exceeding a fixed length is passed
to it. This is can be especially inconvenient when
using DHCP config.

Avoid panicking by using at most `DNS_MAX_SERVER_COUNT`
DNS servers from the config.
2024-07-29 23:24:44 +02:00
Ulf Lilleengen
7d3c852613
Merge pull request #3215 from samueltardieu/lazy-lock
embassy-sync: add LazyLock
2024-07-29 12:01:17 +00:00
Samuel Tardieu
05e0f12846 embassy-sync: add LazyLock
`LazyLock` is inspired by Rust 1.80.0's `std::sync::LazyLock` type.
2024-07-29 11:04:59 +02:00
rafael
e05e5d33f0 review comments 2024-07-28 00:19:54 +02:00
Dario Nieuwenhuis
4e5a646f8b
Merge pull request #3217 from samueltardieu/f1-flash-bsy
embassy-stm32: wait for BSY flag to clear before flashing
2024-07-27 19:35:25 +00:00
Samuel Tardieu
8680c86894 embassy-stm32: wait for BSY flag to clear before flashing
While not waiting for the BSY flag to clear works on STM32F103C8T6, it
does not on APM32F103C8T6. Only one half-word gets written while the
other one gets lost.
2024-07-27 15:07:04 +02:00
rafael
5d46b694ca add example to rp: orchestrate multiple tasks 2024-07-27 14:57:46 +02:00
rafael
97125e53cd add example to rp: orchestrate multiple tasks 2024-07-27 14:54:02 +02:00
rafael
b2d8d7f009 add example to rp: orchestrate multiple tasks 2024-07-27 14:48:42 +02:00
Tobias Naumann
60aa9c15a8 Implement low-power feature for stm32l4 MCUs 2024-07-26 14:25:10 +02:00
Dario Nieuwenhuis
b88dc137e7
Merge pull request #3211 from busslina/original-mirror-main-fixing-missing-reexport
Fixing missing re-export
2024-07-25 18:07:20 +00:00
Vicente
29d79d3af2 Added doc comment to a public enum variant 2024-07-25 20:01:19 +02:00
Vicente
da5ecd29f1 Formmating 2024-07-25 19:55:54 +02:00
Vicente
6eb447eb58 Adding pub struct docs
cyw43::ScanOptions
2024-07-25 19:45:52 +02:00
Vicente
3efbd60a90 Fixing missing re-export
cyw::control::ScanOptions
2024-07-25 19:24:37 +02:00
Dario Nieuwenhuis
8c4f044ae7
Merge pull request #3207 from diondokter/fix-opamp-lifetimes
Add extra lifetime to opamp-using structs
2024-07-25 15:14:10 +00:00
Dario Nieuwenhuis
43b878708d
Merge pull request #3209 from embassy-rs/rust180
Update to Rust 1.80, make check-cfg unconditional.
2024-07-25 14:09:24 +00:00
Dion Dokter
4a8abe8028 Relax lifetimes again 2024-07-25 16:01:27 +02:00
Dario Nieuwenhuis
2d678d6956 Update to Rust 1.80, make check-cfg unconditional. 2024-07-25 15:53:00 +02:00
Dario Nieuwenhuis
8b4bb625be
Merge pull request #3206 from embassy-rs/rp-timer-test
tests/rp: add timer test.
2024-07-25 10:25:05 +00:00
Dion Dokter
6ef9e564ca Add extra lifetime to opamp-using structs 2024-07-25 12:22:55 +02:00
Dario Nieuwenhuis
1598dd55e4 tests/rp: add timer test. 2024-07-25 12:22:49 +02:00
Dario Nieuwenhuis
2436335f9b ci: add instructions to install cargo-batch if not installed. 2024-07-24 17:17:04 +02:00
Dario Nieuwenhuis
2537fc6f4f
Merge pull request #3188 from ninjasource/sdmmc-dma-buffers
embassy-stm32: Allow cmd block to be passed in for sdmmc dma transfers
2024-07-22 19:44:00 +00:00
James Munns
ea4c2ca95d
Merge pull request #3200 from Dygear/main
Documentation Link Fixes
2024-07-22 11:48:12 +00:00
Mark Tomlin
4811c14cc8 Updated cargo toml section links. 2024-07-22 07:26:55 -04:00
Mark Tomlin
dc6639fa4d Updated github branch from master to main. 2024-07-22 06:59:13 -04:00
Samuel Hicks
e6f4db507d net/tcp: fix flush() waiting forever if socket is reset with pending write data 2024-07-19 17:45:29 +01:00
Jomer.Dev
7c1ecae53f Add read_to_break_with_count 2024-07-19 16:01:20 +02:00
David Haig
e7270e00f6 Added set_cmd_block for dma memory compatibility 2024-07-19 02:03:53 +01:00
James Munns
2766993099
Merge pull request #3159 from kalkyl/shared-bus
Add example for shared I2C and SPI buses
2024-07-18 15:11:54 +00:00
Dario Nieuwenhuis
5e625f274a
Merge pull request #3185 from MathiasKoch/embassy-rp/uart-split-ref
(embassy-rp): Add split_ref fn to uart, allowing a mutable reference split into RX & TX handles
2024-07-18 12:10:37 +00:00
Dario Nieuwenhuis
024097d833
Merge pull request #3163 from michelrandahl/f303-tsc-example
add TSC examples
2024-07-18 12:10:02 +00:00
Dario Nieuwenhuis
c83d940005
Merge pull request #3171 from nerwalt/nrf9151
nrf9151 support
2024-07-18 12:07:15 +00:00
Dario Nieuwenhuis
f32b711e4a
Merge pull request #3186 from MathiasKoch/embassy-net/socket-timeout
(embassy-net): Allow setting socket timeout for embedded-nal TcpClient
2024-07-18 11:49:59 +00:00
Dario Nieuwenhuis
14de5e5a3c
Merge pull request #3191 from mirkomartn/fix-doc
embassy-net: fix minor typo in doc
2024-07-18 11:49:38 +00:00
Dario Nieuwenhuis
2e4374df1b
Merge pull request #3189 from kalkyl/fmc-a13
stm32: Add 13bit address sdram constructors
2024-07-18 11:38:19 +00:00
Gasper Stukelj
dc84b4f45a embassy-net: fix minor typo in doc 2024-07-18 13:37:47 +02:00
Dario Nieuwenhuis
94b2143463
Merge pull request #3195 from MathiasKoch/chore/flash-partition-clone
chore(embassy-embedded-hal): Add Clone impl to flash Partition
2024-07-18 11:36:47 +00:00