diff options
Diffstat (limited to 'Demos/Device')
-rw-r--r-- | Demos/Device/ClassDriver/MassStorage/MassStorage.c | 3 | ||||
-rw-r--r-- | Demos/Device/LowLevel/MassStorage/MassStorage.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Demos/Device/ClassDriver/MassStorage/MassStorage.c b/Demos/Device/ClassDriver/MassStorage/MassStorage.c index 52ed2d938..4092680c4 100644 --- a/Demos/Device/ClassDriver/MassStorage/MassStorage.c +++ b/Demos/Device/ClassDriver/MassStorage/MassStorage.c @@ -84,7 +84,8 @@ void SetupHardware(void) /* Hardware Initialization */
LEDs_Init();
- Dataflash_Init(SPI_SPEED_FCPU_DIV_2);
+ SPI_Init(SPI_SPEED_FCPU_DIV_2 | SPI_SCK_LEAD_FALLING | SPI_SAMPLE_TRAILING | SPI_MODE_MASTER);
+ Dataflash_Init();
USB_Init();
/* Clear Dataflash sector protections, if enabled */
diff --git a/Demos/Device/LowLevel/MassStorage/MassStorage.c b/Demos/Device/LowLevel/MassStorage/MassStorage.c index 1a2d8d468..cf276fd81 100644 --- a/Demos/Device/LowLevel/MassStorage/MassStorage.c +++ b/Demos/Device/LowLevel/MassStorage/MassStorage.c @@ -75,7 +75,8 @@ void SetupHardware(void) /* Hardware Initialization */
LEDs_Init();
- Dataflash_Init(SPI_SPEED_FCPU_DIV_2);
+ SPI_Init(SPI_SPEED_FCPU_DIV_2 | SPI_SCK_LEAD_FALLING | SPI_SAMPLE_TRAILING | SPI_MODE_MASTER);
+ Dataflash_Init();
USB_Init();
/* Clear Dataflash sector protections, if enabled */
|