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

F4xx SPI Support. Was too easy. didn't get enough time to hate myself and think of a pun #100

Merged
merged 16 commits into from
Apr 9, 2024

Conversation

tmb5932
Copy link
Contributor

@tmb5932 tmb5932 commented Mar 30, 2024

Support for STM32F446 SPI

@tmb5932 tmb5932 requested a review from a team March 30, 2024 15:26
Copy link

@ol2764RIT ol2764RIT left a comment

Choose a reason for hiding this comment

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

good job travis, cooking up bangers left and right bb. DOXYGEN fix pls

Copy link
Contributor

@mjmagee991 mjmagee991 left a comment

Choose a reason for hiding this comment

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

A couple details to clean up but looks pretty good

include/EVT/io/pin.hpp Outdated Show resolved Hide resolved
include/EVT/manager.hpp Outdated Show resolved Hide resolved
src/io/platform/f4xx/SPIf4xx.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@aclowmclaughlin aclowmclaughlin left a comment

Choose a reason for hiding this comment

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

Looks mostly good.

samples/spi/ADXL345/main.cpp Outdated Show resolved Hide resolved
src/io/platform/f4xx/SPIf4xx.cpp Outdated Show resolved Hide resolved
src/io/platform/f4xx/SPIf4xx.cpp Show resolved Hide resolved
tmb5932 and others added 3 commits April 2, 2024 09:04
Got rid of redundant EVT::core::IO.

Changed the SPI mode in the configSPI call to an enum to minimize user errors.

Changed order in configSPI to be a bool as that is how it is used. minimizes chances of miss input.

Updated f3 to also work with the new changes. All of these will be tested to confirm they still work on thurs.
@mjmagee991
Copy link
Contributor

@tmb5932 @aclowmclaughlin The changes you made here are fine, but generally, I would like to change the interfaces in EVT-core as little as possible. While the goal of this PR was to add F4xx support, it's now going to require every codebase that uses SPI to change their code. One thing here and there isn't a big deal, but if we did this with every driver, we would get bogged down with updating all the repos.

That is to say, if you want to change an interface, make a Trello card for it, and we'll keep it in mind. Then, when we have a bunch of interfaces we want to change and we're not likely to race in the near future, we can go through and clean everything up at once

Copy link
Contributor

@aclowmclaughlin aclowmclaughlin left a comment

Choose a reason for hiding this comment

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

Sure looks like code! (Good job)

@tmb5932 tmb5932 merged commit da1e3df into main Apr 9, 2024
1 check passed
@tmb5932 tmb5932 deleted the feature/tmb5932/f4xx-SPI branch April 9, 2024 00:11
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