diff options
author | Dave Chapman <dave@dchapman.com> | 2008-09-22 19:15:18 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2008-09-22 19:15:18 +0000 |
commit | 85807cd44ef931b25a283f8ddd733453e94f9966 (patch) | |
tree | a7245518ba1ae2566741990f55cae0bb5fab1772 /firmware/target/arm/tcc77x | |
parent | 80458b6222d417700eb4aaf1a9f71456f4512d28 (diff) | |
download | rockbox-85807cd44ef931b25a283f8ddd733453e94f9966.tar.gz rockbox-85807cd44ef931b25a283f8ddd733453e94f9966.zip |
Trivial changes to make the main Rockbox builds for the Sansa m200 and Logik DAX ports compile. Note that some codecs are currently disabled (due to lowmem on these targets), but that needs more work and analysis to decide how much RAM we want to allocate to codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18566 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tcc77x')
-rw-r--r-- | firmware/target/arm/tcc77x/lcd-ssd1815.c | 17 | ||||
-rw-r--r-- | firmware/target/arm/tcc77x/logikdax/audio-logikdax.c | 43 | ||||
-rw-r--r-- | firmware/target/arm/tcc77x/m200/audio-m200.c | 43 |
3 files changed, 88 insertions, 15 deletions
diff --git a/firmware/target/arm/tcc77x/lcd-ssd1815.c b/firmware/target/arm/tcc77x/lcd-ssd1815.c index a6e4481fb2..b41c8d26ef 100644 --- a/firmware/target/arm/tcc77x/lcd-ssd1815.c +++ b/firmware/target/arm/tcc77x/lcd-ssd1815.c | |||
@@ -129,21 +129,8 @@ void lcd_set_invert_display(bool yesno) | |||
129 | /* turn the display upside down (call lcd_update() afterwards) */ | 129 | /* turn the display upside down (call lcd_update() afterwards) */ |
130 | void lcd_set_flip(bool yesno) | 130 | void lcd_set_flip(bool yesno) |
131 | { | 131 | { |
132 | /* TODO: flip mode isn't working. The commands in the else part of | 132 | (void)yesno; |
133 | this function are how the original firmware inits the LCD */ | 133 | /* TODO */ |
134 | |||
135 | if (yesno) | ||
136 | { | ||
137 | lcd_write_command(LCD_SET_SEGMENT_REMAP | 0x01); | ||
138 | lcd_write_command(LCD_SET_COM_OUTPUT_SCAN_DIRECTION); | ||
139 | xoffset = 132 - LCD_WIDTH; /* 132 colums minus the 128 we have */ | ||
140 | } | ||
141 | else | ||
142 | { | ||
143 | lcd_write_command(LCD_SET_SEGMENT_REMAP); | ||
144 | lcd_write_command(LCD_SET_COM_OUTPUT_SCAN_DIRECTION | 0x08); | ||
145 | xoffset = 0; | ||
146 | } | ||
147 | } | 134 | } |
148 | 135 | ||
149 | 136 | ||
diff --git a/firmware/target/arm/tcc77x/logikdax/audio-logikdax.c b/firmware/target/arm/tcc77x/logikdax/audio-logikdax.c new file mode 100644 index 0000000000..bd85e0b573 --- /dev/null +++ b/firmware/target/arm/tcc77x/logikdax/audio-logikdax.c | |||
@@ -0,0 +1,43 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2007 by Michael Sevakis | ||
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 | #include "system.h" | ||
22 | #include "cpu.h" | ||
23 | #include "audio.h" | ||
24 | #include "sound.h" | ||
25 | |||
26 | int audio_channels = 2; | ||
27 | int audio_output_source = AUDIO_SRC_PLAYBACK; | ||
28 | |||
29 | void audiohw_enable_output(bool on) | ||
30 | { | ||
31 | (void)on; | ||
32 | } | ||
33 | |||
34 | void audio_set_output_source(int source) | ||
35 | { | ||
36 | (void)source; | ||
37 | } | ||
38 | |||
39 | void audio_input_mux(int source, unsigned flags) | ||
40 | { | ||
41 | (void)source; | ||
42 | (void)flags; | ||
43 | } | ||
diff --git a/firmware/target/arm/tcc77x/m200/audio-m200.c b/firmware/target/arm/tcc77x/m200/audio-m200.c new file mode 100644 index 0000000000..bd85e0b573 --- /dev/null +++ b/firmware/target/arm/tcc77x/m200/audio-m200.c | |||
@@ -0,0 +1,43 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2007 by Michael Sevakis | ||
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 | #include "system.h" | ||
22 | #include "cpu.h" | ||
23 | #include "audio.h" | ||
24 | #include "sound.h" | ||
25 | |||
26 | int audio_channels = 2; | ||
27 | int audio_output_source = AUDIO_SRC_PLAYBACK; | ||
28 | |||
29 | void audiohw_enable_output(bool on) | ||
30 | { | ||
31 | (void)on; | ||
32 | } | ||
33 | |||
34 | void audio_set_output_source(int source) | ||
35 | { | ||
36 | (void)source; | ||
37 | } | ||
38 | |||
39 | void audio_input_mux(int source, unsigned flags) | ||
40 | { | ||
41 | (void)source; | ||
42 | (void)flags; | ||
43 | } | ||