daniel-thompson / i2c-star

A clone of the i2c-tiny-usb based upon STM32 and libopencm3
GNU General Public License v3.0
125 stars 31 forks source link

[FR] Implement SPI also #5

Closed ildar closed 6 years ago

ildar commented 6 years ago

Might also be possible?

daniel-thompson commented 6 years ago

It is possible, but the result would, for obvious reasons, no longer be "a compatible clone of Till Harbaum’s i2c-tiny-usb" so I have no plans to implement anything like this.

ildar commented 6 years ago

wait. I thought that the main point is the compatibility with Linux I2C dev/ioctl. Linux now has SPI dev/ioctl also. Hence the question.

daniel-thompson commented 6 years ago

wait. I thought that the main point is the compatibility with Linux I2C dev/ioctl. Linux now has SPI dev/ioctl also. Hence the question.

... and the answer: Yes, it is possible, but I have no plans to implement it.

Linux also has frameworks for GPIO, ADC, DAC, random numbers, CAN, PWM and UART. It is possible to implement a USB gadget based on an STM32 that implements all these things and more. It would probably be pretty cool... but it would also not be i2c-star any more.

ildar commented 6 years ago

yes, sure. Thanks.

gdamjan commented 5 years ago

if anyone ever decides to make spi support please write here :)