summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-02-22 12:19:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-02-22 12:19:12 +0000
commit22b7701fe75cce9afdbc27046821dc089f9e7dac (patch)
treeca5b4f0428fad0fc9c775dfb0ac879ddee863846 /firmware/export
parent376057d2b67bae0a7b24ae1715d3cbb0b540b7a9 (diff)
downloadrockbox-22b7701fe75cce9afdbc27046821dc089f9e7dac.tar.gz
rockbox-22b7701fe75cce9afdbc27046821dc089f9e7dac.zip
Build cleanup and general fixes. fprintf() is now fdprintf(), the separation
between uisimulator files and firmware/apps files are better done. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6031 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/kernel.h4
-rw-r--r--firmware/export/lcd.h8
-rw-r--r--firmware/export/mpeg.h4
3 files changed, 12 insertions, 4 deletions
diff --git a/firmware/export/kernel.h b/firmware/export/kernel.h
index 8a4a642a86..bbb4c68ff9 100644
--- a/firmware/export/kernel.h
+++ b/firmware/export/kernel.h
@@ -65,6 +65,10 @@ struct mutex
65/* global tick variable */ 65/* global tick variable */
66extern long current_tick; 66extern long current_tick;
67 67
68#ifdef SIMULATOR
69#define sleep(x) sim_sleep(x)
70#endif
71
68/* kernel functions */ 72/* kernel functions */
69extern void kernel_init(void); 73extern void kernel_init(void);
70extern void yield(void); 74extern void yield(void);
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index 6d485c2f43..98e2a58a53 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -27,6 +27,10 @@
27#define STYLE_DEFAULT 0 27#define STYLE_DEFAULT 0
28#define STYLE_INVERT 1 28#define STYLE_INVERT 1
29 29
30#ifdef SIMULATOR
31#define lcd_icon(x,y) sim_lcd_icon(x,y)
32#endif
33
30/* common functions */ 34/* common functions */
31extern void lcd_init(void); 35extern void lcd_init(void);
32extern void lcd_clear_display(void); 36extern void lcd_clear_display(void);
@@ -61,10 +65,6 @@ extern void lcd_update_rect(int x, int y, int width, int height);
61 #define lcd_update_rect(x,y,w,h) 65 #define lcd_update_rect(x,y,w,h)
62#endif 66#endif
63 67
64#if defined(SIMULATOR)
65#include "sim_icons.h"
66#endif
67
68#ifdef HAVE_LCD_CHARCELLS 68#ifdef HAVE_LCD_CHARCELLS
69 69
70/* Icon definitions for lcd_icon() */ 70/* Icon definitions for lcd_icon() */
diff --git a/firmware/export/mpeg.h b/firmware/export/mpeg.h
index 671f9389f0..479c5f2317 100644
--- a/firmware/export/mpeg.h
+++ b/firmware/export/mpeg.h
@@ -42,6 +42,10 @@
42/* For ID3 info and VBR header */ 42/* For ID3 info and VBR header */
43#define MPEG_RESERVED_HEADER_SPACE (4096 + 1500) 43#define MPEG_RESERVED_HEADER_SPACE (4096 + 1500)
44 44
45#ifdef SIMULATOR
46#define mpeg_play(x) sim_mpeg_play(x)
47#endif
48
45struct mpeg_debug 49struct mpeg_debug
46{ 50{
47 int mp3buflen; 51 int mp3buflen;