Skip to content

Conversation

@marbalon
Copy link
Contributor

@marbalon marbalon commented Jul 7, 2018

This is simple solution for problem described here #3012

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.

3 participants