Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i2c: implement
I2C:transaction
for embedded-hal
and `embedded-hal…
…-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