summaryrefslogtreecommitdiff
path: root/src/core/hw/hw_lcd.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2014-04-17 23:48:23 -0400
committerGravatar bunnei2014-04-17 23:48:23 -0400
commit70c2cce963264678b5ba5b6aa17c2653bf459e61 (patch)
tree0d3335e7dda2431260384a802c93dfda2d1ffc87 /src/core/hw/hw_lcd.cpp
parentadded NDMA hardware interface (diff)
downloadyuzu-70c2cce963264678b5ba5b6aa17c2653bf459e61.tar.gz
yuzu-70c2cce963264678b5ba5b6aa17c2653bf459e61.tar.xz
yuzu-70c2cce963264678b5ba5b6aa17c2653bf459e61.zip
renamed hw_lcd module to just lcd
Diffstat (limited to 'src/core/hw/hw_lcd.cpp')
-rw-r--r--src/core/hw/hw_lcd.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/core/hw/hw_lcd.cpp b/src/core/hw/hw_lcd.cpp
deleted file mode 100644
index 9fb485bac..000000000
--- a/src/core/hw/hw_lcd.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
1// Copyright 2014 Citra Emulator Project
2// Licensed under GPLv2
3// Refer to the license.txt file included.
4
5#include "common/common_types.h"
6#include "common/log.h"
7
8#include "core/core.h"
9#include "core/hw/hw_lcd.h"
10
11#include "video_core/video_core.h"
12
13namespace LCD {
14
15static const u32 kFrameTicks = 268123480 / 60; ///< 268MHz / 60 frames per second
16
17u64 g_last_ticks = 0; ///< Last CPU ticks
18
19template <typename T>
20inline void Read(T &var, const u32 addr) {
21}
22
23template <typename T>
24inline void Write(u32 addr, const T data) {
25}
26
27/// Update hardware
28void Update() {
29 u64 current_ticks = Core::g_app_core->GetTicks();
30
31 if ((current_ticks - g_last_ticks) >= kFrameTicks) {
32 g_last_ticks = current_ticks;
33 VideoCore::g_renderer->SwapBuffers();
34 }
35}
36
37/// Initialize hardware
38void Init() {
39 g_last_ticks = Core::g_app_core->GetTicks();
40 NOTICE_LOG(LCD, "initialized OK");
41}
42
43/// Shutdown hardware
44void Shutdown() {
45 NOTICE_LOG(LCD, "shutdown OK");
46}
47
48} // namespace