project:cfg:BoardConfig_IPC: Added fastboot BoardConfig file and firmware post-scripts, distinguishing between the BoardConfigs for Luckfox Pico Pro and Luckfox Pico Max. project:app: Added fastboot_client and rk_smart_door for quick boot applications; updated rkipc app to adapt to the latest media library. media:samples: Added more usage examples. media:rockit: Fixed bugs; removed support for retrieving data frames from VPSS. media:isp: Updated rkaiq library and related tools to support connection to RKISP_Tuner. sysdrv:Makefile: Added support for compiling drv_ko on Luckfox Pico Ultra W using Ubuntu; added support for custom root filesystem. sysdrv:tools:board: Updated Buildroot optional mirror sources, updated some software versions, and stored device tree files and configuration files that undergo multiple modifications for U-Boot and kernel separately. sysdrv:source:mcu: Used RISC-V MCU SDK with RT-Thread system, mainly for initializing camera AE during quick boot. sysdrv:source:uboot: Added support for fastboot; added high baud rate DDR bin for serial firmware upgrades. sysdrv:source:kernel: Upgraded to version 5.10.160; increased NPU frequency for RV1106G3; added support for fastboot. Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
53 lines
1.3 KiB
C
53 lines
1.3 KiB
C
/**
|
|
* Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef __TOUCHPANEL_H__
|
|
#define __TOUCHPANEL_H__
|
|
#include <rtthread.h>
|
|
|
|
#include "touch.h"
|
|
|
|
#define TOUCHPANEL_BLOCK_MOVE_ENABLE (0x01UL << 0) /* Is block movement allowed */
|
|
|
|
struct rt_touchpanel_block
|
|
{
|
|
rt_slist_t slist;
|
|
|
|
rt_uint16_t x;
|
|
rt_uint16_t y;
|
|
rt_uint16_t w;
|
|
rt_uint16_t h;
|
|
|
|
rt_tick_t timestamp;
|
|
rt_uint8_t event;
|
|
rt_uint32_t attribute;
|
|
|
|
const char *name;
|
|
rt_err_t (*callback)(struct rt_touch_data *p, rt_uint8_t num);
|
|
};
|
|
|
|
struct rt_touchpanel_data
|
|
{
|
|
rt_device_t dev;
|
|
rt_sem_t sem;
|
|
rt_mutex_t mutex;
|
|
|
|
rt_uint8_t id[8];
|
|
struct rt_touch_info info;
|
|
struct rt_touch_data *point;
|
|
struct rt_touch_data *cur_point;
|
|
|
|
rt_slist_t b_list; //rt_touchpanel_block list head
|
|
void (*callback)(struct rt_touch_data *p, rt_uint8_t num);
|
|
};
|
|
|
|
rt_err_t rt_touchpanel_block_register(struct rt_touchpanel_block *block);
|
|
rt_err_t rt_touchpanel_block_unregister(struct rt_touchpanel_block *block);
|
|
rt_err_t rt_touchpoint_is_in_block(struct rt_touch_data *p, struct rt_touchpanel_block *block);
|
|
rt_err_t rt_touchpoint_is_valid(struct rt_touch_data *p, struct rt_touchpanel_block *block);
|
|
|
|
#endif
|