-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USB/SPI/I2C device mode, does it work? #34
Comments
Sorry, not implemented. |
Is it hard to implement? |
I believe it is hard, because I haven't seen any bare-metal project which supports USB device mode |
I see, I can't find any. Thanks! BTW, what is the pin toggle speed? |
Sorry, I haven't measure it. |
What about SPI and I2C? Do they work in slave mode? |
I have only tested master mode for both SPI and I2C. RPi's hardware SPI does not support slave mode anyway. |
https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2835/BCM2835-ARM-Peripherals.pdf Page 4 SPI Slave is supported by hardware, but linux support has been added around v4.13. I wouldn't be surprised if nobody ever used it yet. It looks like the protocol isn't strict enough, so plenty incompatible implementations exist. |
maybe it is referring BSC/SPI described in chapter 11, which I have not implemented. I only implemented SPI0, which cannot be used in slave mode. Also, I have read at somewhere that BSC/SPI slave does not work correctly |
Regards
The text was updated successfully, but these errors were encountered: