From 49a506f8886d05feed8b767858a46841c46b8978 Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 28 Sep 2011 13:42:25 +0000 Subject: [PATCH 1/1] Add strobe macros for debug. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5110 38d2e660-2303-0410-9eaa-f027e97ec537 --- boards/sam3x-ek/hw/hw_sd.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); \ -- 2.25.1