Skip to content
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

How to send data in spi slave mode? #6

Open
Pillar1989 opened this issue Mar 20, 2019 · 1 comment
Open

How to send data in spi slave mode? #6

Pillar1989 opened this issue Mar 20, 2019 · 1 comment

Comments

@Pillar1989
Copy link

There is no send funciton code in the latest code.

spi_slave_config(spi_slave, gio, SPI_SLAVE_INT_IO, SPI_SLAVE_READY_IO, 8, data, len, spi_slave_receive_hook);

@xiangbingj
Copy link
Contributor

There is no send funciton code in the latest code.

kendryte-freertos-demo/spi_slave/spi_slave.c

Line 43 in e86330d

spi_slave_config(spi_slave, gio, SPI_SLAVE_INT_IO, SPI_SLAVE_READY_IO, 8, data, len, spi_slave_receive_hook);

Hello, k210 used as a slave device like spi flash. spi master can get data from spi slave. spi slave do not send data actively. Of course, the driver can also be modified according to the communication requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants