mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
Fix C++ dependencies, cleaning, ..
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4025 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -99,17 +99,28 @@ endif
|
|||||||
|
|
||||||
NONFSDIRS = sched $(ARCH_SRC) $(NUTTX_ADDONS)
|
NONFSDIRS = sched $(ARCH_SRC) $(NUTTX_ADDONS)
|
||||||
FSDIRS = fs drivers binfmt
|
FSDIRS = fs drivers binfmt
|
||||||
NETFSDIRS = fs drivers
|
|
||||||
CONTEXTDIRS = $(APPDIR)
|
CONTEXTDIRS = $(APPDIR)
|
||||||
USERDIRS =
|
USERDIRS =
|
||||||
|
|
||||||
ifeq ($(CONFIG_NUTTX_KERNEL),y)
|
ifeq ($(CONFIG_NUTTX_KERNEL),y)
|
||||||
|
|
||||||
NONFSDIRS += syscall
|
NONFSDIRS += syscall
|
||||||
CONTEXTDIRS += syscall
|
CONTEXTDIRS += syscall
|
||||||
USERDIRS += syscall lib mm $(USER_ADDONS)
|
USERDIRS += syscall lib mm $(USER_ADDONS)
|
||||||
|
ifeq ($(CONFIG_HAVE_CXX),y)
|
||||||
|
USERDIRS += libxx
|
||||||
|
endif
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
NONFSDIRS += lib mm
|
NONFSDIRS += lib mm
|
||||||
OTHERDIRS += syscall $(USER_ADDONS)
|
OTHERDIRS += syscall $(USER_ADDONS)
|
||||||
|
ifeq ($(CONFIG_HAVE_CXX),y)
|
||||||
|
NONFSDIRS += libxx
|
||||||
|
else
|
||||||
|
OTHERDIRS += libxx
|
||||||
|
endif
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_NX),y)
|
ifeq ($(CONFIG_NX),y)
|
||||||
@@ -183,7 +194,7 @@ else
|
|||||||
NUTTXLIBS += mm/libmm$(LIBEXT) lib/liblib$(LIBEXT)
|
NUTTXLIBS += mm/libmm$(LIBEXT) lib/liblib$(LIBEXT)
|
||||||
endif
|
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!
|
# be defined in Make.defs for this to work!
|
||||||
|
|
||||||
ifeq ($(CONFIG_HAVE_CXX),y)
|
ifeq ($(CONFIG_HAVE_CXX),y)
|
||||||
|
|||||||
@@ -816,6 +816,10 @@ FAR struct spi_dev_s *up_spiinitialize(int port)
|
|||||||
sam3u_configgpio(GPIO_SPI0_MOSI);
|
sam3u_configgpio(GPIO_SPI0_MOSI);
|
||||||
sam3u_configgpio(GPIO_SPI0_SPCK);
|
sam3u_configgpio(GPIO_SPI0_SPCK);
|
||||||
|
|
||||||
|
/* Disable SPI clocking */
|
||||||
|
|
||||||
|
putreg32(SPI_CR_SPIDIS, SAM3U_SPI_CR);
|
||||||
|
|
||||||
/* Execute a software reset of the SPI (twice) */
|
/* Execute a software reset of the SPI (twice) */
|
||||||
|
|
||||||
putreg32(SPI_CR_SWRST, SAM3U_SPI_CR);
|
putreg32(SPI_CR_SWRST, SAM3U_SPI_CR);
|
||||||
|
|||||||
@@ -200,14 +200,14 @@ static bool tsc_pendown(FAR struct ads7843e_config_s *state)
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_tcinitialize
|
* Name: arch_tcinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Initialize the touchscreen device
|
* Initialize the touchscreen device
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int up_tcinitialize(void)
|
int arch_tcinitialize(void)
|
||||||
{
|
{
|
||||||
FAR struct spi_dev_s *dev;
|
FAR struct spi_dev_s *dev;
|
||||||
int ret;
|
int ret;
|
||||||
@@ -244,4 +244,19 @@ int up_tcinitialize(void)
|
|||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_INPUT_ADS7843E */
|
|
||||||
|
/****************************************************************************
|
||||||
|
* 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 */
|
||||||
|
|
||||||
|
|||||||
@@ -1061,7 +1061,7 @@ CONFIG_EXAMPLES_NXLINES_EXTERNINIT=n
|
|||||||
# collected and the program terminates. Default: Samples are collected
|
# collected and the program terminates. Default: Samples are collected
|
||||||
# indefinitely.
|
# indefinitely.
|
||||||
#
|
#
|
||||||
CONFIG_EXAMPLES_TOUCHSCREEN_BUILTIN=n
|
CONFIG_EXAMPLES_TOUCHSCREEN_BUILTIN=y
|
||||||
CONFIG_EXAMPLES_TOUCHSCREEN_MINOR=0
|
CONFIG_EXAMPLES_TOUCHSCREEN_MINOR=0
|
||||||
CONFIG_EXAMPLES_TOUCHSCREEN_DEVPATH="/dev/input0"
|
CONFIG_EXAMPLES_TOUCHSCREEN_DEVPATH="/dev/input0"
|
||||||
CONFIG_EXAMPLES_TOUCHSCREEN_NSAMPLES=25
|
CONFIG_EXAMPLES_TOUCHSCREEN_NSAMPLES=25
|
||||||
|
|||||||
+1
-1
@@ -65,7 +65,7 @@ $(BIN): $(OBJS)
|
|||||||
done ; )
|
done ; )
|
||||||
|
|
||||||
.depend: Makefile $(SRCS)
|
.depend: Makefile $(SRCS)
|
||||||
@$(MKDEP) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
|
@$(MKDEP) $(CXX) -- $(CXXFLAGS) -- $(SRCS) >Make.dep
|
||||||
@touch $@
|
@touch $@
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|||||||
Reference in New Issue
Block a user