aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32g4/src/bin/usb_c_pd.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rustfmt for edition 2024.Dario Nieuwenhuis2025-10-061-3/+3
|
* [UCPD] Add support for non-SOP packetsSjoerd Simons2024-08-181-1/+1
| | | | | | | | Allow capturing (and distinguishing) non-SOP packets as well. The default configuration will just configure SOP packets. For ease of use the default receive function signature is unchanged as for PD sinks (which is likely the common usage) just SOP is enough so no need to differentiate.
* [UCPD] Enable dead-battery support in exampleTimo Kröger2024-03-141-2/+3
|
* [UCPD] Take interrupt in constructor and enable itTimo Kröger2024-03-141-2/+6
|
* [UCPD] Split into CC and PD phyTimo Kröger2024-03-121-8/+9
| | | | | 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.
* [UCPD] Improve example and defmt Format for enumsTimo Kröger2024-03-121-2/+9
|
* [UCPD] Combine RX and TXTimo Kröger2024-03-121-1/+1
| | | | | | | | `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).
* [UCPD] Prepare for PD communication implementationTimo Kröger2024-03-121-1/+14
|
* [UCPD] Improve Type-C CC handlingTimo Kröger2024-03-121-7/+5
| | | | | | * 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
* [UCPD] Configuration Channel (CC) handlingTimo Kröger2024-03-121-0/+62