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

Default SPI frequency of 40MHz too high? #6

Open
maclobdell opened this issue Nov 13, 2017 · 2 comments
Open

Default SPI frequency of 40MHz too high? #6

maclobdell opened this issue Nov 13, 2017 · 2 comments

Comments

@maclobdell
Copy link
Contributor

Admittedly, I haven't done the research on this, but for many microcontrollers, 40MHz on the SPI exceeds the limits. Perhaps a default value of something lower that is more clearly configurable, or perhaps the accompanying example application can pass in a lower default value that will be more compatible across platforms.

  • @param freq Clock speed of the SPI bus (defaults to 40MHz)
    */

    SPIFBlockDevice(PinName mosi, PinName miso, PinName sclk, PinName csel, int freq=40000000);

@geky
Copy link
Contributor

geky commented Nov 14, 2017

Good point, what if we added frequency as a config option and used that here? That way specific targets can override the default with their minimum frequency.

@kjbracey
Copy link

Would be consistent with serial and platform.default-serial-baud-rate.

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

No branches or pull requests

3 participants