diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-04-11 15:32:07 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-04-11 15:32:07 +0000 |
commit | 9f4e907eee7044467ff13b28230355ed7d85d195 (patch) | |
tree | b2c4a958b3d0cd9f8a7cb3944db111487021cedd /nuttx/configs/sam3u-ek/src/sam3uek_internal.h | |
parent | 1ca794f2728207ce1320b07ed063aa54d2055dc7 (diff) | |
download | px4-nuttx-9f4e907eee7044467ff13b28230355ed7d85d195.tar.gz px4-nuttx-9f4e907eee7044467ff13b28230355ed7d85d195.tar.bz2 px4-nuttx-9f4e907eee7044467ff13b28230355ed7d85d195.zip |
Add MCI CD GPIO
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2585 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/sam3u-ek/src/sam3uek_internal.h')
-rwxr-xr-x | nuttx/configs/sam3u-ek/src/sam3uek_internal.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/nuttx/configs/sam3u-ek/src/sam3uek_internal.h b/nuttx/configs/sam3u-ek/src/sam3uek_internal.h index 61ddb1f18..f092cbb02 100755 --- a/nuttx/configs/sam3u-ek/src/sam3uek_internal.h +++ b/nuttx/configs/sam3u-ek/src/sam3uek_internal.h @@ -108,6 +108,48 @@ extern void weak_function sam3u_spiinitialize(void); extern void weak_function sam3u_usbinitialize(void);
+/****************************************************************************
+ * Name: sam3u_hsmciinit
+ *
+ * Description:
+ * Initialize HSMCI support
+ *
+ ****************************************************************************/
+
+#ifdef CONFIG_SAM3U_HSMCI
+extern int weak_function sam3u_hsmciinit(void);
+#else
+# define sam3u_boardmciinit()
+#endif
+
+/****************************************************************************
+ * Name: sam3u_cardinserted
+ *
+ * Description:
+ * Check if a card is inserted into the selected HSMCI slot
+ *
+ ****************************************************************************/
+
+#ifdef CONFIG_SAM3U_HSMCI
+extern bool sam3u_cardinserted(unsigned char slot);
+#else
+# define sam3u_cardinserted(slot) (false)
+#endif
+
+/****************************************************************************
+ * Name: sam3u_writeprotected
+ *
+ * Description:
+ * Check if a card is inserted into the selected HSMCI slot
+ *
+ ****************************************************************************/
+
+#ifdef CONFIG_SAM3U_HSMCI
+extern bool sam3u_writeprotected(unsigned char slot);
+#else
+# define sam3u_writeprotected(slot) (false)
+#endif
+
#endif /* __ASSEMBLY__ */
#endif /* __CONFIGS_SAM3U_EK_SRC_SAM3UEK_INTERNAL_H */
|