forked from Archive/PX4-Autopilot
Fixes for clean compilation of NxWidgets/NxWM with Kconfig and changes to build system; Fixes to Shenzhou NxWM configuration for clean build
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5193 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
415e830372
commit
923da1b34b
|
@ -166,3 +166,5 @@
|
|||
* Kconfig: Added a mconfig configuration file. Eventually, NxWidgets
|
||||
needs to get hooked into the NuttX mconf configuration. Still not
|
||||
exactly sure how to do that.
|
||||
* libnxwidgets/Makefile and NxWidgets/nxwm/Makefile: Need updates
|
||||
for consistency with recent changes to NuttX build system (>= 6.22)
|
||||
|
|
|
@ -36,6 +36,14 @@
|
|||
-include $(TOPDIR)/.config
|
||||
-include $(TOPDIR)/Make.defs
|
||||
|
||||
# Control build verbosity
|
||||
|
||||
ifeq ($(V),1)
|
||||
export Q :=
|
||||
else
|
||||
export Q := @
|
||||
endif
|
||||
|
||||
NXWIDGETDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||
|
||||
ASRCS =
|
||||
|
|
|
@ -36,6 +36,14 @@
|
|||
-include $(TOPDIR)/.config
|
||||
-include $(TOPDIR)/Make.defs
|
||||
|
||||
# Control build verbosity
|
||||
|
||||
ifeq ($(V),1)
|
||||
export Q :=
|
||||
else
|
||||
export Q := @
|
||||
endif
|
||||
|
||||
NXWMDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
||||
NXWIDGETDIR := $(NXWMDIR)/../libnxwidgets
|
||||
|
||||
|
|
|
@ -3407,3 +3407,9 @@
|
|||
* configs/shenzhou/src/up_touchscreen.c: Add ADS7843E touchscreen
|
||||
support for the Shenzhou board. The initial check-in is untested
|
||||
and basically a clone of the the touchscreen support fro the SAM-3U.
|
||||
* tools/cfgparser.c: There are some NxWidget configuration
|
||||
settings that must be de-quoted.
|
||||
* arch/arm/src/stm32/Kconfig: There is no SPI4. Some platforms
|
||||
SPI3 and some do not (still not clear).
|
||||
* nuttx/configs/shenzhou: Various fixes to build new NxWM
|
||||
configuration.
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<tr align="center" bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<h1><big><font color="#3c34ec"><i>NuttX README Files</i></font></big></h1>
|
||||
<p>Last Updated: September 12, 2012</p>
|
||||
<p>Last Updated: September 25, 2012</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -73,8 +73,8 @@
|
|||
| | | |- <a href="http://svn.code.sf.net/p/nuttx/code/trunk/nuttx/configs/eagle100/src/README.txt">src/README.txt</a>
|
||||
| | | `- <a href="http://svn.code.sf.net/p/nuttx/code/trunk/nuttx/configs/eagle100/README.txt"><b><i>README.txt</i></b></a>
|
||||
| | |- ekk-lm3s9b96/
|
||||
| | | `- <a href="http://svn.code.sf.net/p/nuttx/code/trunk/nuttx/configs/ekk-lm3s9b96/README.txt"><b><i>README.txt
|
||||
| | |- | | |- ez80f910200kitg/
|
||||
| | | `- <a href="http://svn.code.sf.net/p/nuttx/code/trunk/nuttx/configs/ekk-lm3s9b96/README.txt"><b><i>README.txt</i></b></a>
|
||||
| | |- ez80f910200kitg/
|
||||
| | | |- <a href="http://svn.code.sf.net/p/nuttx/code/trunk/nuttx/configs/ez80f910200kitg/ostest/README.txt">ostest/README.txt</a>
|
||||
| | | `- <a href="http://svn.code.sf.net/p/nuttx/code/trunk/nuttx/configs/ez80f910200kitg/README.txt"><b><i>README.txt</i></b></a>
|
||||
| | |- ez80f910200zco/
|
||||
|
@ -93,7 +93,8 @@
|
|||
| | | |- <a href="http://svn.code.sf.net/p/nuttx/code/trunk/nuttx/configs/hymini-stm32v/src/README.txt">src/README.txt</a>
|
||||
| | | `- <a href="http://svn.code.sf.net/p/nuttx/code/trunk/nuttx/configs/hymini-stm32v/README.txt"><b><i>README.txt</i></b></a>
|
||||
| | |- lincoln60/
|
||||
| | | `- <a href="http://svn.code.sf.net/p/nuttx/code/trunk/nuttx/configs/lincoln60/README.txt"><b><i>README.txt | | |- kwikstik-k40/
|
||||
| | | `- <a href="http://svn.code.sf.net/p/nuttx/code/trunk/nuttx/configs/lincoln60/README.txt"><b><i>README.txt</i></b></a>
|
||||
| | |- kwikstik-k40/
|
||||
| | | `- <a href="http://svn.code.sf.net/p/nuttx/code/trunk/nuttx/configs/kwikstik-k40/README.txt"><b><i>README.txt</i></b></a>
|
||||
| | |- lm3s6432-s2e/
|
||||
| | | |- <a href="http://svn.code.sf.net/p/nuttx/code/trunk/nuttx/configs/lm3s6432-s2e/include/README.txt">include/README.txt</a>
|
||||
|
|
|
@ -38,7 +38,8 @@ TOPDIR := ${shell pwd | sed -e 's/ /\\ /g'}
|
|||
-include ${TOPDIR}/tools/Config.mk
|
||||
-include ${TOPDIR}/Make.defs
|
||||
|
||||
# Control build verbosity.
|
||||
# Control build verbosity
|
||||
|
||||
ifeq ($(V),1)
|
||||
export Q :=
|
||||
else
|
||||
|
|
|
@ -340,14 +340,7 @@ config STM32_SPI2
|
|||
config STM32_SPI3
|
||||
bool "SPI3"
|
||||
default n
|
||||
depends on STM32_STM32F20XX || STM32_STM32F40XX
|
||||
select SPI
|
||||
select STM32_SPI
|
||||
|
||||
config STM32_SPI4
|
||||
bool "SPI4"
|
||||
default n
|
||||
depends on STM32_STM32F10XX
|
||||
depends on STM32_CONNECTIVITYLINE || STM32_STM32F20XX || STM32_STM32F40XX
|
||||
select SPI
|
||||
select STM32_SPI
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ CONFIG_ARCH_CHIP="stm32"
|
|||
CONFIG_ARCH_HAVE_MPU=y
|
||||
# CONFIG_ARMV7M_MPU is not set
|
||||
CONFIG_ARCH_IRQPRIO=y
|
||||
CONFIG_BOARD_LOOPSPERMSEC=10926
|
||||
CONFIG_BOARD_LOOPSPERMSEC=5483
|
||||
# CONFIG_ARCH_CALIBRATION is not set
|
||||
# CONFIG_SERIAL_TERMIOS is not set
|
||||
# CONFIG_NET_MULTICAST is not set
|
||||
|
@ -121,7 +121,7 @@ CONFIG_STM32_CODESOURCERYW=y
|
|||
# CONFIG_STM32_CRC is not set
|
||||
# CONFIG_STM32_DMA1 is not set
|
||||
# CONFIG_STM32_DMA2 is not set
|
||||
# CONFIG_STM32_BKP is not set
|
||||
CONFIG_STM32_BKP=y
|
||||
# CONFIG_STM32_CAN1 is not set
|
||||
# CONFIG_STM32_DAC1 is not set
|
||||
# CONFIG_STM32_DAC2 is not set
|
||||
|
@ -132,7 +132,7 @@ CONFIG_STM32_I2C1=y
|
|||
CONFIG_STM32_PWR=y
|
||||
# CONFIG_STM32_SPI1 is not set
|
||||
# CONFIG_STM32_SPI2 is not set
|
||||
# CONFIG_STM32_SPI4 is not set
|
||||
CONFIG_STM32_SPI3=y
|
||||
# CONFIG_STM32_TIM1 is not set
|
||||
# CONFIG_STM32_TIM2 is not set
|
||||
# CONFIG_STM32_TIM3 is not set
|
||||
|
@ -148,14 +148,16 @@ CONFIG_STM32_USART2=y
|
|||
# CONFIG_STM32_UART5 is not set
|
||||
# CONFIG_STM32_USB is not set
|
||||
# CONFIG_STM32_WWDG is not set
|
||||
CONFIG_STM32_SPI=y
|
||||
CONFIG_STM32_I2C=y
|
||||
|
||||
#
|
||||
# Alternate Pin Mapping
|
||||
#
|
||||
# CONFIG_STM32_USART2_REMAP is not set
|
||||
CONFIG_STM32_USART2_REMAP=y
|
||||
CONFIG_STM32_SPI3_REMAP=y
|
||||
# CONFIG_STM32_I2C1_REMAP is not set
|
||||
# CONFIG_STM32_ETH_REMAP is not set
|
||||
CONFIG_STM32_ETH_REMAP=y
|
||||
# CONFIG_STM32_JTAG_DISABLE is not set
|
||||
CONFIG_STM32_JTAG_FULL_ENABLE=y
|
||||
# CONFIG_STM32_JTAG_NOJNTRST_ENABLE is not set
|
||||
|
@ -163,6 +165,12 @@ CONFIG_STM32_JTAG_FULL_ENABLE=y
|
|||
# CONFIG_STM32_FORCEPOWER is not set
|
||||
# CONFIG_ARCH_BOARD_STM32_CUSTOM_CLOCKCONFIG is not set
|
||||
|
||||
#
|
||||
# SPI Configuration
|
||||
#
|
||||
# CONFIG_STM32_SPI_INTERRUPTS is not set
|
||||
# CONFIG_STM32_SPI_DMA is not set
|
||||
|
||||
#
|
||||
# I2C Configuration
|
||||
#
|
||||
|
@ -176,17 +184,19 @@ CONFIG_STM32_I2CTIMEOTICKS=500
|
|||
# Ethernet MAC configuration
|
||||
#
|
||||
CONFIG_STM32_PHYADDR=0
|
||||
CONFIG_STM32_MII=y
|
||||
CONFIG_STM32_MII_MCO=y
|
||||
# CONFIG_STM32_MII_EXTCLK is not set
|
||||
# CONFIG_STM32_MII is not set
|
||||
CONFIG_STM32_AUTONEG=y
|
||||
CONFIG_STM32_PHYSR=16
|
||||
# CONFIG_STM32_PHYSR_ALTCONFIG is not set
|
||||
CONFIG_STM32_PHYSR_SPEED=0x0002
|
||||
CONFIG_STM32_PHYSR_100MBPS=0x0000
|
||||
CONFIG_STM32_PHYSR_MODE=0x0004
|
||||
CONFIG_STM32_PHYSR_FULLDUPLEX=0x0004
|
||||
CONFIG_STM32_PHYSR=17
|
||||
CONFIG_STM32_PHYSR_ALTCONFIG=y
|
||||
CONFIG_STM32_PHYSR_ALTMODE=0xf000
|
||||
CONFIG_STM32_PHYSR_10HD=0x1000
|
||||
CONFIG_STM32_PHYSR_100HD=0x4000
|
||||
CONFIG_STM32_PHYSR_10FD=0x2000
|
||||
CONFIG_STM32_PHYSR_100FD=0x8000
|
||||
# CONFIG_STM32_ETH_PTP is not set
|
||||
CONFIG_STM32_RMII=y
|
||||
CONFIG_STM32_RMII_MCO=y
|
||||
# CONFIG_STM32_RMII_EXTCLK is not set
|
||||
|
||||
#
|
||||
# USB Host Configuration
|
||||
|
@ -203,7 +213,7 @@ CONFIG_ARCH_STACKDUMP=y
|
|||
# Board Settings
|
||||
#
|
||||
CONFIG_DRAM_START=0x20000000
|
||||
CONFIG_DRAM_SIZE=196608
|
||||
CONFIG_DRAM_SIZE=65536
|
||||
CONFIG_ARCH_HAVE_INTERRUPTSTACK=y
|
||||
CONFIG_ARCH_INTERRUPTSTACK=0
|
||||
|
||||
|
@ -263,8 +273,8 @@ CONFIG_RR_INTERVAL=200
|
|||
CONFIG_TASK_NAME_SIZE=0
|
||||
# CONFIG_JULIAN_TIME is not set
|
||||
CONFIG_START_YEAR=2012
|
||||
CONFIG_START_MONTH=5
|
||||
CONFIG_START_DAY=28
|
||||
CONFIG_START_MONTH=9
|
||||
CONFIG_START_DAY=26
|
||||
CONFIG_DEV_CONSOLE=y
|
||||
# CONFIG_DEV_LOWCONSOLE is not set
|
||||
# CONFIG_MUTEX_TYPES is not set
|
||||
|
@ -339,7 +349,7 @@ CONFIG_SPI=y
|
|||
CONFIG_SPI_EXCHANGE=y
|
||||
# CONFIG_SPI_CMDDATA is not set
|
||||
CONFIG_RTC=y
|
||||
CONFIG_RTC_DATETIME=y
|
||||
# CONFIG_RTC_DATETIME is not set
|
||||
# CONFIG_RTC_ALARM is not set
|
||||
# CONFIG_WATCHDOG is not set
|
||||
# CONFIG_ANALOG is not set
|
||||
|
@ -985,7 +995,7 @@ CONFIG_NSH_NESTDEPTH=3
|
|||
# CONFIG_NSH_DISABLEBG is not set
|
||||
CONFIG_NSH_CONSOLE=y
|
||||
# CONFIG_NSH_CONDEV is not set
|
||||
# CONFIG_NSH_ARCHINIT is not set
|
||||
CONFIG_NSH_ARCHINIT=y
|
||||
CONFIG_NSH_TELNET=y
|
||||
CONFIG_NSH_TELNETD_PORT=23
|
||||
CONFIG_NSH_TELNETD_DAEMONPRIO=100
|
||||
|
|
|
@ -63,10 +63,16 @@ SECTIONS
|
|||
_etext = ABSOLUTE(.);
|
||||
} > flash
|
||||
|
||||
.init_section : {
|
||||
_sinit = ABSOLUTE(.);
|
||||
*(.init_array .init_array.*)
|
||||
_einit = ABSOLUTE(.);
|
||||
} > flash
|
||||
|
||||
__exidx_start = ABSOLUTE(.);
|
||||
.ARM.exidx : {
|
||||
*(.ARM.exidx*)
|
||||
} >flash
|
||||
} > flash
|
||||
__exidx_end = ABSOLUTE(.);
|
||||
|
||||
_eronly = ABSOLUTE(.);
|
||||
|
|
|
@ -65,10 +65,16 @@ SECTIONS
|
|||
_etext = ABSOLUTE(.);
|
||||
} > flash
|
||||
|
||||
.init_section : {
|
||||
_sinit = ABSOLUTE(.);
|
||||
*(.init_array .init_array.*)
|
||||
_einit = ABSOLUTE(.);
|
||||
} > flash
|
||||
|
||||
__exidx_start = ABSOLUTE(.);
|
||||
.ARM.exidx : {
|
||||
*(.ARM.exidx*)
|
||||
} >flash
|
||||
} > flash
|
||||
__exidx_end = ABSOLUTE(.);
|
||||
|
||||
_eronly = ABSOLUTE(.);
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
#include <nuttx/input/ads7843e.h>
|
||||
|
||||
#include "stm32_internal.h"
|
||||
#include "shenzhou_internal.h"
|
||||
#include "shenzhou-internal.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-Processor Definitions
|
||||
|
@ -159,13 +159,14 @@ static struct stm32_config_s g_tscinfo =
|
|||
* pendown - Return the state of the pen down GPIO input
|
||||
*/
|
||||
|
||||
static int tsc_attach(FAR struct ads7843e_config_s *state, xcpt_t isr)
|
||||
static int tsc_attach(FAR struct ads7843e_config_s *state, xcpt_t handler)
|
||||
{
|
||||
FAR struct stm32_config_s *priv = (FAR struct stm32_config_s *)state;
|
||||
|
||||
/* Just save the handler for use when the interrupt is enabled */
|
||||
|
||||
priv->handler = handler;
|
||||
return OK;
|
||||
}
|
||||
|
||||
static void tsc_enable(FAR struct ads7843e_config_s *state, bool enable)
|
||||
|
@ -256,7 +257,7 @@ int arch_tcinitialize(int minor)
|
|||
|
||||
/* Initialize and register the SPI touschscreen device */
|
||||
|
||||
ret = ads7843e_register(dev, &g_tscinfo, CONFIG_ADS7843E_DEVMINOR);
|
||||
ret = ads7843e_register(dev, &g_tscinfo.dev, CONFIG_ADS7843E_DEVMINOR);
|
||||
if (ret < 0)
|
||||
{
|
||||
idbg("Failed to initialize SPI bus %d\n", CONFIG_ADS7843E_SPIDEV);
|
||||
|
|
|
@ -56,13 +56,24 @@ char line[LINESIZE+1];
|
|||
****************************************************************************/
|
||||
|
||||
/* These are configuration variable name that are quoted by configuration tool
|
||||
* but which must be unquoated when used in C code.
|
||||
* but which must be unquoted when used in C code.
|
||||
*/
|
||||
|
||||
static const char *dequote_list[] =
|
||||
{
|
||||
"CONFIG_USER_ENTRYPOINT",
|
||||
NULL
|
||||
/* NuttX */
|
||||
|
||||
"CONFIG_USER_ENTRYPOINT", /* Name of entry point function */
|
||||
|
||||
/* NxWidgets/NxWM */
|
||||
|
||||
"CONFIG_NXWM_BACKGROUND_IMAGE", /* Name of bitmap image class */
|
||||
"CONFIG_NXWM_STARTWINDOW_ICON", /* Name of bitmap image class */
|
||||
"CONFIG_NXWM_NXCONSOLE_ICON", /* Name of bitmap image class */
|
||||
"CONFIG_NXWM_CALIBRATION_ICON", /* Name of bitmap image class */
|
||||
"CONFIG_NXWM_HEXCALCULATOR_ICON", /* Name of bitmap image class */
|
||||
|
||||
NULL /* Marks the end of the list */
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -239,7 +250,7 @@ static char *dequote_value(const char *varname, char *varval)
|
|||
|
||||
/* Handle the case where nothing is left after dequoting */
|
||||
|
||||
if (len < 0)
|
||||
if (len <= 0)
|
||||
{
|
||||
dqval = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue