summaryrefslogtreecommitdiffstats
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 @@
#define HAVE_LCD_BITMAP
/* define this if you have a light associated with the buttons */
-#define HAVE_BUTTON_LIGHT
+//#define HAVE_BUTTON_LIGHT
/* define this if you have access to the quickscreen */
//#define HAVE_QUICKSCREEN
@@ -47,7 +47,7 @@
#define LCD_PIXELFORMAT VERTICAL_PACKING
/* define this if you have LCD enable function */
-#define HAVE_LCD_ENABLE
+//#define HAVE_LCD_ENABLE
#ifndef BOOTLOADER
@@ -58,7 +58,7 @@
#endif
/* define this if you can flip your LCD */
-//#define HAVE_LCD_FLIP
+#define HAVE_LCD_FLIP
/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */
@@ -75,16 +75,15 @@
#endif
/* Define this if you have a software controlled poweroff */
-//#define HAVE_SW_POWEROFF
+#define HAVE_SW_POWEROFF
#define HAVE_FAT16SUPPORT
/* The number of bytes reserved for loadable codecs */
-#define CODEC_SIZE 0
-//#define CODEC_SIZE 0x100000
+#define CODEC_SIZE 0x100000
/* The number of bytes reserved for loadable plugins */
-//#define PLUGIN_BUFFER_SIZE 0x80000
+#define PLUGIN_BUFFER_SIZE 0x80000
#define AB_REPEAT_ENABLE 1
@@ -92,10 +91,6 @@
//#define CONFIG_TUNER LV24020LP
//#define HAVE_TUNER_PWR_CTRL
-/* Define this for LCD backlight available */
-#define HAVE_BACKLIGHT
-#define HAVE_BACKLIGHT_BRIGHTNESS
-
/* define this if you have a flash memory storage */
#define HAVE_FLASH_STORAGE
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)
/* C4B0 is unused */
if (GPIOB_PIN(1))
- result |= BUTTON_VOLUP;
+ result |= BUTTON_VOL_UP;
if (GPIOB_PIN(2))
- result |= BUTTON_PLAY;
+ result |= BUTTON_UP;
GPIOC_PIN(4) = 0x00;
@@ -76,7 +76,7 @@ int button_read_device(void)
result |= BUTTON_DOWN;
if (GPIOB_PIN(1))
- result |= BUTTON_VOLDOWN;
+ result |= BUTTON_VOL_DOWN;
if (GPIOB_PIN(2))
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);
/* Main unit's buttons */
#define BUTTON_HOME 0x00000001
-#define BUTTON_VOLUP 0x00000002
-#define BUTTON_VOLDOWN 0x00000004
+#define BUTTON_VOL_UP 0x00000002
+#define BUTTON_VOL_DOWN 0x00000004
-#define BUTTON_PLAY 0x00000008
+#define BUTTON_UP 0x00000008
#define BUTTON_DOWN 0x00000010
#define BUTTON_LEFT 0x00000020
#define BUTTON_RIGHT 0x00000040
@@ -48,7 +48,7 @@ bool button_hold(void);
#define BUTTON_HOLD 0x00000200
#define BUTTON_MAIN (BUTTON_HOME|BUTTON_VOLUP|BUTTON_VOLDOWN\
- |BUTTON_PLAY|BUTTON_DOWN|BUTTON_LEFT|BUTTON_RIGHT\
+ |BUTTON_UP|BUTTON_DOWN|BUTTON_LEFT|BUTTON_RIGHT\
|BUTTON_SELECT|BUTTON_POWER|BUTTON_HOLD)
#define BUTTON_REMOTE 0