diff options
author | Thomas Jarosch <tomj@simonv.com> | 2011-02-08 20:05:25 +0000 |
---|---|---|
committer | Thomas Jarosch <tomj@simonv.com> | 2011-02-08 20:05:25 +0000 |
commit | 5f037ac015e6d76d030a163753db5ff58cdff49b (patch) | |
tree | f5eb7dcdc0e0c3e373227e45061c1d99a14a0819 /firmware/include | |
parent | 4d129044390a087b6193b6ce63e035b2550b3ce4 (diff) | |
download | rockbox-5f037ac015e6d76d030a163753db5ff58cdff49b.tar.gz rockbox-5f037ac015e6d76d030a163753db5ff58cdff49b.zip |
Initial maemo platform support
Adds Nokia N900, N810 and N800 support.
Features:
- Introduce maemo specific platform defines
- Play audio in silent mode
- Stop playback on incoming calls
- Battery level readout
- Bluetooth headset support
- Save CPU by disabling screen updates if the display
is off or the app doesn't have input focus
- N900: GStreamer audio backend
Kudos to kugel for the code review.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29248 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include')
-rw-r--r-- | firmware/include/dir_uncached.h | 2 | ||||
-rw-r--r-- | firmware/include/file.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/include/dir_uncached.h b/firmware/include/dir_uncached.h index 3bae07177b..c2c7d67505 100644 --- a/firmware/include/dir_uncached.h +++ b/firmware/include/dir_uncached.h | |||
@@ -33,7 +33,7 @@ struct dirinfo { | |||
33 | #include <stdbool.h> | 33 | #include <stdbool.h> |
34 | #include "file.h" | 34 | #include "file.h" |
35 | 35 | ||
36 | #if (CONFIG_PLATFORM & PLATFORM_SDL) | 36 | #if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO)) |
37 | # define dirent_uncached sim_dirent | 37 | # define dirent_uncached sim_dirent |
38 | # define DIR_UNCACHED SIM_DIR | 38 | # define DIR_UNCACHED SIM_DIR |
39 | # define opendir_uncached sim_opendir | 39 | # define opendir_uncached sim_opendir |
diff --git a/firmware/include/file.h b/firmware/include/file.h index ee52c3f2b7..69ed394828 100644 --- a/firmware/include/file.h +++ b/firmware/include/file.h | |||
@@ -46,7 +46,7 @@ extern int app_open(const char *name, int o, ...); | |||
46 | extern int app_creat(const char *name, mode_t mode); | 46 | extern int app_creat(const char *name, mode_t mode); |
47 | extern int app_remove(const char* pathname); | 47 | extern int app_remove(const char* pathname); |
48 | extern int app_rename(const char* path, const char* newname); | 48 | extern int app_rename(const char* path, const char* newname); |
49 | # if (CONFIG_PLATFORM & PLATFORM_SDL) | 49 | # if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO)) |
50 | # define filesize(x) sim_filesize(x) | 50 | # define filesize(x) sim_filesize(x) |
51 | # define fsync(x) sim_fsync(x) | 51 | # define fsync(x) sim_fsync(x) |
52 | # define ftruncate(x,y) sim_ftruncate(x,y) | 52 | # define ftruncate(x,y) sim_ftruncate(x,y) |