From 982766c62600d3712e0a35c5f1ea12bc75b91f9d Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 7 Feb 2010 15:27:28 +0000 Subject: [PATCH] Move chip select GPIO to board-specific git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@2535 7fd9a85b-ad96-42d3-883c-3090e2eb8679 --- nuttx/arch/arm/src/sam3u/sam3u_internal.h | 1 - nuttx/configs/sam3u-ek/src/sam3uek_internal.h | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nuttx/arch/arm/src/sam3u/sam3u_internal.h b/nuttx/arch/arm/src/sam3u/sam3u_internal.h index 440bcfece..5cbb9c0fd 100755 --- a/nuttx/arch/arm/src/sam3u/sam3u_internal.h +++ b/nuttx/arch/arm/src/sam3u/sam3u_internal.h @@ -231,7 +231,6 @@ #define GPIO_MCI_DAT7 (GPIO_PERIPHA|GPIO_CFG_PULLUP|GPIO_PORT_PIOB|GPIO_PIN31) #define GPIO_MCI_CK (GPIO_PERIPHA|GPIO_CFG_DEFAULT|GPIO_PORT_PIOA|GPIO_PIN3) #define GPIO_MCI_DA (GPIO_PERIPHA|GPIO_CFG_PULLUP|GPIO_PORT_PIOA|GPIO_PIN4) -#define GPIO_MCI_CD (GPIO_INPUT|GPIO_CFG_PULLUP|GPIO_PORT_PIOA|{AT91C_PIO_PA25) #define GPIO_PWMC_PWMH0 (GPIO_PERIPHA|GPIO_CFG_DEFAULT|GPIO_PORT_PIOB|GPIO_PIN0) #define GPIO_PWMC_PWML0 (GPIO_PERIPHB|GPIO_CFG_DEFAULT|GPIO_PORT_PIOA|GPIO_PIN7) diff --git a/nuttx/configs/sam3u-ek/src/sam3uek_internal.h b/nuttx/configs/sam3u-ek/src/sam3uek_internal.h index 0e816204b..21f57adfb 100755 --- a/nuttx/configs/sam3u-ek/src/sam3uek_internal.h +++ b/nuttx/configs/sam3u-ek/src/sam3uek_internal.h @@ -65,6 +65,11 @@ #define GPIO_BUTTON1 (GPIO_INPUT|GPIO_CFG_PULLUP|GPIO_CFG_DEGLITCH|GPIO_PORT_PIOA|GPIO_PIN18) #define GPIO_BUTTON2 (GPIO_INPUT|GPIO_CFG_PULLUP|GPIO_CFG_DEGLITCH|GPIO_PORT_PIOA|GPIO_PIN19) +/* SD Card Detect */ + +#define GPIO_MCI_CD (GPIO_INPUT|GPIO_CFG_PULLUP|GPIO_PORT_PIOA|GPIO_PIN25) + + #define IRQ_BUTTON1 SAM3U_IRQ_PA18 #define IRQ_BUTTON2 SAM3U_IRQ_PA19