Add strobe macros for debug.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 28 Sep 2011 13:42:25 +0000 (13:42 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 28 Sep 2011 13:42:25 +0000 (13:42 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5110 38d2e660-2303-0410-9eaa-f027e97ec537

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); \