summaryrefslogtreecommitdiff
path: root/nuttx/configs/shenzhou/src/shenzhou-internal.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-27 13:57:17 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-27 13:57:17 +0000
commitb3ee6803286f2d85eb1893780b4c20265d6b8f67 (patch)
treea3d4ab02123a02b104501bd7ee3efb7e0f1f4b30 /nuttx/configs/shenzhou/src/shenzhou-internal.h
parent1ba327bd1c3e895675e7ab504af1064635fdf282 (diff)
downloadpx4-nuttx-b3ee6803286f2d85eb1893780b4c20265d6b8f67.tar.gz
px4-nuttx-b3ee6803286f2d85eb1893780b4c20265d6b8f67.tar.bz2
px4-nuttx-b3ee6803286f2d85eb1893780b4c20265d6b8f67.zip
Support for relays on the Shenzhou board (Darcy Gong)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5266 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/shenzhou/src/shenzhou-internal.h')
-rw-r--r--nuttx/configs/shenzhou/src/shenzhou-internal.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/nuttx/configs/shenzhou/src/shenzhou-internal.h b/nuttx/configs/shenzhou/src/shenzhou-internal.h
index f9cebc5e3..862a0250d 100644
--- a/nuttx/configs/shenzhou/src/shenzhou-internal.h
+++ b/nuttx/configs/shenzhou/src/shenzhou-internal.h
@@ -387,10 +387,16 @@
* 58 PD11 SD_CS Active low: Pulled high (See also TFT LCD CN13, pin 32)
*/
-#define GPIO_SD_CD (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_EXTI|GPIO_PORTB|GPIO_PIN14)
-#define GPIO_SD_CS (GPIO_OUTPUT|GPIO_CNF_OUTPP|GPIO_MODE_50MHz|\
+#define GPIO_SD_CD (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_EXTI|GPIO_PORTB|GPIO_PIN14)
+#define GPIO_SD_CS (GPIO_OUTPUT|GPIO_CNF_OUTPP|GPIO_MODE_50MHz|\
GPIO_OUTPUT_SET|GPIO_PORTD|GPIO_PIN11)
+/* Relays */
+
+#define NUM_RELAYS 1
+#define GPIO_RELAYS_R00 (GPIO_OUTPUT|GPIO_CNF_OUTPP|GPIO_MODE_50MHz|\
+ GPIO_OUTPUT_SET|GPIO_PORTE|GPIO_PIN0)
+
/****************************************************************************************************
* Public Types
****************************************************************************************************/