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

Added and integrated spi_obi_slave peripheral to x-heep #597

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

panini02
Copy link

The obi part is missing the byte enable (be) signal

spi_wait_for_ready(spi);

const uint32_t send_cmd_word = spi_create_command((spi_command_t){
.len = 4, // 4 Bytes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that if you want to write N bytes you have to pass to the function N-1, look at the examples


// Set up segment parameters -> send commands
const uint32_t send_cmd_byte = spi_create_command((spi_command_t){
.len = 1, // 1 Byte (The SPI SLAVE IP can only take one CMD byte at a time)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that if you want to write N bytes you have to pass to the function N-1, look at the examples

@JuanSapriza
Copy link
Contributor

👍

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

Successfully merging this pull request may close these issues.

4 participants