ht32-rs / ht32f5xxxx-hal

A Rust HAL for the ht32f5xxxx family of chips
BSD Zero Clause License
9 stars 3 forks source link

WIP I2C #5

Closed hargoniX closed 4 years ago

hargoniX commented 4 years ago

This PR implements the I2C peripheral according to the HT32F52342 datasheet.

The implementation is basically done at this point, everything that's required is for this thing to be tested properly against real world hardware in order to verify its correctness, ideally the rust driver for this hardware would use all three of the embedded_hal write, read and write_read function so we can be sure all of them are correct.

Closes: #4