Skip to content

Commit

Permalink
i2c: implement I2C:transaction for embedded-hal and `embedded-hal…
Browse files Browse the repository at this point in the history
…-async` (#1505)

* i2c:

* i2c: refactor transaction() and reuse for master_read, master_write, and master_write_read

* i2c: cargo fmt

* i2c: fix an issue with not clearing interrupt bits & move where we reset fifo and command_list

* i2c: fix async compile error

* i2c: fix for esp32 & esp32s2

* i2c: real fix for esp32 (End command never gets cmd_done bit set!)

* i2c: fmt and removal of an unwrap() that I was using while debugging

* i2c: only define opcode values in one place
i2c: use CommandReg in add_cmd

* i2c: async direct & embedded_hal support working

* i2c: cargo fmt

* examples: cargo fmt
  • Loading branch information
liebman authored Apr 30, 2024
1 parent d5d3f1f commit f70ef1a
Show file tree
Hide file tree
Showing 3 changed files with 585 additions and 258 deletions.
1 change: 1 addition & 0 deletions esp-hal/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- i2c: implement `I2C:transaction` for `embedded-hal` and `embedded-hal-async`
- ESP32-PICO-V3-02: Initial support (#1155)
- `time::current_time` API (#1503)
- ESP32-S3: Add LCD_CAM Camera driver (#1483)
Expand Down
Loading

0 comments on commit f70ef1a

Please sign in to comment.