Dario Nieuwenhuis
c2e429205d
nrf/uart: add split_by_ref.
2024-02-21 21:48:48 +01:00
Dario Nieuwenhuis
835146a724
Merge pull request #2608 from embassy-rs/net-fix-fin-flush
...
net/tcp: fix flush() not waiting for ACK of FIN.
2024-02-21 20:35:56 +00:00
Dario Nieuwenhuis
250cfa5f5f
net/tcp: fix flush() not waiting for ACK of FIN.
2024-02-21 21:13:10 +01:00
Dario Nieuwenhuis
111306ac0c
nrf/buffered_uart: simplify split lifetimes.
2024-02-21 19:09:58 +01:00
Dario Nieuwenhuis
88bb598429
Merge pull request #2586 from embassy-rs/rp-reenable-i2c-test
...
tests/rp: reenable i2c test.
2024-02-21 13:53:14 +00:00
Eli Orona
88e29608ed
Rust fmt
2024-02-20 17:59:51 -08:00
Eli Orona
9505695830
Move compile test to the STM32F334 example.
2024-02-20 17:55:05 -08:00
Eli Orona
2ee9b37373
Move to a single Mux Struct.
2024-02-20 17:54:35 -08:00
Dario Nieuwenhuis
18da9a2b66
Merge pull request #2605 from Gekkio/usv-on-l4
...
USB needs PWR_CR2 USV set on STM32L4
2024-02-20 20:03:21 +00:00
Joonas Javanainen
9b2d096f4f
USB needs PWR_CR2 USV set on STM32L4
...
Confirmed to be needed on an STM32L422, and based on a quick look at
L4/L4+ reference manuals, this bit is present and required to be set on
all L4 chips that have some kind of USB peripheral (USB or OTG_FS).
The `usb_otg` driver already sets it for `cfg(stm32l4)` and we should do
the same thing here.
2024-02-20 21:47:13 +02:00
Dario Nieuwenhuis
55187c7276
Merge pull request #2602 from embassy-rs/peripheralref-no-derefmut
...
hal-internal: remove impl DerefMut for PeripheralRef.
2024-02-20 13:51:01 +00:00
Dario Nieuwenhuis
280f60654b
Merge pull request #2596 from NBonaparte/nrf-spi-drive
...
feat(nrf/spim): allow specifying drive of SPI pins
2024-02-20 13:48:50 +00:00
NBonaparte
ba2b4aad81
fix(nrf/spim): use OutputDrive
to set pin drives
2024-02-19 17:46:25 -08:00
Dario Nieuwenhuis
b98057d0c9
Merge pull request #2600 from MaxiluxSystems/flash_h50
...
Flash support for STM32H50x [wip]
2024-02-20 01:19:02 +00:00
Dario Nieuwenhuis
ce81bb5d53
Merge pull request #2559 from mchant/main
...
added usb_hid_mouse example for rp
2024-02-20 00:05:41 +00:00
Dario Nieuwenhuis
e8474426d8
hal-internal: remove impl DerefMut for PeripheralRef.
...
if you have `PeripheralRef<'a, AnyPIn>` for pin A, and `AnyPin` (owned) for pin B, you can `mem::swap` them.
so, getting access forever to pin A, just by "sacrificing" pin B
this defeats the point of PeripheralRef, which is if you got a `PeripheralRef<'a, T>` then you're only allowed to use the peripheral for `'a`.
Also some drivers rely on the fact only one instance of a singleton exists for soundness, so this is a soundness fix for those.
2024-02-20 01:02:15 +01:00
Mick Chanthaseth
bae30fb397
removed extra spaces.
2024-02-19 15:41:15 -08:00
Mick Chanthaseth
9c870981e3
fixed formatting in usb_hid_mouse.rs
2024-02-19 15:28:57 -08:00
Mick Chanthaseth
f3b96d8ba0
Updated formatting in usb_hid_mouse.rs.
2024-02-19 15:14:28 -08:00
Torin Cooper-Bennun
67230dc444
flash: h50: first pass at implementation
2024-02-19 16:05:50 +00:00
fe1es
5b7e2d8826
stm32/rcc: reset RTC on stm32l0
2024-02-19 15:25:24 +09:00
NBonaparte
6ecac3bc95
feat(nrf/spim): allow specifying drive of SPI pins
2024-02-18 19:37:35 -08:00
Dario Nieuwenhuis
69bfcaad42
Merge pull request #2594 from exzachlyvv/zvv/u5-i2c
...
Add simple i2c example for u5
2024-02-18 22:35:18 +00:00
Corey Schuhen
3f93105e9f
Add dep for static_cell to example.
2024-02-19 08:33:19 +10:00
Zach
f12bba8a6d
Add simple i2c example for u5
2024-02-18 16:26:44 -06:00
Ulf Lilleengen
63f955ce35
Merge pull request #2589 from plaes/nrf-clippy
...
nrf: Add some fixes for issues pointed out by clippy
2024-02-18 18:17:07 +00:00
Dario Nieuwenhuis
034e47abac
Merge pull request #2591 from exzachlyvv/zvv/u5-flash
...
support u5 flash
2024-02-18 17:55:35 +00:00
Dario Nieuwenhuis
c7e3eca98c
Merge pull request #2590 from andelf/fix/rp-io-bank
...
rp: Fix wrong io _bank calc
2024-02-18 17:53:59 +00:00
Dario Nieuwenhuis
e7af0f7f00
Merge pull request #2592 from exzachlyvv/zvv/u5-rng
...
u5 - add working rng example
2024-02-18 17:48:57 +00:00
Dario Nieuwenhuis
df6cf8da95
Merge pull request #2593 from MabezDev/cloneable-delay
...
time: cloneable delay
2024-02-18 17:45:44 +00:00
Scott Mabin
20cd7d09f4
time: cloneable delay
2024-02-18 17:01:09 +00:00
Corey Schuhen
eafa90cd07
Remove the OperatingMode typestates
...
Instead have two explcit types(without the mode generic arg)types:
- One for config
- One for all operating modes
2024-02-18 13:09:37 +10:00
Zach
f9e7fc6e5e
u5 - add working rng example
2024-02-17 14:00:03 -06:00
Zach
dd9f0d9d9e
support u5 flash
2024-02-17 12:04:53 -06:00
Andelf
6734f52676
rp/gpio: fix wrong io _bank calc
2024-02-17 20:44:59 +08:00
Priit Laes
8507b0ad30
nrf: Remove useless lifetimes
2024-02-17 13:30:19 +02:00
Priit Laes
7f2f701c87
nrf: Remove useless returns
2024-02-17 13:30:19 +02:00
Priit Laes
580ab48451
nrf: More nits cleaned up - useless cast and struct item
2024-02-17 13:30:19 +02:00
Priit Laes
a8710e943d
nrf: Drop needless let
2024-02-17 13:30:19 +02:00
Priit Laes
bb2fb59a87
nrf: Remove useless borrows
2024-02-17 13:30:19 +02:00
Priit Laes
1aa999c2a8
nrf: Use .is_empty() instead of .len() == 0
2024-02-17 13:30:19 +02:00
Corey Schuhen
5ad291b708
Add a buffered mode.
2024-02-17 18:26:57 +10:00
Corey Schuhen
91c75c92a0
Clean up and prep for buffered IRQ mode.
...
- Reduce code duplicaiton in read/write methods
- General clean-up
- Prepare for buffered mode
2024-02-17 18:26:57 +10:00
Corey Schuhen
5d8c54fdea
Move error conversion to peripheral.rs
2024-02-17 18:25:58 +10:00
Corey Schuhen
200ace566f
Don't use word Standard for frame format because it can be confused with ID format. Use Classic instead to mean CAN 2.0B frames.
2024-02-17 18:25:58 +10:00
Corey Schuhen
70b3c4374d
Port FDCAN HAL to use PAC directly instead of fdcan crate.
...
- Provide separate FDCAN capable and Classic CAN API's
- Don't use fdcan crate dep anymore
- Provide embedded-can traits.
2024-02-17 18:25:58 +10:00
Mick Chanthaseth
7609313a75
Merge branch 'embassy-rs:main' into main
2024-02-16 22:27:06 -08:00
Mick Chanthaseth
0097cbcfe3
Update imports in usb_hid_mouse.rs
2024-02-16 22:22:13 -08:00
Eli Orona
e99ef49611
Move to auto-generated based system.
2024-02-16 19:57:00 -08:00
Dario Nieuwenhuis
f9aea0fb54
tests/rp: reenable i2c test.
2024-02-17 03:52:42 +01:00