mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Clip+ LCD: support devices with a different controller
The new controller framebuffer (different from what is in clipv1/clipv2 and some clip+) has 128 columns, the old has 132 columns and is centered on the screen. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27257 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
12b89c11e3
commit
9a471e603e
7 changed files with 25 additions and 19 deletions
|
|
@ -26,7 +26,7 @@
|
|||
#include "system.h"
|
||||
#include "cpu.h"
|
||||
|
||||
void lcd_hw_init(void)
|
||||
void lcd_hw_init(int *offset)
|
||||
{
|
||||
/* DBOP initialisation, do what OF does */
|
||||
CCU_IO |= (1<<12); /* ?? */
|
||||
|
|
@ -38,6 +38,8 @@ void lcd_hw_init(void)
|
|||
|
||||
GPIOB_DIR |= (1<<2)|(1<<5);
|
||||
GPIOB_PIN(5) = (1<<5);
|
||||
|
||||
*offset = 2;
|
||||
}
|
||||
|
||||
#define LCD_DELAY 10
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue