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

Add definition for MAX_SPI_SPEED to limit spi seed if defined for target #3532

Merged
merged 2 commits into from
Jul 7, 2018

Conversation

marbalon
Copy link
Contributor

@marbalon marbalon commented Jul 7, 2018

This is simple solution for problem described here #3012

@@ -33,6 +33,12 @@ void spiBusSetSpeed(const busDevice_t * dev, busSpeed_e speed)
{
const SPIClockSpeed_e spiClock[] = { SPI_CLOCK_INITIALIZATON, SPI_CLOCK_SLOW, SPI_CLOCK_STANDARD, SPI_CLOCK_FAST, SPI_CLOCK_ULTRAFAST };
SPI_TypeDef * instance = spiInstanceByDevice(dev->busdev.spi.spiBus);

#ifdef MAX_SPI_SPEED
Copy link
Member

Choose a reason for hiding this comment

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

Please, make this BUS_SPI_MAX_SPEED

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, BUS_SPI_SPEED_MAX

@fiam fiam added this to the 2.0 milestone Jul 7, 2018
@fiam
Copy link
Member

fiam commented Jul 7, 2018

Perfect, thanks! I'll merge as soon as the tests pass.

@marbalon
Copy link
Contributor Author

marbalon commented Jul 7, 2018

Thanks!

@fiam fiam merged commit b0ccae5 into development Jul 7, 2018
@fiam fiam deleted the marbalon_limit_spi_speed branch July 7, 2018 21:40
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