Add an ADC-based touchscreen driver for the PIC32MX7 MMB board
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4804 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
0b43f10d73
commit
1a2fce33e3
@ -2888,3 +2888,5 @@
|
||||
support for the MIO283QT2 LCD.
|
||||
* configs/pic32mx7mmb/src/up_mio283qt2.c: Add support for the MIO283QT2
|
||||
LCD on the PIC32MX7 MMB board.
|
||||
* configs/pic32mx7mmb/src/up_touchscreen.c: Add an ACD-based touchscreen
|
||||
driver for the PIC32MX7 MMB board.
|
||||
|
@ -8,7 +8,7 @@
|
||||
<tr align="center" bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<h1><big><font color="#3c34ec"><i>NuttX RTOS</i></font></big></h1>
|
||||
<p>Last Updated: May 19, 2012</p>
|
||||
<p>Last Updated: June 4, 2012</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2269,14 +2269,19 @@
|
||||
Stay tuned for updates.
|
||||
</p>
|
||||
<li><b>Mikroelektronika PIC32MX7 Mulitmedia Board (MMB)</b>.
|
||||
A port has begun for the Mikroelektronika PIC32MX7 Multimedia Board (MMB).
|
||||
See http://www.mikroe.com/ for further information.
|
||||
A port has been completed for the Mikroelektronika PIC32MX7 Multimedia Board (MMB).
|
||||
See http://www.mikroe.com/ for further information about this board.
|
||||
</li>
|
||||
<p>
|
||||
<b>STATUS:</b>
|
||||
A basic OS test configuration is in place, but the board does not boot.
|
||||
It looks like I will need an ICD3 in order to debug the code (PICkit3
|
||||
doesn't work for debugging with this board). This effort is temporarily stalled.
|
||||
Two verified configurations are available:
|
||||
(1) The basic OS test configuration that verfies the correctnexx port of Nuttx, and (2) an extensive <a href="NuttShell.html">NuttShell (NSH)</a> configuration.
|
||||
The NSH configuration includes:
|
||||
(1) Full network support,
|
||||
(2) Verified SPI driver,
|
||||
(3) SPI-based SD Card support,
|
||||
(4) USB device support (including configuration options for the USB mass storage device and the CDC/ACM serial class), and
|
||||
(4) Support for the MIO873QT2 LCD on the PIC32MX7 MMB.
|
||||
</p>
|
||||
</ul>
|
||||
</td>
|
||||
|
@ -1,7 +1,7 @@
|
||||
/************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-adc.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -1,7 +1,7 @@
|
||||
/********************************************************************************************
|
||||
* arch/mips/src/pic32mx/pic32mx-ioport.h
|
||||
*
|
||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -762,3 +762,13 @@ Where <subdir> is one of the following:
|
||||
CONFIGURED_APPS += examples/nximage :
|
||||
CONFIGURED_APPS += examples/nxlines :
|
||||
|
||||
Enabling touch screen support in the nsh configuaration
|
||||
-------------------------------------------------------
|
||||
|
||||
In defconfig (or nuttx/.config), set:
|
||||
|
||||
CONFIG_INPUT=y
|
||||
|
||||
In appconfig (or apps/.config), uncomment:
|
||||
|
||||
CONFIGURED_APPS += examples/touchscreen
|
||||
|
@ -124,3 +124,9 @@ ifeq ($(CONFIG_NX),y)
|
||||
#CONFIGURED_APPS += examples/nximage
|
||||
#CONFIGURED_APPS += examples/nxlines
|
||||
endif
|
||||
|
||||
# Uncomment to enable the touchscreen test
|
||||
|
||||
ifeq ($(CONFIG_INPUT),y)
|
||||
#CONFIGURED_APPS += examples/touchscreen
|
||||
endif
|
||||
|
@ -1567,6 +1567,28 @@ CONFIG_EXAMPLES_NXLINES_CIRCLECOLOR=0xf7bb
|
||||
CONFIG_EXAMPLES_NXLINES_BPP=16
|
||||
CONFIG_EXAMPLES_NXLINES_EXTERNINIT=n
|
||||
|
||||
#
|
||||
# Settings for examples/touchscreen
|
||||
#
|
||||
# CONFIG_EXAMPLES_TOUCHSCREEN_BUILTIN - Build the touchscreen test as
|
||||
# an NSH built-in function. Default: Built as a standalone problem
|
||||
# CONFIG_EXAMPLES_TOUCHSCREEN_MINOR - The minor device number. Minor=N
|
||||
# correspnds to touchscreen device /dev/input0. Note this value must
|
||||
# with CONFIG_EXAMPLES_TOUCHSCREEN_DEVPATH. Default 0.
|
||||
# CONFIG_EXAMPLES_TOUCHSCREEN_DEVPATH - The path to the touchscreen
|
||||
# device. This must be consistent with CONFIG_EXAMPLES_TOUCHSCREEN_MINOR.
|
||||
# Default: "/dev/input0"
|
||||
# CONFIG_EXAMPLES_TOUCHSCREEN_NSAMPLES - If CONFIG_EXAMPLES_TOUCHSCREEN_BUILTIN
|
||||
# is defined, then the number of samples is provided on the command line
|
||||
# and this value is ignored. Otherwise, this number of samples is
|
||||
# collected and the program terminates. Default: Samples are collected
|
||||
# indefinitely.
|
||||
#
|
||||
CONFIG_EXAMPLES_TOUCHSCREEN_BUILTIN=y
|
||||
CONFIG_EXAMPLES_TOUCHSCREEN_MINOR=0
|
||||
CONFIG_EXAMPLES_TOUCHSCREEN_DEVPATH="/dev/input0"
|
||||
CONFIG_EXAMPLES_TOUCHSCREEN_NSAMPLES=25
|
||||
|
||||
#
|
||||
# Settings for examples/usbserial
|
||||
#
|
||||
|
@ -55,6 +55,10 @@ ifeq ($(CONFIG_USBMSC),y)
|
||||
CSRCS += up_usbmsc.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_INPUT),y)
|
||||
CSRCS += up_touchscreen.c
|
||||
endif
|
||||
|
||||
AOBJS = $(ASRCS:.S=$(OBJEXT))
|
||||
COBJS = $(CSRCS:.c=$(OBJEXT))
|
||||
|
||||
|
1379
configs/pic32mx7mmb/src/up_touchscreen.c
Normal file
1379
configs/pic32mx7mmb/src/up_touchscreen.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user