mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Fuzev2 LCD: replace delays by calls to lcd_delay() (delays not changed)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25422 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b79ca59194
commit
92411e8a96
1 changed files with 2 additions and 3 deletions
|
|
@ -115,7 +115,6 @@ static void as3525_dbop_init(void)
|
||||||
|
|
||||||
static inline void dbop_set_mode(int mode)
|
static inline void dbop_set_mode(int mode)
|
||||||
{
|
{
|
||||||
int delay = 10;
|
|
||||||
unsigned long ctrl = DBOP_CTRL;
|
unsigned long ctrl = DBOP_CTRL;
|
||||||
int words = (ctrl >> 13) & 3; // bits 14:13
|
int words = (ctrl >> 13) & 3; // bits 14:13
|
||||||
if (mode == 32 && words != 2)
|
if (mode == 32 && words != 2)
|
||||||
|
|
@ -124,7 +123,7 @@ static inline void dbop_set_mode(int mode)
|
||||||
DBOP_CTRL = (ctrl & ~(1<<14)) | (1<<13); // 2 serial words
|
DBOP_CTRL = (ctrl & ~(1<<14)) | (1<<13); // 2 serial words
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
while(delay--) asm volatile("nop");
|
lcd_delay(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void dbop_write_data(const int16_t* p_bytes, int count)
|
static void dbop_write_data(const int16_t* p_bytes, int count)
|
||||||
|
|
@ -166,7 +165,7 @@ static void dbop_write_data(const int16_t* p_bytes, int count)
|
||||||
static void lcd_write_cmd(unsigned short cmd)
|
static void lcd_write_cmd(unsigned short cmd)
|
||||||
{
|
{
|
||||||
volatile int i;
|
volatile int i;
|
||||||
for(i=0;i<0x20;i++) asm volatile ("nop\n");
|
lcd_delay(0x20);
|
||||||
|
|
||||||
DBOP_CTRL |= 1<<13;
|
DBOP_CTRL |= 1<<13;
|
||||||
DBOP_CTRL &= ~(1<<14); // 2 serial words
|
DBOP_CTRL &= ~(1<<14); // 2 serial words
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue