From dc07c792634a95a4906784790460ab570be32fc0 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 7 Jan 2010 22:21:41 +0000 Subject: 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 --- firmware/target/arm/as3525/dbop-as3525.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'firmware/target/arm/as3525/dbop-as3525.h') 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 @@ * ****************************************************************************/ + +#ifndef __DBOP_AS3525_H__ +#define __DBOP_AS3525_H__ +#include unsigned short int dbop_read_input(void); unsigned short dbop_debug(void); + +/* + * Write any data to dbop + * switches to 32bit transfers if possible, + * for best performance pre-align count and data + **/ +void dbop_write_data(const int16_t *data, int count); +#endif -- cgit v1.2.3