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.
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