-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
spi timing #1427
Comments
@idoroseman on the incomplete type: verify where
then in the
This allows a HAL function to be passed a complex structure, and simultaneously preventing direct modification of the structure elements by the app. if you need direct access to elements of the structure, copy the definition from the Chuck. |
thanks @stickbreaker it did the trick
and then i added to setup()
before closing this, maybe there should be a nicer way to change registers inside the driver (but this is beyond my scope) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
This stale issue has been automatically closed. Thank you for your contributions. |
I'm connecting the esp32 to CR95HF via the spi port.
i've noticed there's a bit missing on every transaction. so i dug into the manuals and found there's a cure by changing the SPI_MISO_DELAY_MODE to 2
sure enougth i've added the following line into esp32-hal-spi.c @ spiStopBus()
_spi->dev->ctrl2.miso_delay_mode = 2;
and problem was solved. for future compateblity, i wanted to move the fix to my code and not leave it in the driver code.
i saw you can export spi_t by using SPI.bus() but i get an error
error: invalid use of incomplete type 'spi_t {aka struct spi_struct_t}'
any idea how to fix that ?
thanks
The text was updated successfully, but these errors were encountered: