AgonConsole8 / agon-mos

Official AGON QUARK Firmware for Console8: eZ80 MOS
MIT License
25 stars 10 forks source link

Proposed I2C driver and MOS API implementation #26

Closed envenomator closed 9 months ago

envenomator commented 9 months ago

Hi! This proposed driver for I2C has the following API to user programs: mos_i2c_open - to open the channel with a given frequency id (57.6Khz, 115.200Khz, 230Khz) mos_i2c_close - to close the channel mos_i2c_write - to send a I2C datagram to a given slave address, with length and pointer to a send buffer mos_i2c_read - to read a I2C datagram from a given slave address, with length and pointer to a read buffer

Currently, the following functional limitations apply to the driver:

I'll publish example code to use this driver interface a.s.a.p.

stevesims commented 9 months ago

hey @envenomator thanks for this - looks awesome 👍

I'm closing this PR, as this has now been integrated via merging in Dean's latest code

envenomator commented 9 months ago

Hi,

no worries; merging it from Dean's latest was probably quicker. Thanks for all the hard work creating new releases!