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

[sw/example/demo_spi_irq]: make read/write data pointer and busy flag… #471

Merged
merged 1 commit into from
Jan 6, 2023

Conversation

akaeba
Copy link
Collaborator

@akaeba akaeba commented Jan 6, 2023

Hi Stephan,

I saw in the spi_irq driver that it could be better to have the data pointer volatile to ensure in switching between ISR/non-ISR context to have the latest register value always available.

BR,
Andreas

… volatile to ensure to have always the non cached version. Correct variable name 'uint32Fifo' to 'uint16Fifo' cause its as uint16_t defined.
@stnolting stnolting added SW software-related optimization Make things faster, smaller and more efficient labels Jan 6, 2023
@stnolting
Copy link
Owner

Nice improvement!

@stnolting stnolting merged commit 55c3a89 into stnolting:main Jan 6, 2023
@akaeba
Copy link
Collaborator Author

akaeba commented Jan 6, 2023

Thanks for merge.

@akaeba akaeba deleted the struct_demo_spi_irq branch January 6, 2023 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Make things faster, smaller and more efficient SW software-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants