Refactor to use new protocol module and sipo.
[bertos.git] / boards / sam3x-ek / hw / hw_sd.h
index d077b8b3d3f5f9b6940c9874e8776d72d7a6260d..1acaf9d3a4398be6cc9ff998d565519fe6ed02b9 100644 (file)
 
 #include <io/cm3.h>
 
+#define SD_STROBE_ON()   do { PIOE_SODR = BV(0); } while(0)
+#define SD_STROBE_OFF()  do { PIOE_CODR = BV(0); } while(0)
+
+#define SD_STROBE_INIT() \
+       do { \
+               PIOE_PER = BV(0); \
+               PIOE_OER = BV(0);\
+               PIOE_CODR = BV(0); \
+       } while(0)
+
 #define SD_PIN_INIT()  \
 do { \
        PIOA_PDR = BV(19) | BV(20) | BV(21) | BV(22) | BV(23) | BV(24); \