mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-27 06:28:54 +00:00
V1.0.6
This commit is contained in:
31
bsp/peripheral/touch/cst3240/inc/cst3240.h
Normal file
31
bsp/peripheral/touch/cst3240/inc/cst3240.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (c) 2024, ArtInChip Technology Co., Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Notes
|
||||
* 2024-06-11 the first version
|
||||
*/
|
||||
|
||||
#ifndef __CST3240_H__
|
||||
#define __CST3240_H__
|
||||
|
||||
#include "drivers/touch.h"
|
||||
#include <aic_hal_gpio.h>
|
||||
#include <aic_drv_gpio.h>
|
||||
|
||||
#define CST3240_SLAVE_ADDR 0x5A
|
||||
#define CST3240_MAX_TOUCH_NUM 5
|
||||
|
||||
#define CST3240_POINT1_REG 0xD000
|
||||
#define CST3240_FIXED_REG 0xD006
|
||||
#define CST3240_POINT2_REG 0xD007
|
||||
#define CST3240_DEBUG_MODE 0xD101
|
||||
#define CST3240_NORMAL_MODE 0xD109
|
||||
#define CST3240_X_Y_RESOLUTION 0xD1F8
|
||||
#define CST3240_CHIP_TYPE_ID 0xD204
|
||||
|
||||
int rt_hw_cst3240_init(const char *name, struct rt_touch_config *cfg);
|
||||
|
||||
#endif /* _CST3240_H_ */
|
||||
Reference in New Issue
Block a user