From a76fde6ca46dc2a7ecf98ccfb076db9182900be5 Mon Sep 17 00:00:00 2001 From: David Lin Date: Mon, 8 Feb 2021 12:34:25 +0800 Subject: [PATCH] [bsp] mini optimized the drv_xpt2046.c error device name xpt2049 in pi4 , so changed xpt2049 -> xpt2046. --- bsp/raspberry-pi/raspi4-32/driver/touch/drv_xpt2046.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bsp/raspberry-pi/raspi4-32/driver/touch/drv_xpt2046.c b/bsp/raspberry-pi/raspi4-32/driver/touch/drv_xpt2046.c index 5c3fcf749c..489701f079 100644 --- a/bsp/raspberry-pi/raspi4-32/driver/touch/drv_xpt2046.c +++ b/bsp/raspberry-pi/raspi4-32/driver/touch/drv_xpt2046.c @@ -19,7 +19,7 @@ #define DBG_LVL DBG_INFO #include -//XPT2049 +//XPT2046 #define READ_X (0xD0) #define READ_Y (0x90) @@ -218,7 +218,7 @@ static struct rt_touch_ops touch_ops = .touch_control = xpt2046_control, }; -static int hw_xpt2049_touch_init(void) +static int hw_xpt2046_touch_init(void) { //touch sem rt_sem_init(&touch_ack, "touch_ack", 0, RT_IPC_FLAG_FIFO); @@ -249,4 +249,4 @@ static int hw_xpt2049_touch_init(void) return 0; } -INIT_DEVICE_EXPORT(hw_xpt2049_touch_init); +INIT_DEVICE_EXPORT(hw_xpt2046_touch_init);