Commit Graph

1579 Commits

Author SHA1 Message Date
be087e5d43 stm32/spi: remove DMA generic params. 2024-04-15 21:23:49 +02:00
65c085ce91 Add stm32u0 support. 2024-04-14 22:29:07 +02:00
4079a8acf8 stm32/adc: update g4 for new pac. 2024-04-14 22:06:41 +02:00
9053b6b5b3 Fix spelling and white space mistakes 2024-04-11 19:45:38 +00:00
fc260fbb01 Merge branch 'main' of https://github.com/embassy-rs/embassy 2024-04-11 09:07:38 +02:00
4ffe35c840 Merge branch 'main' of https://github.com/embassy-rs/embassy 2024-04-10 13:26:59 +02:00
fd901fc7e0 stm32: update adc examples 2024-04-10 10:57:52 +03:00
effc08dde3 Incorporated adam’s suggestion into all multiprio comments 2024-04-07 16:22:42 +02:00
56d34eefaa Apply suggestions from code review
Co-authored-by: becothas <41289937+becothas@users.noreply.github.com>
2024-04-07 15:33:51 +02:00
cf0097162c [embassy-stm32] added comments explaining multiprio interrupts 2024-04-07 15:19:56 +02:00
99ea564f1c Add VBUS detection blackpill comment 2024-04-05 22:11:01 +02:00
143b288333 Add parameter for enabling pull-up and pull-down in RP PWM input mode 2024-04-05 01:20:34 +02:00
a84b33995e rp: remove mod sealed. 2024-04-05 00:48:46 +02:00
6c35a1769d Merge pull request from eZioPan/stm32-cordic
stm32 CORDIC driver
2024-04-04 21:32:27 +00:00
a373633d0d Merge branch 'main' of https://github.com/GustavToft/embassy 2024-04-04 15:52:44 +02:00
0427c442ea Implement raw sockets in embassy-net 2024-04-04 15:51:25 +02:00
067e422863 Merge pull request from msrd0/multiprio-example-stm32h7
Add multiprio example for stm32h7 inspired by stm32f4
2024-04-04 12:55:03 +00:00
8fbd21d216 Add multiprio example for stm32h7 inspired by stm32f4 2024-04-04 13:22:52 +02:00
aa9eb2ab01 rename PWM_CH to PWM_SLICE 2024-04-02 17:20:35 +03:00
c8936edb6c stm32/can: simplify bxcan api, merging bx::* into the main structs.
The bx::* separate structs (Can, Rx, Tx) and separate `Instance` trait
are a relic from the `bxcan` crate. Remove them, move the functionality
into the main structs.
2024-04-02 11:08:03 +02:00
2217b80278 CAN: Unify API's between BXCAN and FDCAN. Use Envelope for all read methods instead of a tuple sometimes. 2024-03-28 09:32:13 +10:00
402def86ee Remove ad-hoc fixes for setting the IOSV bit to true 2024-03-26 17:27:02 +01:00
0abcccee96 stm32 CORDIC: re-design API 2024-03-23 09:15:25 +08:00
83069e7b49 stm32 CORDIC: add example 2024-03-23 09:15:25 +08:00
1171e11655 Merge pull request from embassy-rs/stm32-sealed
stm32: use private_bounds for sealed traits.
2024-03-23 01:55:42 +01:00
2bca875b5f stm32: use private_bounds for sealed traits. 2024-03-23 01:38:51 +01:00
389cbc0a77 stm32/timer: simplify traits, convert from trait methods to struct. 2024-03-23 01:37:28 +01:00
7cf6490fba usb: remove device_descriptor buffer, store bytes in UsbDevice.inner instead 2024-03-23 00:35:15 +00:00
eca9aac194 Fix warnings in recent nightly. 2024-03-20 16:39:09 +01:00
2587ade63e Rust formatting for comments. 2024-03-20 14:11:04 +01:00
47ebec82b8 Add comment warning for new users about changing pins on Ethernet for different devices
Not all STM32H7 devices share the pins of the example. Added a warning and a specific example for STM32H747XIH
2024-03-20 13:56:15 +01:00
4858a53a39 stm32/usb: ensure mux is configured in examples. 2024-03-19 22:10:59 +01:00
530ff9d4d3 stm32/usb: merge usb and usb_otg into single module. 2024-03-19 22:07:16 +01:00
963fda2404 Merge pull request from timokroeger/stm32-ucpd
STM32 USB Type-C/USB Power Delivery Interface (UCPD)
2024-03-14 21:21:33 +00:00
7b80de5e3d [UCPD] Enable dead-battery support in example 2024-03-14 22:14:20 +01:00
e95e95ac7a [UCPD] Take interrupt in constructor and enable it 2024-03-14 21:55:05 +01:00
9f699e5772 stm32: add usb_hid_keyboard example
Signed-off-by: Vo Trung Chi <votrungchi_108@live.com>
2024-03-14 23:14:43 +07:00
242759a600 Use Result instead of Option for Frame creation. 2024-03-13 17:46:50 +10:00
12a3af5043 Shared frame types.
Remove BXCAN speciffic id and frame modules

Remove SizedClassicData
2024-03-13 17:46:50 +10:00
35f284ec22 Merge pull request from caleb-garrett/cryp-dma
STM32 CRYP DMA
2024-03-12 19:30:20 +00:00
b1ba272987 rustfmt 2024-03-12 15:13:06 -04:00
2634a57098 Correct cryp CI build issues. 2024-03-12 15:05:22 -04:00
61050a16d5 Add CRYP DMA support. Updated example. 2024-03-12 12:01:14 -04:00
89504f5162 [UCPD] Split into CC and PD phy
PD3.0 spec requires concurrent control of CC resistors for collision avoidance.
Needed to introduce some "ref counting" (its just a bool) for drop code.
2024-03-12 08:14:42 +01:00
b7972048a1 [UCPD] Improve example and defmt Format for enums 2024-03-12 08:14:42 +01:00
5e271ff31b [UCPD] Combine RX and TX
`select(rx.receive(), tx.transmit()` had subtle interrupt enable race conditions.
Combine receiver and transmitter into one new `PdPhy` struct to disallow the
problematic pattern.
Scanning through the USB PD 2.0 specification there is no need to have RX and TX
running concurrently (after all the USB PD communication is half-duplex).
2024-03-12 08:14:42 +01:00
4d0e383816 [UCPD] Prepare for PD communication implementation 2024-03-12 08:14:42 +01:00
a3b1222617 [UCPD] Improve Type-C CC handling
* Improved interrupt handling: Clear flags in ISR, check state change in future
* Disable pull-up/pull-down resistors and voltage monitor on drop
* nightly rustfmt
2024-03-12 08:14:42 +01:00
d99fcfd0c2 [UCPD] Configuration Channel (CC) handling 2024-03-12 08:14:42 +01:00
6e9e8eeb5f Refactored cryp din/dout into functions. 2024-03-11 11:08:02 -04:00