2016-06-10 21:48:22 +02:00
|
|
|
/*
|
|
|
|
|
* screen.h
|
|
|
|
|
*
|
|
|
|
|
* Screen init code by dark_samus, bil1s, Normmatt, delebile and others.
|
|
|
|
|
* Screen deinit code by tiniVi.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
|
|
#define PDN_GPU_CNT (*(vu8 *)0x10141200)
|
|
|
|
|
|
2016-07-03 20:53:13 +02:00
|
|
|
static volatile struct fb {
|
2016-06-10 21:48:22 +02:00
|
|
|
u8 *top_left;
|
|
|
|
|
u8 *top_right;
|
|
|
|
|
u8 *bottom;
|
2016-07-03 20:53:13 +02:00
|
|
|
} *const fb = (volatile struct fb *)0x23FFFE00;
|
2016-06-10 21:48:22 +02:00
|
|
|
|
|
|
|
|
void deinitScreens(void);
|
2016-07-03 20:53:13 +02:00
|
|
|
void updateBrightness(u32 brightnessLevel);
|
2016-06-10 21:48:22 +02:00
|
|
|
void clearScreens(void);
|
2016-07-03 20:53:13 +02:00
|
|
|
u32 initScreens(void);
|