diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-01-07 22:21:41 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-01-07 22:21:41 +0000 |
commit | dc07c792634a95a4906784790460ab570be32fc0 (patch) | |
tree | f5bac9dc07e1badcf0e838df41327faa7c49dfca /firmware/target/arm/as3525/dbop-as3525.h | |
parent | 5fd54dee4ff3e0299c8b5d6c12e5633728396c72 (diff) | |
download | rockbox-dc07c792634a95a4906784790460ab570be32fc0.tar.gz rockbox-dc07c792634a95a4906784790460ab570be32fc0.zip |
Sansa AMS: Time has shown that switching between 16 and 32bit mode costs much time (due to the micro delay needed), so do 32bit transfers unconditionally for lcd updates at the cost of updating slightly larger rectangles (gives upto 15% speed up, nearly at maximum now).
Unify this optimized dbop transfer function and re-use it more often (it still handles 16bit transfers).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24198 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/dbop-as3525.h')
-rw-r--r-- | firmware/target/arm/as3525/dbop-as3525.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/dbop-as3525.h b/firmware/target/arm/as3525/dbop-as3525.h index 63156031c4..3db62bd3e1 100644 --- a/firmware/target/arm/as3525/dbop-as3525.h +++ b/firmware/target/arm/as3525/dbop-as3525.h | |||
@@ -19,5 +19,17 @@ | |||
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | 21 | ||
22 | |||
23 | #ifndef __DBOP_AS3525_H__ | ||
24 | #define __DBOP_AS3525_H__ | ||
25 | #include <inttypes.h> | ||
22 | unsigned short int dbop_read_input(void); | 26 | unsigned short int dbop_read_input(void); |
23 | unsigned short dbop_debug(void); | 27 | unsigned short dbop_debug(void); |
28 | |||
29 | /* | ||
30 | * Write any data to dbop | ||
31 | * switches to 32bit transfers if possible, | ||
32 | * for best performance pre-align count and data | ||
33 | **/ | ||
34 | void dbop_write_data(const int16_t *data, int count); | ||
35 | #endif | ||