From: asterix Date: Wed, 28 Sep 2011 13:42:25 +0000 (+0000) Subject: Add strobe macros for debug. X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=49a506f8886d05feed8b767858a46841c46b8978;p=bertos.git Add strobe macros for debug. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5110 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/boards/sam3x-ek/hw/hw_sd.h b/boards/sam3x-ek/hw/hw_sd.h index d077b8b3..1acaf9d3 100644 --- a/boards/sam3x-ek/hw/hw_sd.h +++ b/boards/sam3x-ek/hw/hw_sd.h @@ -45,6 +45,16 @@ #include +#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); \