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

Projects
None yet
2 participants
@marbalon
Copy link
Collaborator

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

This comment has been minimized.

Copy link
@fiam

fiam Jul 7, 2018

Member

Please, make this BUS_SPI_MAX_SPEED

This comment has been minimized.

Copy link
@fiam

fiam Jul 7, 2018

Member

Sorry, BUS_SPI_SPEED_MAX

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

@fiam

This comment has been minimized.

Copy link
Member

commented Jul 7, 2018

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

@marbalon

This comment has been minimized.

Copy link
Collaborator Author

commented Jul 7, 2018

Thanks!

@fiam fiam merged commit b0ccae5 into development Jul 7, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@fiam fiam deleted the marbalon_limit_spi_speed branch Jul 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.