summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/debug-target.h6
-rw-r--r--firmware/target/arm/philips/hdd6330/button-hdd6330.c6
-rw-r--r--firmware/target/arm/philips/hdd6330/button-target.h4
3 files changed, 10 insertions, 6 deletions
diff --git a/firmware/target/arm/debug-target.h b/firmware/target/arm/debug-target.h
index 28f95327ad..b7a1f7e5cb 100644
--- a/firmware/target/arm/debug-target.h
+++ b/firmware/target/arm/debug-target.h
@@ -30,16 +30,14 @@
30# define DEBUG_CANCEL BUTTON_MENU 30# define DEBUG_CANCEL BUTTON_MENU
31 31
32#elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \ 32#elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \
33 (CONFIG_KEYPAD == SANSA_C200_PAD) 33 (CONFIG_KEYPAD == SANSA_C200_PAD) || \
34 (CONFIG_KEYPAD == PHILIPS_HDD6330_PAD)
34# define DEBUG_CANCEL BUTTON_LEFT 35# define DEBUG_CANCEL BUTTON_LEFT
35 36
36#elif (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) || \ 37#elif (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) || \
37 (CONFIG_KEYPAD == PHILIPS_HDD1630_PAD) 38 (CONFIG_KEYPAD == PHILIPS_HDD1630_PAD)
38# define DEBUG_CANCEL BUTTON_POWER 39# define DEBUG_CANCEL BUTTON_POWER
39 40
40#elif (CONFIG_KEYPAD == PHILIPS_HDD6330_PAD)
41# define DEBUG_CANCEL BUTTON_PREV
42
43#elif (CONFIG_KEYPAD == SAMSUNG_YH_PAD) 41#elif (CONFIG_KEYPAD == SAMSUNG_YH_PAD)
44# define DEBUG_CANCEL BUTTON_PLAY 42# define DEBUG_CANCEL BUTTON_PLAY
45 43
diff --git a/firmware/target/arm/philips/hdd6330/button-hdd6330.c b/firmware/target/arm/philips/hdd6330/button-hdd6330.c
index fc171c72ba..4e40de57ab 100644
--- a/firmware/target/arm/philips/hdd6330/button-hdd6330.c
+++ b/firmware/target/arm/philips/hdd6330/button-hdd6330.c
@@ -26,7 +26,7 @@
26#include "synaptics-mep.h" 26#include "synaptics-mep.h"
27 27
28/*#define LOGF_ENABLE*/ 28/*#define LOGF_ENABLE*/
29#include "logf.h" 29/*#include "logf.h"*/
30 30
31static int int_btn = BUTTON_NONE; 31static int int_btn = BUTTON_NONE;
32#ifndef BOOTLOADER 32#ifndef BOOTLOADER
@@ -78,6 +78,10 @@ void button_int(void)
78 if (data[1] & 0x8) 78 if (data[1] & 0x8)
79 int_btn |= BUTTON_VIEW; 79 int_btn |= BUTTON_VIEW;
80 } 80 }
81 else if ((data[1] & MEP_GESTURE) && (data[3] >> 6) == 0) /* index = 0 */
82 {
83 int_btn |= BUTTON_TAP;
84 }
81 else if ((data[0] == MEP_ABSOLUTE_HEADER)) 85 else if ((data[0] == MEP_ABSOLUTE_HEADER))
82 { 86 {
83 if (data[1] & MEP_FINGER) 87 if (data[1] & MEP_FINGER)
diff --git a/firmware/target/arm/philips/hdd6330/button-target.h b/firmware/target/arm/philips/hdd6330/button-target.h
index 492a5014e5..8d4ed5ef5f 100644
--- a/firmware/target/arm/philips/hdd6330/button-target.h
+++ b/firmware/target/arm/philips/hdd6330/button-target.h
@@ -29,6 +29,7 @@
29#define MEP_BUTTON_ID 0x9 29#define MEP_BUTTON_ID 0x9
30#define MEP_ABSOLUTE_HEADER 0x0b 30#define MEP_ABSOLUTE_HEADER 0x0b
31#define MEP_FINGER 0x01 31#define MEP_FINGER 0x01
32#define MEP_GESTURE 0x02
32 33
33#define HAS_BUTTON_HOLD 34#define HAS_BUTTON_HOLD
34 35
@@ -53,7 +54,8 @@ void button_int(void);
53#define BUTTON_NEXT 0x00000200 54#define BUTTON_NEXT 0x00000200
54#define BUTTON_PREV 0x00000400 55#define BUTTON_PREV 0x00000400
55#define BUTTON_PLAY 0x00000800 56#define BUTTON_PLAY 0x00000800
56#define BUTTON_MAIN 0x00000fff 57#define BUTTON_TAP 0x00001000
58#define BUTTON_MAIN 0x00001fff
57 59
58/* No Remote control */ 60/* No Remote control */
59#define BUTTON_REMOTE 0 61#define BUTTON_REMOTE 0