diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/audiohw.h | 2 | ||||
-rw-r--r-- | firmware/export/config.h | 2 | ||||
-rw-r--r-- | firmware/export/config/sansafuzeplus.h | 16 | ||||
-rw-r--r-- | firmware/export/imx233-codec.h | 29 |
4 files changed, 41 insertions, 8 deletions
diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h index 651c9cd254..593924d370 100644 --- a/firmware/export/audiohw.h +++ b/firmware/export/audiohw.h | |||
@@ -70,6 +70,8 @@ | |||
70 | #include "ak4537.h" | 70 | #include "ak4537.h" |
71 | #elif defined(HAVE_CS42L55) | 71 | #elif defined(HAVE_CS42L55) |
72 | #include "cs42l55.h" | 72 | #include "cs42l55.h" |
73 | #elif defined(HAVE_IMX233_CODEC) | ||
74 | #include "imx233-codec.h" | ||
73 | #endif | 75 | #endif |
74 | #if (CONFIG_PLATFORM & PLATFORM_HOSTED) | 76 | #if (CONFIG_PLATFORM & PLATFORM_HOSTED) |
75 | /* #include <SDL_audio.h> gives errors in other code areas, | 77 | /* #include <SDL_audio.h> gives errors in other code areas, |
diff --git a/firmware/export/config.h b/firmware/export/config.h index 37acec04e1..036354180c 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h | |||
@@ -869,7 +869,7 @@ Lyre prototype 1 */ | |||
869 | #endif | 869 | #endif |
870 | 870 | ||
871 | #if (defined(CPU_PP) || (CONFIG_CPU == AS3525) || (CONFIG_CPU == AS3525v2) || \ | 871 | #if (defined(CPU_PP) || (CONFIG_CPU == AS3525) || (CONFIG_CPU == AS3525v2) || \ |
872 | (CONFIG_CPU == IMX31L)) \ | 872 | (CONFIG_CPU == IMX31L) || (CONFIG_CPU == IMX233)) \ |
873 | && (CONFIG_PLATFORM & PLATFORM_NATIVE) && !defined(BOOTLOADER) | 873 | && (CONFIG_PLATFORM & PLATFORM_NATIVE) && !defined(BOOTLOADER) |
874 | /* Functions that have INIT_ATTR attached are NOT guaranteed to survive after | 874 | /* Functions that have INIT_ATTR attached are NOT guaranteed to survive after |
875 | * root_menu() has been called. Their code may be overwritten by other data or | 875 | * root_menu() has been called. Their code may be overwritten by other data or |
diff --git a/firmware/export/config/sansafuzeplus.h b/firmware/export/config/sansafuzeplus.h index 4c3cd6014b..971ff019b6 100644 --- a/firmware/export/config/sansafuzeplus.h +++ b/firmware/export/config/sansafuzeplus.h | |||
@@ -28,7 +28,7 @@ | |||
28 | /* define this if you have a colour LCD */ | 28 | /* define this if you have a colour LCD */ |
29 | #define HAVE_LCD_COLOR | 29 | #define HAVE_LCD_COLOR |
30 | 30 | ||
31 | #ifndef BOOTLOADER/* define this if you want album art for this target */ | 31 | #ifndef BOOTLOADER |
32 | #define HAVE_ALBUMART | 32 | #define HAVE_ALBUMART |
33 | 33 | ||
34 | /* define this to enable bitmap scaling */ | 34 | /* define this to enable bitmap scaling */ |
@@ -37,9 +37,6 @@ | |||
37 | /* define this to enable JPEG decoding */ | 37 | /* define this to enable JPEG decoding */ |
38 | #define HAVE_JPEG | 38 | #define HAVE_JPEG |
39 | 39 | ||
40 | /* define this if you have a light associated with the buttons */ | ||
41 | #define HAVE_BUTTON_LIGHT | ||
42 | |||
43 | /* define this if you have access to the quickscreen */ | 40 | /* define this if you have access to the quickscreen */ |
44 | #define HAVE_QUICKSCREEN | 41 | #define HAVE_QUICKSCREEN |
45 | 42 | ||
@@ -69,13 +66,19 @@ | |||
69 | /* define this if you have a real-time clock */ | 66 | /* define this if you have a real-time clock */ |
70 | #define CONFIG_RTC RTC_IMX233 | 67 | #define CONFIG_RTC RTC_IMX233 |
71 | 68 | ||
69 | /* define this if you have a real-time clock with alarm facilities */ | ||
70 | #define HAVE_RTC_ALARM | ||
71 | |||
72 | #endif /* !BOOTLOADER */ | ||
73 | |||
74 | /* define this if you have an i.MX23 codec */ | ||
75 | #define HAVE_IMX233_CODEC | ||
76 | |||
72 | #define CONFIG_TUNER SI4700 | 77 | #define CONFIG_TUNER SI4700 |
73 | 78 | ||
74 | /* There is no hardware tone control */ | 79 | /* There is no hardware tone control */ |
75 | #define HAVE_SW_TONE_CONTROLS | 80 | #define HAVE_SW_TONE_CONTROLS |
76 | 81 | ||
77 | #endif /* !BOOTLOADER */ | ||
78 | |||
79 | #define CONFIG_KEYPAD SANSA_FUZEPLUS_PAD | 82 | #define CONFIG_KEYPAD SANSA_FUZEPLUS_PAD |
80 | 83 | ||
81 | /* Define this to enable morse code input */ | 84 | /* Define this to enable morse code input */ |
@@ -84,7 +87,6 @@ | |||
84 | /* Define this if you do software codec */ | 87 | /* Define this if you do software codec */ |
85 | #define CONFIG_CODEC SWCODEC | 88 | #define CONFIG_CODEC SWCODEC |
86 | 89 | ||
87 | |||
88 | /* LCD dimensions */ | 90 | /* LCD dimensions */ |
89 | #define LCD_WIDTH 240 | 91 | #define LCD_WIDTH 240 |
90 | #define LCD_HEIGHT 320 | 92 | #define LCD_HEIGHT 320 |
diff --git a/firmware/export/imx233-codec.h b/firmware/export/imx233-codec.h new file mode 100644 index 0000000000..99d49f6adb --- /dev/null +++ b/firmware/export/imx233-codec.h | |||
@@ -0,0 +1,29 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2011 by Amaury Pouly | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | #ifndef __IMX233_CODEC_H_ | ||
22 | #define __IMX233_CODEC_H_ | ||
23 | |||
24 | #define VOLUME_MIN -1000 | ||
25 | #define VOLUME_MAX -5 | ||
26 | |||
27 | void audiohw_set_volume(int v); | ||
28 | |||
29 | #endif /* __IMX233_CODEC_H_ */ | ||