ARMmbed / spif-driver

Block device driver for NOR SPI flash devices that support SFDP, such as the MX25R or SST26F016B
Apache License 2.0
26 stars 16 forks source link

Default SPI frequency of 40MHz too high? #6

Open maclobdell opened 7 years ago

maclobdell commented 7 years ago

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.

geky commented 7 years ago

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 commented 7 years ago

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