first
Dependencies: SDFileSystemDMA mbed
Refer to:
https://developer.mbed.org/users/mimi3/code/SDFileSystemDMA
Caution
If your board has SRAM less than or equal to 8KB, the 'buffer' size must be set to 512 Bytes.
NUCLEO-F411RE
About 2.5MBytes/sec
NUCLEO-L152RE
About 1MBytes/sec
Diff: spi_device.h
- Revision:
- 21:6253a88675a5
- Parent:
- 19:6519eb90d1ef
--- a/spi_device.h Tue Aug 30 20:17:00 2016 +0900 +++ b/spi_device.h Thu Sep 01 17:46:24 2016 +0900 @@ -107,10 +107,16 @@ #if defined(TARGET_STM32F0) \ || defined(TARGET_STM32L1) \ || defined(TARGET_STM32L0) +#define CS D10 /* PB_6 */ +#if 1 #define MOSI D4 /* PB_5 */ #define MISO D5 /* PB_4 */ #define SCLK D3 /* PB_3 */ -#define CS D10 /* PB_6 */ +#else +#define MOSI D11 /* PA_7 */ +#define MISO D12 /* PA_6 */ +#define SCLK D13 /* PA_5 */ +#endif #endif