forked from Lephenixnoir/gint
23 lines
397 B
C
23 lines
397 B
C
#include <screen.h>
|
|
#include <mpu.h>
|
|
|
|
/*
|
|
screen_setBacklight()
|
|
On compatible models, turns on or turns off the backlight.
|
|
*/
|
|
void screen_setBacklight(int on)
|
|
{
|
|
if(isSH3())
|
|
{
|
|
volatile unsigned char *PGDR = (void *)0xa400012c;
|
|
if(on) *PGDR |= 0x80;
|
|
else *PGDR &= ~0x80;
|
|
}
|
|
else
|
|
{
|
|
volatile unsigned char *PNDR = (void *)0xa4050138;
|
|
if(on) *PNDR |= 0x10;
|
|
else *PNDR &= ~0x10;
|
|
}
|
|
}
|