summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/config-clip.h17
-rw-r--r--firmware/target/arm/as3525/sansa-clip/button-clip.c6
-rw-r--r--firmware/target/arm/as3525/sansa-clip/button-target.h8
3 files changed, 13 insertions, 18 deletions
diff --git a/firmware/export/config-clip.h b/firmware/export/config-clip.h
index bcda3bb153..01a08f3886 100644
--- a/firmware/export/config-clip.h
+++ b/firmware/export/config-clip.h
@@ -29,7 +29,7 @@
29#define HAVE_LCD_BITMAP 29#define HAVE_LCD_BITMAP
30 30
31/* define this if you have a light associated with the buttons */ 31/* define this if you have a light associated with the buttons */
32#define HAVE_BUTTON_LIGHT 32//#define HAVE_BUTTON_LIGHT
33 33
34/* define this if you have access to the quickscreen */ 34/* define this if you have access to the quickscreen */
35//#define HAVE_QUICKSCREEN 35//#define HAVE_QUICKSCREEN
@@ -47,7 +47,7 @@
47#define LCD_PIXELFORMAT VERTICAL_PACKING 47#define LCD_PIXELFORMAT VERTICAL_PACKING
48 48
49/* define this if you have LCD enable function */ 49/* define this if you have LCD enable function */
50#define HAVE_LCD_ENABLE 50//#define HAVE_LCD_ENABLE
51 51
52#ifndef BOOTLOADER 52#ifndef BOOTLOADER
53 53
@@ -58,7 +58,7 @@
58#endif 58#endif
59 59
60/* define this if you can flip your LCD */ 60/* define this if you can flip your LCD */
61//#define HAVE_LCD_FLIP 61#define HAVE_LCD_FLIP
62 62
63/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */ 63/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
64 64
@@ -75,16 +75,15 @@
75#endif 75#endif
76 76
77/* Define this if you have a software controlled poweroff */ 77/* Define this if you have a software controlled poweroff */
78//#define HAVE_SW_POWEROFF 78#define HAVE_SW_POWEROFF
79 79
80#define HAVE_FAT16SUPPORT 80#define HAVE_FAT16SUPPORT
81 81
82/* The number of bytes reserved for loadable codecs */ 82/* The number of bytes reserved for loadable codecs */
83#define CODEC_SIZE 0 83#define CODEC_SIZE 0x100000
84//#define CODEC_SIZE 0x100000
85 84
86/* The number of bytes reserved for loadable plugins */ 85/* The number of bytes reserved for loadable plugins */
87//#define PLUGIN_BUFFER_SIZE 0x80000 86#define PLUGIN_BUFFER_SIZE 0x80000
88 87
89#define AB_REPEAT_ENABLE 1 88#define AB_REPEAT_ENABLE 1
90 89
@@ -92,10 +91,6 @@
92//#define CONFIG_TUNER LV24020LP 91//#define CONFIG_TUNER LV24020LP
93//#define HAVE_TUNER_PWR_CTRL 92//#define HAVE_TUNER_PWR_CTRL
94 93
95/* Define this for LCD backlight available */
96#define HAVE_BACKLIGHT
97#define HAVE_BACKLIGHT_BRIGHTNESS
98
99/* define this if you have a flash memory storage */ 94/* define this if you have a flash memory storage */
100#define HAVE_FLASH_STORAGE 95#define HAVE_FLASH_STORAGE
101 96
diff --git a/firmware/target/arm/as3525/sansa-clip/button-clip.c b/firmware/target/arm/as3525/sansa-clip/button-clip.c
index faed075c65..65e72f51b6 100644
--- a/firmware/target/arm/as3525/sansa-clip/button-clip.c
+++ b/firmware/target/arm/as3525/sansa-clip/button-clip.c
@@ -50,10 +50,10 @@ int button_read_device(void)
50 /* C4B0 is unused */ 50 /* C4B0 is unused */
51 51
52 if (GPIOB_PIN(1)) 52 if (GPIOB_PIN(1))
53 result |= BUTTON_VOLUP; 53 result |= BUTTON_VOL_UP;
54 54
55 if (GPIOB_PIN(2)) 55 if (GPIOB_PIN(2))
56 result |= BUTTON_PLAY; 56 result |= BUTTON_UP;
57 57
58 GPIOC_PIN(4) = 0x00; 58 GPIOC_PIN(4) = 0x00;
59 59
@@ -76,7 +76,7 @@ int button_read_device(void)
76 result |= BUTTON_DOWN; 76 result |= BUTTON_DOWN;
77 77
78 if (GPIOB_PIN(1)) 78 if (GPIOB_PIN(1))
79 result |= BUTTON_VOLDOWN; 79 result |= BUTTON_VOL_DOWN;
80 80
81 if (GPIOB_PIN(2)) 81 if (GPIOB_PIN(2))
82 result |= BUTTON_HOME; 82 result |= BUTTON_HOME;
diff --git a/firmware/target/arm/as3525/sansa-clip/button-target.h b/firmware/target/arm/as3525/sansa-clip/button-target.h
index 1fb57ae9e9..d44ac58a71 100644
--- a/firmware/target/arm/as3525/sansa-clip/button-target.h
+++ b/firmware/target/arm/as3525/sansa-clip/button-target.h
@@ -34,10 +34,10 @@ bool button_hold(void);
34/* Main unit's buttons */ 34/* Main unit's buttons */
35#define BUTTON_HOME 0x00000001 35#define BUTTON_HOME 0x00000001
36 36
37#define BUTTON_VOLUP 0x00000002 37#define BUTTON_VOL_UP 0x00000002
38#define BUTTON_VOLDOWN 0x00000004 38#define BUTTON_VOL_DOWN 0x00000004
39 39
40#define BUTTON_PLAY 0x00000008 40#define BUTTON_UP 0x00000008
41#define BUTTON_DOWN 0x00000010 41#define BUTTON_DOWN 0x00000010
42#define BUTTON_LEFT 0x00000020 42#define BUTTON_LEFT 0x00000020
43#define BUTTON_RIGHT 0x00000040 43#define BUTTON_RIGHT 0x00000040
@@ -48,7 +48,7 @@ bool button_hold(void);
48#define BUTTON_HOLD 0x00000200 48#define BUTTON_HOLD 0x00000200
49 49
50#define BUTTON_MAIN (BUTTON_HOME|BUTTON_VOLUP|BUTTON_VOLDOWN\ 50#define BUTTON_MAIN (BUTTON_HOME|BUTTON_VOLUP|BUTTON_VOLDOWN\
51 |BUTTON_PLAY|BUTTON_DOWN|BUTTON_LEFT|BUTTON_RIGHT\ 51 |BUTTON_UP|BUTTON_DOWN|BUTTON_LEFT|BUTTON_RIGHT\
52 |BUTTON_SELECT|BUTTON_POWER|BUTTON_HOLD) 52 |BUTTON_SELECT|BUTTON_POWER|BUTTON_HOLD)
53 53
54#define BUTTON_REMOTE 0 54#define BUTTON_REMOTE 0