aboutsummaryrefslogtreecommitdiff
path: root/embassy-rp/src/i2c_slave.rs
Commit message (Collapse)AuthorAgeFilesLines
* embassy-rp: doc comment spelling passRob Wells2025-10-271-2/+2
| | | | | All changes but one are to documentation comments, and one to an ordinary comment.
* Rustfmt for edition 2024.Dario Nieuwenhuis2025-10-061-2/+2
|
* change default internal pullup state to be active to make this change ↵erwin2025-08-191-2/+2
| | | | nonbreaking
* Add configurable internal pullups for rp i2cerwin2025-08-181-2/+14
| | | | | - Example updated to demonstrate enabling internal pullups - Add `sda_pullup` and `scl_pullup` fields to I2C Config
* embassy-rp: defensive change to ensure wakers are registeredJames Munns2025-04-031-2/+4
| | | | | This change ensures that wakers are registered PRIOR to checking status in i2c `wait_on` helpers.
* Remove Peripheral trait, rename PeripheralRef->Peri.Dario Nieuwenhuis2025-03-271-7/+4
|
* remove checks for reserved I2c addressesTom Dohrmann2025-01-261-4/+1
| | | | | | There are some non-compliant devices that respond to reserved I2c addresses. rp2040 behaves sanely for these addresses, so let's just allow using them.
* Add Clone and Copy to Error typesdvdsk2024-06-061-1/+1
| | | | | None of them are `non-exaustative`, they are all small enough to be copy (I estimate none are larger than 4 bytes).
* fix minor clippy lints in embassy_rpRafael Bachmann2024-03-181-9/+7
|
* fixup another display -> debugCaleb Jamison2024-02-221-1/+1
|
* Fixup comments from JamesCaleb Jamison2024-02-221-1/+1
|
* rp2040 i2c_slave improvementsCaleb Jamison2024-02-221-51/+66
| | | | | | | Fix race condition that appears on fast repeated transfers. Add public reset function. Because application code can stall the bus, we need to give application code a way to fix itself.
* Remove unused importsCaleb Jamison2024-02-151-1/+0
|
* Improve rp2040 i2c slaveCaleb Jamison2024-02-151-89/+147
| | | | | | | | This commit takes the fixes and error reporting improvements from jcdickinson's work and applies them without overlaying a software state machine on top of the hardware state machine. Also allows configuration of response to 'general call' writes.
* docs: document all embassy-rp public apisUlf Lilleengen2023-12-191-0/+3
| | | | Enable missing doc warnings.
* fix (rp i2c): set i2c slew rate to spec valueJonathan Dickinson2023-10-101-18/+5
| | | | | | | | | The RP2040 datasheet indicates that I2C pins should have a limited slew rate (Page 440 - 4.3.1.3.). This configures that for both `I2c` and `I2cSlave`. In addition, the pin configuration has been centralized to a single fn.
* Add some uncontroversial derives to Error typesJames Munns2023-10-061-1/+1
|
* Add example, fix small bug in respond_and_fillCaleb Jamison2023-09-101-0/+12
|
* I2c slave take 2Caleb Jamison2023-09-101-0/+326
refactored to split modules renamed to match upstream docs slight improvement to slave error handling