Changes to get the Mikroe STM32F4 touchscreen working from Ken Pettit
This commit is contained in:
parent
986d310d83
commit
acbccb73f0
@ -148,7 +148,7 @@ CONFIG_STM32_STM32F40XX=y
|
||||
# STM32 Peripheral Support
|
||||
#
|
||||
# CONFIG_STM32_ADC1 is not set
|
||||
# CONFIG_STM32_ADC2 is not set
|
||||
CONFIG_STM32_ADC2=y
|
||||
# CONFIG_STM32_ADC3 is not set
|
||||
# CONFIG_STM32_BKPSRAM is not set
|
||||
# CONFIG_STM32_CAN1 is not set
|
||||
@ -177,7 +177,7 @@ CONFIG_STM32_RNG=y
|
||||
CONFIG_STM32_SPI2=y
|
||||
CONFIG_STM32_SPI3=y
|
||||
CONFIG_STM32_SYSCFG=y
|
||||
# CONFIG_STM32_TIM1 is not set
|
||||
CONFIG_STM32_TIM1=y
|
||||
# CONFIG_STM32_TIM2 is not set
|
||||
# CONFIG_STM32_TIM3 is not set
|
||||
# CONFIG_STM32_TIM4 is not set
|
||||
@ -198,12 +198,13 @@ CONFIG_STM32_USART2=y
|
||||
# CONFIG_STM32_UART5 is not set
|
||||
# CONFIG_STM32_USART6 is not set
|
||||
# CONFIG_STM32_WWDG is not set
|
||||
CONFIG_STM32_ADC=y
|
||||
CONFIG_STM32_SPI=y
|
||||
|
||||
#
|
||||
# Alternate Pin Mapping
|
||||
#
|
||||
# CONFIG_STM32_FLASH_PREFETCH is not set
|
||||
CONFIG_STM32_FLASH_PREFETCH=y
|
||||
# CONFIG_STM32_JTAG_DISABLE is not set
|
||||
# CONFIG_STM32_JTAG_FULL_ENABLE is not set
|
||||
# CONFIG_STM32_JTAG_NOJNTRST_ENABLE is not set
|
||||
@ -212,6 +213,8 @@ CONFIG_STM32_DISABLE_IDLE_SLEEP_DURING_DEBUG=y
|
||||
# CONFIG_STM32_FORCEPOWER is not set
|
||||
CONFIG_ARCH_BOARD_STM32_CUSTOM_CLOCKCONFIG=y
|
||||
# CONFIG_STM32_CCMEXCLUDE is not set
|
||||
# CONFIG_STM32_TIM1_PWM is not set
|
||||
# CONFIG_STM32_TIM1_ADC is not set
|
||||
CONFIG_STM32_USART=y
|
||||
|
||||
#
|
||||
@ -304,7 +307,7 @@ CONFIG_MIKROE_FLASH_PART_LIST="256,768"
|
||||
CONFIG_MSEC_PER_TICK=10
|
||||
CONFIG_RR_INTERVAL=200
|
||||
# CONFIG_SCHED_INSTRUMENTATION is not set
|
||||
CONFIG_TASK_NAME_SIZE=0
|
||||
CONFIG_TASK_NAME_SIZE=10
|
||||
# CONFIG_SCHED_HAVE_PARENT is not set
|
||||
# CONFIG_JULIAN_TIME is not set
|
||||
CONFIG_START_YEAR=2013
|
||||
@ -319,8 +322,9 @@ CONFIG_SDCLONE_DISABLE=y
|
||||
CONFIG_SCHED_WAITPID=y
|
||||
# CONFIG_SCHED_STARTHOOK is not set
|
||||
# CONFIG_SCHED_ATEXIT is not set
|
||||
# CONFIG_SCHED_ONEXIT is not set
|
||||
CONFIG_USER_ENTRYPOINT="nsh_main"
|
||||
CONFIG_SCHED_ONEXIT=y
|
||||
CONFIG_SCHED_ONEXIT_MAX=4
|
||||
CONFIG_USER_ENTRYPOINT="nxwm_main"
|
||||
CONFIG_DISABLE_OS_API=y
|
||||
# CONFIG_DISABLE_CLOCK is not set
|
||||
# CONFIG_DISABLE_POSIX_TIMERS is not set
|
||||
@ -336,6 +340,7 @@ CONFIG_SIG_SIGUSR1=1
|
||||
CONFIG_SIG_SIGUSR2=2
|
||||
CONFIG_SIG_SIGALARM=3
|
||||
CONFIG_SIG_SIGCONDTIMEDOUT=16
|
||||
CONFIG_SIG_SIGWORK=17
|
||||
|
||||
#
|
||||
# Sizes of configurable things (0 disables)
|
||||
@ -378,11 +383,16 @@ CONFIG_SPI=y
|
||||
# CONFIG_SPI_OWNBUS is not set
|
||||
CONFIG_SPI_EXCHANGE=y
|
||||
# CONFIG_SPI_CMDDATA is not set
|
||||
# CONFIG_RTC is not set
|
||||
CONFIG_RTC=y
|
||||
CONFIG_RTC_DATETIME=y
|
||||
CONFIG_RTC_ALARM=y
|
||||
# CONFIG_WATCHDOG is not set
|
||||
# CONFIG_ANALOG is not set
|
||||
# CONFIG_BCH is not set
|
||||
# CONFIG_INPUT is not set
|
||||
CONFIG_INPUT=y
|
||||
# CONFIG_INPUT_TSC2007 is not set
|
||||
# CONFIG_INPUT_ADS7843E is not set
|
||||
# CONFIG_INPUT_STMPE811 is not set
|
||||
CONFIG_LCD=y
|
||||
# CONFIG_LCD_NOGETRUN is not set
|
||||
CONFIG_LCD_MAXCONTRAST=63
|
||||
@ -568,8 +578,8 @@ CONFIG_NX_PACKEDMSFIRST=y
|
||||
#
|
||||
# Input Devices
|
||||
#
|
||||
# CONFIG_NX_MOUSE is not set
|
||||
# CONFIG_NX_KBD is not set
|
||||
CONFIG_NX_MOUSE=y
|
||||
CONFIG_NX_KBD=y
|
||||
|
||||
#
|
||||
# Framed Window Borders
|
||||
@ -591,10 +601,10 @@ CONFIG_NXFONTS_CHARBITS=7
|
||||
# CONFIG_NXFONT_SANS22X29 is not set
|
||||
# CONFIG_NXFONT_SANS28X37 is not set
|
||||
# CONFIG_NXFONT_SANS39X48 is not set
|
||||
# CONFIG_NXFONT_SANS17X23B is not set
|
||||
# CONFIG_NXFONT_SANS20X27B is not set
|
||||
# CONFIG_NXFONT_SANS22X29B is not set
|
||||
# CONFIG_NXFONT_SANS28X37B is not set
|
||||
CONFIG_NXFONT_SANS17X23B=y
|
||||
CONFIG_NXFONT_SANS20X27B=y
|
||||
CONFIG_NXFONT_SANS22X29B=y
|
||||
CONFIG_NXFONT_SANS28X37B=y
|
||||
# CONFIG_NXFONT_SANS40X49B is not set
|
||||
# CONFIG_NXFONT_SERIF22X29 is not set
|
||||
# CONFIG_NXFONT_SERIF29X37 is not set
|
||||
@ -602,12 +612,32 @@ CONFIG_NXFONTS_CHARBITS=7
|
||||
CONFIG_NXFONT_SERIF22X28B=y
|
||||
# CONFIG_NXFONT_SERIF27X38B is not set
|
||||
# CONFIG_NXFONT_SERIF38X49B is not set
|
||||
# CONFIG_NXCONSOLE is not set
|
||||
CONFIG_NXCONSOLE=y
|
||||
|
||||
#
|
||||
# NxConsole Output Text/Graphics Options
|
||||
#
|
||||
CONFIG_NXCONSOLE_BPP=16
|
||||
CONFIG_NXCONSOLE_CURSORCHAR=137
|
||||
CONFIG_NXCONSOLE_MXCHARS=128
|
||||
CONFIG_NXCONSOLE_CACHESIZE=16
|
||||
CONFIG_NXCONSOLE_LINESEPARATION=0
|
||||
# CONFIG_NXCONSOLE_NOWRAP is not set
|
||||
|
||||
#
|
||||
# NxConsole Input options
|
||||
#
|
||||
# CONFIG_NXCONSOLE_NXKBDIN is not set
|
||||
CONFIG_NXCONSOLE_KBDBUFSIZE=16
|
||||
CONFIG_NXCONSOLE_NPOLLWAITERS=4
|
||||
|
||||
#
|
||||
# NX Multi-user only options
|
||||
#
|
||||
# CONFIG_NX_MULTIUSER is not set
|
||||
CONFIG_NX_MULTIUSER=y
|
||||
CONFIG_NX_BLOCKING=y
|
||||
CONFIG_NX_MXSERVERMSGS=32
|
||||
CONFIG_NX_MXCLIENTMSGS=16
|
||||
|
||||
#
|
||||
# Memory Management
|
||||
@ -661,7 +691,12 @@ CONFIG_LIB_SENDFILE_BUFSIZE=512
|
||||
#
|
||||
# Non-standard Library Support
|
||||
#
|
||||
# CONFIG_SCHED_WORKQUEUE is not set
|
||||
CONFIG_SCHED_WORKQUEUE=y
|
||||
CONFIG_SCHED_HPWORK=y
|
||||
CONFIG_SCHED_WORKPRIORITY=192
|
||||
CONFIG_SCHED_WORKPERIOD=20000
|
||||
CONFIG_SCHED_WORKSTACKSIZE=2048
|
||||
# CONFIG_SCHED_LPWORK is not set
|
||||
# CONFIG_LIB_KBDCODEC is not set
|
||||
|
||||
#
|
||||
@ -720,6 +755,15 @@ CONFIG_EXAMPLES_NX_DEFAULT_FONT=y
|
||||
CONFIG_EXAMPLES_NX_BPP=16
|
||||
# CONFIG_EXAMPLES_NX_RAWWINDOWS is not set
|
||||
# CONFIG_EXAMPLES_NX_EXTERNINIT is not set
|
||||
|
||||
#
|
||||
# Multi-User Configuration Options
|
||||
#
|
||||
CONFIG_EXAMPLES_NX_STACKSIZE=2048
|
||||
CONFIG_EXAMPLES_NX_CLIENTPRIO=100
|
||||
CONFIG_EXAMPLES_NX_SERVERPRIO=120
|
||||
CONFIG_EXAMPLES_NX_LISTENERPRIO=80
|
||||
CONFIG_EXAMPLES_NX_NOTIFYSIGNO=4
|
||||
# CONFIG_EXAMPLES_NXCONSOLE is not set
|
||||
# CONFIG_EXAMPLES_NXFFS is not set
|
||||
# CONFIG_EXAMPLES_NXFLAT is not set
|
||||
@ -742,7 +786,10 @@ CONFIG_EXAMPLES_NXIMAGE=y
|
||||
# CONFIG_EXAMPLES_TELNETD is not set
|
||||
# CONFIG_EXAMPLES_THTTPD is not set
|
||||
# CONFIG_EXAMPLES_TIFF is not set
|
||||
# CONFIG_EXAMPLES_TOUCHSCREEN is not set
|
||||
CONFIG_EXAMPLES_TOUCHSCREEN=y
|
||||
CONFIG_EXAMPLES_TOUCHSCREEN_BUILTIN=y
|
||||
CONFIG_EXAMPLES_TOUCHSCREEN_MINOR=0
|
||||
CONFIG_EXAMPLES_TOUCHSCREEN_DEVPATH="/dev/input0"
|
||||
# CONFIG_EXAMPLES_UDP is not set
|
||||
# CONFIG_EXAMPLES_UIP is not set
|
||||
# CONFIG_EXAMPLES_USBSERIAL is not set
|
||||
@ -860,7 +907,154 @@ CONFIG_NSH_ARCHINIT=y
|
||||
#
|
||||
# NxWidgets/NxWM
|
||||
#
|
||||
# CONFIG_NXWIDGETS is not set
|
||||
CONFIG_NXWIDGETS=y
|
||||
|
||||
#
|
||||
# NX Server/Device Configuration
|
||||
#
|
||||
CONFIG_NXWIDGETS_FLICKERFREE=y
|
||||
CONFIG_NXWIDGETS_DEVNO=0
|
||||
CONFIG_NXWIDGETS_VPLANE=0
|
||||
CONFIG_NXWIDGETS_SERVERPRIO=51
|
||||
CONFIG_NXWIDGETS_SERVERSTACK=2048
|
||||
CONFIG_NXWIDGETS_CLIENTPRIO=50
|
||||
CONFIG_NXWIDGETS_LISTENERPRIO=50
|
||||
CONFIG_NXWIDGETS_LISTENERSTACK=2048
|
||||
# CONFIG_NXWIDGETS_EXTERNINIT is not set
|
||||
# CONFIG_NXWIDGET_EVENTWAIT is not set
|
||||
|
||||
#
|
||||
# NXWidget Configuration
|
||||
#
|
||||
CONFIG_NXWIDGETS_BPP=16
|
||||
CONFIG_NXWIDGETS_SIZEOFCHAR=1
|
||||
|
||||
#
|
||||
# NXWidget Default Values
|
||||
#
|
||||
# CONFIG_NXWIDGETS_SYSTEM_CUSTOM_FONTID is not set
|
||||
CONFIG_NXWIDGETS_TNXARRAY_INITIALSIZE=16
|
||||
CONFIG_NXWIDGETS_TNXARRAY_SIZEINCREMENT=8
|
||||
# CONFIG_NXWIDGETS_CUSTOM_FILLCOLORS is not set
|
||||
# CONFIG_NXWIDGETS_CUSTOM_EDGECOLORS is not set
|
||||
# CONFIG_NXWIDGETS_CUSTOM_TEXTCOLORS is not set
|
||||
CONFIG_NXWIDGETS_TRANSPARENT_COLOR=0x0
|
||||
|
||||
#
|
||||
# Keypad behavior
|
||||
#
|
||||
CONFIG_NXWIDGETS_FIRST_REPEAT_TIME=500
|
||||
CONFIG_NXWIDGETS_CONTINUE_REPEAT_TIME=200
|
||||
CONFIG_NXWIDGETS_DOUBLECLICK_TIME=350
|
||||
CONFIG_NXWIDGETS_KBDBUFFER_SIZE=16
|
||||
CONFIG_NXWIDGETS_CURSORCONTROL_SIZE=4
|
||||
# CONFIG_NXWIDGET_MEMMONITOR is not set
|
||||
CONFIG_NXWM=y
|
||||
|
||||
#
|
||||
# General settings
|
||||
#
|
||||
# CONFIG_NXWM_SYSTEM_CUSTOM_FONTID is not set
|
||||
CONFIG_NXWM_UNITTEST=y
|
||||
|
||||
#
|
||||
# Color configuration
|
||||
#
|
||||
# CONFIG_NXWM_CUSTOM_FILLCOLORS is not set
|
||||
# CONFIG_NXWM_CUSTOM_EDGECOLORS is not set
|
||||
# CONFIG_NXWM_CUSTOM_TEXTCOLORS is not set
|
||||
|
||||
#
|
||||
# Horizontal and vertical spacing of icons in the task bar
|
||||
#
|
||||
CONFIG_NXWM_TASKBAR_VSPACING=2
|
||||
CONFIG_NXWM_TASKBAR_HSPACING=2
|
||||
# CONFIG_NXWM_TASKBAR_TOP is not set
|
||||
# CONFIG_NXWM_TASKBAR_BOTTOM is not set
|
||||
CONFIG_NXWM_TASKBAR_LEFT=y
|
||||
# CONFIG_NXWM_TASKBAR_RIGHT is not set
|
||||
# CONFIG_NXWM_CUSTOM_TASKBAR_WIDTH is not set
|
||||
# CONFIG_NXWM_DISABLE_MINIMIZE is not set
|
||||
# CONFIG_NXWM_TASKBAR_NO_BORDER is not set
|
||||
|
||||
#
|
||||
# Tool Bar Configuration
|
||||
#
|
||||
# CONFIG_NXWM_CUSTOM_TOOLBAR_HEIGHT is not set
|
||||
|
||||
#
|
||||
# Background Image
|
||||
#
|
||||
# CONFIG_NXWM_DISABLE_BACKGROUND_IMAGE is not set
|
||||
CONFIG_NXWM_BACKGROUND_IMAGE=""
|
||||
|
||||
#
|
||||
# Application Window Configuration
|
||||
#
|
||||
# CONFIG_NXWM_CUSTOM_APPWINDOW_ICONS is not set
|
||||
|
||||
#
|
||||
# Start Window Configuration
|
||||
#
|
||||
|
||||
#
|
||||
# Horizontal and vertical spacing of icons in the task bar
|
||||
#
|
||||
CONFIG_NXWM_STARTWINDOW_VSPACING=4
|
||||
CONFIG_NXWM_STARTWINDOW_HSPACING=4
|
||||
# CONFIG_NXWM_CUSTOM_STARTWINDOW_ICON is not set
|
||||
CONFIG_NXWM_STARTWINDOW_MQNAME="/dev/nxwm"
|
||||
CONFIG_NXWM_STARTWINDOW_MXMSGS=32
|
||||
CONFIG_NXWM_STARTWINDOW_MXMPRIO=42
|
||||
CONFIG_NXWM_STARTWINDOW_PRIO=50
|
||||
CONFIG_NXWM_STARTWINDOW_STACKSIZE=2048
|
||||
|
||||
#
|
||||
# NxConsole Window Configuration
|
||||
#
|
||||
CONFIG_NXWM_NXCONSOLE_PRIO=50
|
||||
CONFIG_NXWM_NXCONSOLE_STACKSIZE=2048
|
||||
# CONFIG_NXWM_NXCONSOLE_CUSTOM_COLORS is not set
|
||||
# CONFIG_NXWM_NXCONSOLE_CUSTOM_FONTID is not set
|
||||
# CONFIG_NXWM_CUSTOM_NXCONSOLE_ICON is not set
|
||||
CONFIG_NXWM_TOUCHSCREEN=y
|
||||
|
||||
#
|
||||
# Touchscreen device settings
|
||||
#
|
||||
CONFIG_NXWM_TOUCHSCREEN_DEVNO=0
|
||||
CONFIG_NXWM_TOUCHSCREEN_DEVPATH="/dev/input0"
|
||||
CONFIG_NXWM_TOUCHSCREEN_SIGNO=5
|
||||
CONFIG_NXWM_TOUCHSCREEN_LISTENERPRIO=50
|
||||
CONFIG_NXWM_TOUCHSCREEN_LISTENERSTACK=1024
|
||||
CONFIG_NXWM_KEYBOARD=y
|
||||
|
||||
#
|
||||
# Keyboard device settings
|
||||
#
|
||||
CONFIG_NXWM_KEYBOARD_DEVPATH="/dev/ttyS0"
|
||||
CONFIG_NXWM_KEYBOARD_SIGNO=6
|
||||
CONFIG_NXWM_KEYBOARD_BUFSIZE=16
|
||||
CONFIG_NXWM_KEYBOARD_LISTENERPRIO=50
|
||||
CONFIG_NXWM_KEYBOARD_LISTENERSTACK=2048
|
||||
|
||||
#
|
||||
# Calibration display settings
|
||||
#
|
||||
# CONFIG_NXWM_CALIBRATION_CUSTOM_COLORS is not set
|
||||
# CONFIG_NXWM_CUSTOM_CALIBRATION_ICON is not set
|
||||
CONFIG_NXWM_CALIBRATION_SIGNO=5
|
||||
CONFIG_NXWM_CALIBRATION_LISTENERPRIO=50
|
||||
CONFIG_NXWM_CALIBRATION_LISTENERSTACK=2048
|
||||
|
||||
#
|
||||
# Hex Calculator display settings
|
||||
#
|
||||
CONFIG_NXWM_HEXCALCULATOR_CUSTOM_COLORS=y
|
||||
CONFIG_NXWM_HEXCALCULATOR_BACKGROUNDCOLOR=0x39C7
|
||||
# CONFIG_NXWM_CUSTOM_HEXCALCULATOR_ICON is not set
|
||||
# CONFIG_NXWM_HEXCALCULATOR_CUSTOM_FONTID is not set
|
||||
CONFIG_NXWM_MEDIAPLAYER=y
|
||||
|
||||
#
|
||||
# System NSH Add-Ons
|
||||
|
@ -176,7 +176,11 @@
|
||||
GPIO_OUTPUT_SET|GPIO_PORTB|GPIO_PIN8)
|
||||
|
||||
#define GPIO_TP_DRIVEB (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_50MHz|\
|
||||
GPIO_OUTPUT_SET|GPIO_PORTB|GPIO_PIN9)
|
||||
GPIO_PORTB|GPIO_PIN9)
|
||||
|
||||
#define GPIO_TP_YD (GPIO_ANALOG|GPIO_PORTB|GPIO_PIN0)
|
||||
|
||||
#define GPIO_TP_XL (GPIO_ANALOG|GPIO_PORTB|GPIO_PIN1)
|
||||
|
||||
/****************************************************************************************************
|
||||
* Public Types
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,10 +1,11 @@
|
||||
pirelli_dpl10
|
||||
=============
|
||||
|
||||
This directory contains the board support for Pirelli "Discus" DP-L10 phones.
|
||||
This directory contains the board support for Pirelli "Discus" DP-L10
|
||||
phones.
|
||||
|
||||
It is a variant of the compal_e88 configuration with the small change of
|
||||
enabling the IrDA serial console:
|
||||
This port is a variant of the compal_e88 configuration with the small
|
||||
change of enabling the IrDA serial console:
|
||||
|
||||
* CONFIG_SERIAL_IRDA_CONSOLE=y
|
||||
|
||||
@ -52,3 +53,66 @@ o highram is for phones having the romloader(if the phone has a bootrom)
|
||||
or for loading in the ram trough a special loader(loaded first on ram
|
||||
by talking to the ramloader) when having a ramloader(which can only
|
||||
load 64k).
|
||||
|
||||
JTAG and Alternative Serial Console
|
||||
===================================
|
||||
|
||||
JTAG
|
||||
All JTAG lines, as well as the second uart (UART_MODEM), go to the
|
||||
unpopulated connector next to the display connector.
|
||||
|
||||
--- ---------------------------
|
||||
PIN SIGNAL
|
||||
--- ---------------------------
|
||||
1 Vcc
|
||||
2 RX_MODEM
|
||||
3 TESTRSTz (Iota)
|
||||
4 TDI
|
||||
5 TMS
|
||||
6 TCK
|
||||
7 TX_MODEM
|
||||
8 TDO
|
||||
9 N/C
|
||||
10 GND
|
||||
11 N/C
|
||||
12 N/C
|
||||
--- ---------------------------
|
||||
|
||||
JTAG Apapter:
|
||||
|
||||
------- ----------- --------------- --------------------------------------
|
||||
JTAG 20-PIN DESCRIPTION NOTES
|
||||
SIGNAL CONNECTOR
|
||||
------- ----------- --------------- --------------------------------------
|
||||
Vcc 1, 2 Vcc
|
||||
nTRST 3 Reset Connect this pin to the (active
|
||||
low) reset input of the target MCU.
|
||||
Some JTAG adapters driver nTRST (high
|
||||
and low). Others can can configure
|
||||
nTRST as open collector (only drive
|
||||
low).
|
||||
GND 4, 6, 8, Ground
|
||||
10, 12, 14,
|
||||
16, 20
|
||||
TDI 5 JTAG Test Data Use 10K-100K Ohm pull-up resistor to
|
||||
Input VCC
|
||||
TMS 7 JTAG Test Mode Use 10K-100K Ohm pull-up resistor to
|
||||
Select VCC
|
||||
TCK 9 Clock into the Use 10K-100K Ohm pull-down resistor to
|
||||
core GND
|
||||
RTCK 11 Return clock Some JTAG adapters have adaptive clocking
|
||||
using an RTCK signal.
|
||||
DBGSEL 11 Debug Select Some devices have special pins that
|
||||
enable the JTAG interface. For example,
|
||||
on the NXP LPC2129 the signal RTCK must
|
||||
be driven low during RESET to enable the
|
||||
JTAG interface.
|
||||
TDO 13 JTAG Test Data Use 10K-100K Ohm pull-up resistor to VCC
|
||||
Output
|
||||
DBGRQ 17 N/C
|
||||
DGBACK 19 N/C
|
||||
ISP ?? ISP Most NXP MCU's have an ISP pin which
|
||||
(when pulled low) can be used to cause
|
||||
the MCU to enter a bootloader on reset.
|
||||
Use 10K-100K Ohm pull up resistor.
|
||||
------- ----------- --------------- --------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user