summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/config-creativezv.h2
-rw-r--r--firmware/export/config.h1
-rw-r--r--firmware/target/arm/tms320dm320/creative-zvm/button-target.h15
3 files changed, 17 insertions, 1 deletions
diff --git a/firmware/export/config-creativezv.h b/firmware/export/config-creativezv.h
index af9bedf307..7304dda728 100644
--- a/firmware/export/config-creativezv.h
+++ b/firmware/export/config-creativezv.h
@@ -68,7 +68,7 @@
68/* Define this if your LCD can be enabled/disabled */ 68/* Define this if your LCD can be enabled/disabled */
69#define HAVE_LCD_ENABLE 69#define HAVE_LCD_ENABLE
70 70
71#define CONFIG_KEYPAD CREATIVEZVM_PAD 71#define CONFIG_KEYPAD CREATIVEZV_PAD
72#define HAS_BUTTON_HOLD 72#define HAS_BUTTON_HOLD
73#define HAVE_HEADPHONE_DETECTION 73#define HAVE_HEADPHONE_DETECTION
74//#define HAVE_TOUCHPAD 74//#define HAVE_TOUCHPAD
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 595b731e0f..51c79abccf 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -81,6 +81,7 @@
81#define IAUDIO_M3_PAD 23 81#define IAUDIO_M3_PAD 23
82#define CREATIVEZVM_PAD 24 82#define CREATIVEZVM_PAD 24
83#define SANSA_M200_PAD 25 83#define SANSA_M200_PAD 25
84#define CREATIVEZV_PAD 26
84 85
85/* CONFIG_REMOTE_KEYPAD */ 86/* CONFIG_REMOTE_KEYPAD */
86#define H100_REMOTE 1 87#define H100_REMOTE 1
diff --git a/firmware/target/arm/tms320dm320/creative-zvm/button-target.h b/firmware/target/arm/tms320dm320/creative-zvm/button-target.h
index 1b63895374..6530a1c9e0 100644
--- a/firmware/target/arm/tms320dm320/creative-zvm/button-target.h
+++ b/firmware/target/arm/tms320dm320/creative-zvm/button-target.h
@@ -37,11 +37,26 @@
37 37
38#define BUTTON_HOLD (1 << 10) 38#define BUTTON_HOLD (1 << 10)
39 39
40#ifdef CREATIVE_ZV
41#define BUTTON_PREV (1 << 11)
42#define BUTTON_NEXT (1 << 12)
43
44#define BUTTON_VOL_UP (1 << 13)
45#define BUTTON_VOL_DOWN (1 << 14)
46#endif
47
40#define BUTTON_REMOTE 0 48#define BUTTON_REMOTE 0
41 49
50#ifndef CREATIVE_ZV
42#define BUTTON_MAIN ( BUTTON_BACK | BUTTON_MENU | BUTTON_LEFT | BUTTON_RIGHT \ 51#define BUTTON_MAIN ( BUTTON_BACK | BUTTON_MENU | BUTTON_LEFT | BUTTON_RIGHT \
43 | BUTTON_UP | BUTTON_DOWN | BUTTON_SELECT | BUTTON_POWER \ 52 | BUTTON_UP | BUTTON_DOWN | BUTTON_SELECT | BUTTON_POWER \
44 | BUTTON_PLAY | BUTTON_HOLD | BUTTON_CUSTOM ) 53 | BUTTON_PLAY | BUTTON_HOLD | BUTTON_CUSTOM )
54#else
55#define BUTTON_MAIN ( BUTTON_BACK | BUTTON_MENU | BUTTON_LEFT | BUTTON_RIGHT \
56 | BUTTON_UP | BUTTON_DOWN | BUTTON_SELECT | BUTTON_POWER \
57 | BUTTON_PLAY | BUTTON_HOLD | BUTTON_NEXT | BUTTON_PREV \
58 | BUTTON_VOL_UP | BUTTON_VOL_DOWN )
59#endif
45 60
46#define POWEROFF_BUTTON BUTTON_POWER 61#define POWEROFF_BUTTON BUTTON_POWER
47#define POWEROFF_COUNT 10 62#define POWEROFF_COUNT 10