summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2011-10-05 23:57:49 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2011-10-05 23:57:49 +0000
commit66ae2c15e3984d868a63ff881d6beab523b07ca5 (patch)
tree3747b5db497b26f2186502c3372499579600be64
parent42b0f108f8d978774102cf4fd000e367dc9942a4 (diff)
Fix C++ dependencies, cleaning, ..
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4025 7fd9a85b-ad96-42d3-883c-3090e2eb8679
-rw-r--r--nuttx/Makefile15
-rw-r--r--nuttx/arch/arm/src/sam3u/sam3u_spi.c4
-rwxr-xr-xnuttx/configs/sam3u-ek/src/up_touchscreen.c21
-rwxr-xr-xnuttx/configs/sam3u-ek/touchscreen/defconfig2
-rwxr-xr-xnuttx/libxx/Makefile2
5 files changed, 37 insertions, 7 deletions
diff --git a/nuttx/Makefile b/nuttx/Makefile
index a298645e17..5b622ab40f 100644
--- a/nuttx/Makefile
+++ b/nuttx/Makefile
@@ -99,17 +99,28 @@ endif
NONFSDIRS = sched $(ARCH_SRC) $(NUTTX_ADDONS)
FSDIRS = fs drivers binfmt
-NETFSDIRS = fs drivers
CONTEXTDIRS = $(APPDIR)
USERDIRS =
ifeq ($(CONFIG_NUTTX_KERNEL),y)
+
NONFSDIRS += syscall
CONTEXTDIRS += syscall
USERDIRS += syscall lib mm $(USER_ADDONS)
+ifeq ($(CONFIG_HAVE_CXX),y)
+USERDIRS += libxx
+endif
+
else
+
NONFSDIRS += lib mm
OTHERDIRS += syscall $(USER_ADDONS)
+ifeq ($(CONFIG_HAVE_CXX),y)
+NONFSDIRS += libxx
+else
+OTHERDIRS += libxx
+endif
+
endif
ifeq ($(CONFIG_NX),y)
@@ -183,7 +194,7 @@ else
NUTTXLIBS += mm/libmm$(LIBEXT) lib/liblib$(LIBEXT)
endif
-# Add libraries for network support. CXX, CXXFLAGS, and COMPILEXX must
+# Add libraries for C++ support. CXX, CXXFLAGS, and COMPILEXX must
# be defined in Make.defs for this to work!
ifeq ($(CONFIG_HAVE_CXX),y)
diff --git a/nuttx/arch/arm/src/sam3u/sam3u_spi.c b/nuttx/arch/arm/src/sam3u/sam3u_spi.c
index d16598c713..4c3462eef7 100644
--- a/nuttx/arch/arm/src/sam3u/sam3u_spi.c
+++ b/nuttx/arch/arm/src/sam3u/sam3u_spi.c
@@ -816,6 +816,10 @@ FAR struct spi_dev_s *up_spiinitialize(int port)
sam3u_configgpio(GPIO_SPI0_MOSI);
sam3u_configgpio(GPIO_SPI0_SPCK);
+ /* Disable SPI clocking */
+
+ putreg32(SPI_CR_SPIDIS, SAM3U_SPI_CR);
+
/* Execute a software reset of the SPI (twice) */
putreg32(SPI_CR_SWRST, SAM3U_SPI_CR);
diff --git a/nuttx/configs/sam3u-ek/src/up_touchscreen.c b/nuttx/configs/sam3u-ek/src/up_touchscreen.c
index 699c245b78..9b58f151c4 100755
--- a/nuttx/configs/sam3u-ek/src/up_touchscreen.c
+++ b/nuttx/configs/sam3u-ek/src/up_touchscreen.c
@@ -200,14 +200,14 @@ static bool tsc_pendown(FAR struct ads7843e_config_s *state)
****************************************************************************/
/****************************************************************************
- * Name: up_tcinitialize
+ * Name: arch_tcinitialize
*
* Description:
* Initialize the touchscreen device
*
****************************************************************************/
-int up_tcinitialize(void)
+int arch_tcinitialize(void)
{
FAR struct spi_dev_s *dev;
int ret;
@@ -244,4 +244,19 @@ int up_tcinitialize(void)
return OK;
}
-#endif /* CONFIG_INPUT_ADS7843E */ \ No newline at end of file
+
+/****************************************************************************
+ * Name: arch_tcuninitialize
+ *
+ * Description:
+ * Un-initialize the touchscreen device
+ *
+ ****************************************************************************/
+
+void arch_tcuninitialize(void)
+{
+ /* No support for un-initializing the touchscreen ADS7843E device yet */
+}
+
+#endif /* CONFIG_INPUT_ADS7843E */
+
diff --git a/nuttx/configs/sam3u-ek/touchscreen/defconfig b/nuttx/configs/sam3u-ek/touchscreen/defconfig
index f6eab150a5..fb5868f581 100755
--- a/nuttx/configs/sam3u-ek/touchscreen/defconfig
+++ b/nuttx/configs/sam3u-ek/touchscreen/defconfig
@@ -1061,7 +1061,7 @@ CONFIG_EXAMPLES_NXLINES_EXTERNINIT=n
# collected and the program terminates. Default: Samples are collected
# indefinitely.
#
-CONFIG_EXAMPLES_TOUCHSCREEN_BUILTIN=n
+CONFIG_EXAMPLES_TOUCHSCREEN_BUILTIN=y
CONFIG_EXAMPLES_TOUCHSCREEN_MINOR=0
CONFIG_EXAMPLES_TOUCHSCREEN_DEVPATH="/dev/input0"
CONFIG_EXAMPLES_TOUCHSCREEN_NSAMPLES=25
diff --git a/nuttx/libxx/Makefile b/nuttx/libxx/Makefile
index 38e3d3a73f..0326e64e45 100755
--- a/nuttx/libxx/Makefile
+++ b/nuttx/libxx/Makefile
@@ -65,7 +65,7 @@ $(BIN): $(OBJS)
done ; )
.depend: Makefile $(SRCS)
- @$(MKDEP) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
+ @$(MKDEP) $(CXX) -- $(CXXFLAGS) -- $(SRCS) >Make.dep
@touch $@
depend: .depend