Commit Graph

8996 Commits

Author SHA1 Message Date
Ulf Lilleengen
9555259c57
Merge pull request #3402 from sourcebox/sync-additions
embassy-sync: documentation and clippy fixes
2024-10-10 19:34:46 +00:00
Dario Nieuwenhuis
e7dfc2bc0a
Merge pull request #3410 from Sh3Rm4n/fix/i2c-pull
stm32/i2c: disable pullup instead of pulling down
2024-10-10 19:27:33 +00:00
Fabian Viöl
3870411a4a stm32/i2c: disable pullup instead of pulldown 2024-10-10 16:12:51 +02:00
Caleb Jamison
70bd158d03 Make the docs be docs 2024-10-09 16:57:02 -04:00
Caleb Jamison
1b32b7bcb4 fmt 2024-10-09 16:51:52 -04:00
Caleb Jamison
041eef5c2d
Merge pull request #1 from BjornTheProgrammer/pio_programs
Better docs and adding of release for PioPwm
2024-10-09 16:50:57 -04:00
Bjorn
22fe493257 Better docs and adding of release for PioPwm 2024-10-09 10:12:43 -07:00
Caleb Jamison
e47c031b67 fmt examples too 2024-10-09 11:47:04 -04:00
Caleb Jamison
c7f7728eb1 cargo +nightly fmt 2024-10-09 11:44:58 -04:00
Caleb Jamison
fc978c2ee9 Fix rp23 i2s example, boot_sel isn't supported yet. 2024-10-09 11:37:15 -04:00
Caleb Jamison
57c1fbf308 Move pio programs into embassy-rp 2024-10-09 10:18:00 -04:00
Dario Nieuwenhuis
456c226b29
Merge pull request #3404 from farmblox/fix-stm32-exti-low-power
stm32: fix low-power EXTI IRQ handler dropped edges
2024-10-08 20:48:26 +00:00
Lena Berlin
df0fc04198
fix: stm32l0 low-power EXTI IRQ handler wiped pending bits before they were checked 2024-10-08 11:18:59 -04:00
Oliver Rockstedt
592bb5a8ca embassy-sync: made changelog formatting more consistent 2024-10-07 18:16:47 +02:00
Oliver Rockstedt
4110cb494f embassy-sync: added Watch primitive to changelog 2024-10-07 18:12:45 +02:00
Oliver Rockstedt
bf60b239e8 embassy-sync: fixed some clippy warnings 2024-10-07 18:05:15 +02:00
Dario Nieuwenhuis
42815e944a
Merge pull request #3401 from sourcebox/sync-additions
Add `capacity`, `free_capacity`, `clear`, `len`, `is_empty` and `is_full` functions to `priority_channel::{Sender, Receiver}`
2024-10-07 15:42:48 +00:00
Oliver Rockstedt
2704ac3d28 Add capacity, free_capacity, clear, len, is_empty and is_full functions to priority_channel::{Sender, Receiver} 2024-10-07 17:35:11 +02:00
Oliver Rockstedt
07748131dd embassy-sync: fixed link to priority_channel in README 2024-10-07 17:24:56 +02:00
Dario Nieuwenhuis
7920ba8f8f
Merge pull request #3400 from sourcebox/sync-additions
Add capacity, free_capacity, clear, len, is_empty and is_full functions to Channel::{Sender, Receiver}
2024-10-07 12:26:05 +00:00
Oliver Rockstedt
e3fd33d372 Minor changelog fix 2024-10-07 13:41:15 +02:00
Oliver Rockstedt
baef775f6b Add capacity, free_capacity, clear, len, is_empty and is_full functions to Channel::{Sender, Receiver} 2024-10-07 13:30:46 +02:00
Dario Nieuwenhuis
aa2f6ae965
Merge pull request #3395 from vapor-keeb/main
executor/spin: introduce an architecture agnostic executor
2024-10-07 08:43:08 +00:00
Ulf Lilleengen
a74bae3de1
Merge pull request #3343 from george-cosma/hal-with-pac
LPC: embassy-lpc55 hal base with gpio and pint driver
2024-10-07 08:14:32 +00:00
George Cosma
e7e245eeb7 feat: embassy-lpc55 hal with gpio and pint driver 2024-10-07 09:34:10 +03:00
Dummyc0m
9e6e09a8d7 executor/spin: introduce an architecture agnostic executor
Spin polls the raw executor and never sleeps. It is useful for disabling
any power features associated with wfi/wfe-like instructions.

When implementing support for the CH32V30x MCU, the wfi instruction
had issues interacting with the USB OTG peripheral and appeared to be
non-spec-compliant.

1. When sending a USB Data-in packet, the USB peripheral appears to be
unable to read the system main memory while in WFI. This manifests in
the USB peripheral sending all or partially zeroed DATA packets.
Disabling WFI works around this issue.

2. The WFI instruction does not wake up the processor when MIE is
disabled. The MCU provides a WFITOWFE bit to emulate the WFE instruction
on arm, which, when enabled, ignores the MIE and allows the processor to
wake up. This works around the non-compliant WFI implementation.

Co-authored-by: Codetector <codetector@codetector.org>
Co-authored-by: Dummyc0m <y@types.moe>
2024-10-06 23:33:34 -07:00
Dario Nieuwenhuis
f6155cf735 Update smoltcp, embedded-nal-async to use the core::net IP addr types. 2024-10-07 00:22:44 +02:00
Dario Nieuwenhuis
631fec8d09
Merge pull request #3393 from sourcebox/sync-additions
embassy-sync: add clear, len, is_empty and is_full functions to zerocopy_channel
2024-10-06 18:56:09 +00:00
Oliver Rockstedt
12e6add058 embassy-sync: renamed field len to capacity on zerocopy_channel state 2024-10-06 17:45:03 +02:00
Oliver Rockstedt
f3ed0c6026 embassy-sync: fix len calculation for zerocopy_channel 2024-10-06 17:39:47 +02:00
Henrik Alsér
8f27349745
Merge pull request #3394 from AtoVproject/fix/embassy-sync-sender-typo
docs: fix Sender/Receiver typo
2024-10-06 05:30:43 +00:00
Chris Maniewski
67836f955a
docs: fix Sender/Receiver typo 2024-10-05 14:16:00 +02:00
Oliver Rockstedt
383ad72b63 embassy-sync: add clear, len, is_empty and is_full functions to zerocopy_channel 2024-10-05 13:39:27 +02:00
Dario Nieuwenhuis
b59143a4ab
Merge pull request #3391 from shilga/features/rp235x_clock
rp: Run RP235x at 150 MHz instead of 125
2024-10-05 11:29:08 +00:00
Henrik Alsér
7c3562cee6
Merge pull request #3392 from 1-rafael-1/embassy-sync-README-mention-watch
Add Watch to embassy-sync README
2024-10-05 11:23:48 +00:00
rafael
d643d50f41 Add Watch to embassy-sync README 2024-10-05 12:24:17 +02:00
Sebastian Quilitz
b73b3f2da0 rp: Run RP235x at 150 MHz instead of 125 2024-10-05 12:18:33 +02:00
Henrik Alsér
6e0b08291b
Merge pull request #3387 from paulwrath1223/main
Fixed overflow on `pio_stepper.rs`
2024-10-02 21:17:54 +00:00
Paul Fornage
ce701c3e8e Fixed overflow on pio_stepper.rs 2024-10-02 13:35:59 -07:00
Caleb Jamison
bc0180800d
Remove binary_info blocks from most examples. (#3385) 2024-10-01 16:51:18 +02:00
Ulf Lilleengen
e6ce81018b
Merge pull request #2568 from peterkrull/multi-signal
Add `Watch` sync primitive (similar to `tokio::sync::watch`)
2024-10-01 07:10:46 +00:00
Ulf Lilleengen
a7d1abf6b7
Merge pull request #3378 from dnbln/patch-1
fix: change duplicate reference to `FirmwareUpdaterConfig::from_linkerfile_blocking` in rustdoc
2024-09-27 09:44:16 +00:00
Dinu Blanovschi
3792b14161
fix: change duplicate reference to FirmwareUpdaterConfig::from_linkerfile_blocking in rustdoc 2024-09-27 10:40:24 +02:00
Ulf Lilleengen
eb91089a6c
Merge pull request #3376 from embassy-rs/nrf91-sim-pin
Add config option for setting SIM pin
2024-09-26 13:51:16 +00:00
Ulf Lilleengen
f19718b4f0 Add config option for setting SIM pin 2024-09-26 15:48:10 +02:00
Dario Nieuwenhuis
8a5d1454a4
Merge pull request #3374 from romainreignier/fix_rp23_binary_info
rp23: add missing binary info in linker script
2024-09-26 11:27:10 +00:00
Romain Reignier
6e2c5d0b45 rp23: add missing binary info in linker script
See https://github.com/rp-rs/rp-hal/issues/853

And https://github.com/rp-rs/rp-hal/pull/854
2024-09-26 13:24:50 +02:00
Anthony Grondin
712fa08363
feat(embassy-net): Implement wait_read_ready() + wait_write_ready() for TcpSocket 2024-09-24 22:01:53 -04:00
Anthony Grondin
e8da387726
docs(embassy-net): Update can_send() and may_send() documentation to reflect actual behavior from smoltcp 2024-09-24 22:01:53 -04:00
Anthony Grondin
ae5b78b27a
feat(embassy-net): Implement wait_recv_ready() + wait_send_ready() for UdpSocket
- Provides `pub async fn wait_recv_ready(&self) -> ()` and `pub fn poll_recv_ready(&self, cx: &mut Context<'_>) -> Poll<()>`.
This allows polling / waiting on a socket until it can be read, without dequeuing any packets.

- Provides `pub async fn wait_send_ready(&self) -> ()` and `pub fn poll_send_ready(&self, cx: &mut Context<'_> -> Poll<()>`
This allows polling / waiting on a socket until it becomes writable.
2024-09-24 22:01:49 -04:00