STM32F7xxx Discovery Touch Sensor
[詳解]
#include "sysconfig.h"
#include "device.h"
#include "interrupt.h"
#include "device/video_ioctl.h"
#include "device/ts_ioctl.h"
#include "timer.h"
#include "tkprintf.h"
#include "sysevent.h"
#include "task/syscall.h"
#include "dkprintf.h"
[ソースコード]
|
#define | LCD_WIDTH GSC_GRAPHICS_DISPLAY_WIDTH |
| LCD幅ドット数
|
|
#define | LCD_HEIGHT GSC_GRAPHICS_DISPLAY_HEIGHT |
| LCD高さドット数
|
|
#define | MOVEEVENTINTERVAL 20 |
| EVT_TOUCHMOVEの最小送信間隔
|
|
#define | MAX_TS_EVENT_QUEUE 4 |
|
#define | SIZEOFSTACK (1024*4) |
|
|
static void | inthdr_exti15_10 (unsigned int intnum, void *sp) |
|
static int | ts_task (char *arg) |
|
static int | ts_register (struct st_device *dev, char *param) |
|
|
static struct st_event | ts_evq |
|
static unsigned char | ts_data [MAX_TS_EVENT_QUEUE] |
|
static struct st_mutex | ts_mutex |
|
static unsigned short | levent |
|
static unsigned int | ltime |
|
static unsigned short | lpos_x |
|
static unsigned short | lpos_y |
|
static struct st_tcb | tcb |
|
static unsigned int | stack [SIZEOFSTACK/sizeof(unsigned int)] |
|
const struct st_device | ts_device |
|
STM32F7xxx Discovery Touch Sensor
- 日付
- 2017.02.05
- 著者
- Takashi SHUDO
stm32f7xxx-disc_ts.c に定義があります。
◆ ts_device
初期値:= {
.explan = "STM32F7xxx-Disc Touch Sensor",
.mutex = &ts_mutex,
.register_dev = ts_register,
}
#define DEF_DEV_NAME_TS
標準タッチセンサデバイス名
stm32f7xxx-disc_ts.c の 152 行目に定義があります。