diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-04-20 02:20:42 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-04-20 02:20:42 +0000 |
commit | 6ea53310e8e8a3368169142116491f45a0195dc2 (patch) | |
tree | ecc38e6b3d6bcf63e820c9c5505e4c0df19ad26d /nuttx/configs/sam3u-ek/src/sam3uek_internal.h | |
parent | 1a492f277ccd2a0a0fc8b6d35cb1083fca37a502 (diff) | |
download | px4-nuttx-6ea53310e8e8a3368169142116491f45a0195dc2.tar.gz px4-nuttx-6ea53310e8e8a3368169142116491f45a0195dc2.tar.bz2 px4-nuttx-6ea53310e8e8a3368169142116491f45a0195dc2.zip |
sam3u LCD driver is code complete (but untested)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2619 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 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nuttx/configs/sam3u-ek/src/sam3uek_internal.h b/nuttx/configs/sam3u-ek/src/sam3uek_internal.h index fe2bd9c1a..1e79a86f1 100755 --- a/nuttx/configs/sam3u-ek/src/sam3uek_internal.h +++ b/nuttx/configs/sam3u-ek/src/sam3uek_internal.h @@ -57,6 +57,11 @@ #define LCD_BASE SAM3U_EXTCS2_BASE
+/* Touchscreen controller (TSC) */
+
+#define CONFIG_TSC_ADS7843 1 /* ADS7843 present on board */
+#define CONFIG_TSC_SPI 0 /* On SPI0 */
+
/* SAM3U-EK GPIO Pin Definitions ****************************************************/
/* LCD:
@@ -131,6 +136,11 @@ #define GPIO_LCD_BKL (GPIO_OUTPUT|GPIO_CFG_DEFAULT|GPIO_OUTPUT_CLEAR|GPIO_PORT_PIOC|GPIO_PIN19)
+/* Touchscreen controller (TSC) */
+
+#define GPIO_TCS_IRQ (PIO_INPUT|GPIO_CFG_PULLUP|GPIO_PORT_PIOA|GPIO_PIN6)
+#define GPIO_TCS_BUSY (PIO_INPUT|GPIO_CFG_PULLUP|GPIO_PORT_PIOA|GPIO_PIN6)
+
/* LEDs */
#define GPIO_LED0 (GPIO_OUTPUT|GPIO_CFG_DEFAULT|GPIO_PORT_PIOB|GPIO_OUTPUT_CLEAR|GPIO_PIN0)
@@ -151,6 +161,10 @@ /* SPI Chip Selects */
+/* Chip select pin connected to the touchscreen controller. */
+
+#define GPIO_TSC_NPCS GPIO_SPI0_NPCS2_PC14
+
/************************************************************************************
* Public Types
************************************************************************************/
|