Fork for ILI graphics library

Dependencies:   FATFileSystem

Fork of SDFileSystem by mbed official

Revision:
4:a525bb4acb05
Parent:
3:7b35d1709458
--- a/SDFileSystem.cpp	Mon Mar 17 14:34:01 2014 +0000
+++ b/SDFileSystem.cpp	Thu Feb 05 12:38:14 2015 +0000
@@ -122,6 +122,8 @@
 
 SDFileSystem::SDFileSystem(PinName mosi, PinName miso, PinName sclk, PinName cs, const char* name) :
     FATFileSystem(name), _spi(mosi, miso, sclk), _cs(cs) {
+    _cs.mode(PullUp);
+    _cs.output();
     _cs = 1;
 }
 
@@ -142,6 +144,9 @@
 int SDFileSystem::initialise_card() {
     // Set to 100kHz for initialisation, and clock card with cs = 1
     _spi.frequency(100000);
+    
+    _cs.mode(PullUp);
+    _cs.output();
     _cs = 1;
     for (int i = 0; i < 16; i++) {
         _spi.write(0xFF);