This repository has been archived on 2022-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Luma3DS-3GX/source/screen.h

25 lines
624 B
C
Raw Normal View History

/*
* 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-01 20:27:28 +02:00
#define ARM11_STUB_ADDRESS (0x25000000 - 0x40) //It's currently only 0x28 bytes large. We're putting 0x40 just to be sure here
#define WAIT_FOR_ARM9() *arm11Entry = 0; while(!*arm11Entry); ((void (*)())*arm11Entry)();
2016-07-01 20:27:28 +02:00
struct fb {
u8 *top_left;
u8 *top_right;
u8 *bottom;
2016-07-01 20:27:28 +02:00
};
void deinitScreens(void);
2016-07-01 20:27:28 +02:00
void updateBrightness(u32 brightnessIndex);
void clearScreens(void);
bool initScreens(void);