Increase default internal SD card bitrate to 4MHz (from 100k)

This commit is contained in:
Gordon Williams 2017-12-13 12:43:33 +00:00
parent f78c10b85e
commit 1068563563
2 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@
nRF5x: Add support for negating pins in software (eg. buttons/LEDs)
Add `E.setFlags({unsyncFiles:1}` which doesn't sync the file to the SD card after each write - it's *much* faster
Filesystem API now uses flat strings (avoiding the 512 byte copy for each call)
Increase default internal SD card bitrate to 4MHz (from 100k)
1v94 : Allow Espruino boards to reset straight out of the DFU Bootloader
Improvements in handling errors in code running in IRQs

View File

@ -82,6 +82,7 @@ bool jsfsInit() {
JsVar *spi = jsvSkipNameAndUnLock(jspGetNamedVariable(deviceStr));
JshSPIInfo inf;
jshSPIInitInfo(&inf);
inf.baudRate = 4000000; // 4Mhz bit rate for onboard SD cards
inf.pinMISO = SD_DO_PIN;
inf.pinMOSI = SD_DI_PIN;
inf.pinSCK = SD_CLK_PIN;