Skip to content

Conversation

techmccat
Copy link
Contributor

I had done some work on moving code out of the macros last year, but it kind of got stuck waiting for the hal-1 pr being merged, recently i saw that there was ongoing work on de-macroing other peripherals and though I'd try getting this upstreamed.

It also contains some SPI driver optimizations that make it do blocking mode fairly fast (1/4 to 1/2 of the CPU clock), though i haven't checked how they impact code size

@techmccat techmccat mentioned this pull request Jul 17, 2025
@usbalbin
Copy link
Member

Looks nice from what I can tell :)

Have you had the chance to test this?

@techmccat
Copy link
Contributor Author

I tested the optimized driver back when I was doing the HAL 1.0 changes, moving out of the macro shouldn't have changed anything behavior-wise

Copy link
Member

@usbalbin usbalbin left a comment

Choose a reason for hiding this comment

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

Thank you for this!

@usbalbin usbalbin added this pull request to the merge queue Jul 19, 2025
Merged via the queue into stm32-rs:main with commit ffaf5c5 Jul 19, 2025
34 checks passed
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.

2 participants